Git Product home page Git Product logo

drroad / arcgis-esm-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benelan/arcgis-esm-samples

0.0 0.0 0.0 1.12 MB

The samples integrate the @arcgis/core build of the ArcGIS API for JavaScript with various frameworks, module bundlers and build tools.

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

JavaScript 61.38% CSS 5.42% Vue 8.70% HTML 3.14% Svelte 19.06% Dockerfile 2.30%

arcgis-esm-samples's Introduction

@arcgis/core

The samples in this repo extend those provided by Esri. The samples integrate the @arcgis/core build of the ArcGIS API for JavaScript with various frameworks, module bundlers and build tools. Here is the accompanying blog post.

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
});

Configure CSS

The final step is to set up the CSS. Choose a theme and then configure your code to copy the theme files from @arcgis/core/assets/esri/themes/ into your project. Here’s a React example:

// React - index.js
import '@arcgis/core/assets/esri/themes/dark/main.css';

arcgis-esm-samples's People

Contributors

benelan avatar

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.