Giter Site home page Giter Site logo

benelan / arcgis-esm-samples Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 7.0 1.57 MB

Samples that integrate the @arcgis/core build of the ArcGIS Maps SDK for JavaScript with various Server Side Rendering frameworks.

Home Page: https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/ssr-esm/

License: Other

JavaScript 49.74% CSS 11.17% Vue 15.00% HTML 2.83% Svelte 21.26%
arcgis esmodules nuxtjs nextjs ssr esri gis esm svelte sveltekit example webbapp

arcgis-esm-samples's Introduction

@arcgis/core with Sever Side Rendering Frameworks

The samples in this repo were created for a blog post, and extend those provided by Esri. The samples integrate the @arcgis/core build of the ArcGIS Maps SDK for JavaScript with Server Side Rendering frameworks (plus Svelte, because Svelte is great).

Get started

Install the modules into your project:

npm install @arcgis/core

Then use import statements to load individual modules.

import EsriMap from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';

const map = new EsriMap({
  basemap: 'topo-vector'
});

const view = new MapView({
  container: 'viewDiv',
  map: map
});

The samples have their own READMEs for framework specific steps.

Configure CSS

The final step is to set up the CSS:

@import 'https://js.arcgis.com/4.25/@arcgis/core/assets/esri/themes/light/main.css';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.