Esri / angular-esri-map

A collection of directives to help you use Esri maps and services in your Angular applications
https://esri.github.io/angular-esri-map/
Apache License 2.0
213 stars 107 forks source link

Add Layers to ESRI MAP #309

Closed benitazz closed 8 years ago

benitazz commented 8 years ago

How do we add layers to the ESRI MAP using Angular 2, I have layers that I would like to add to the ESRI base map

jwasilgeo commented 8 years ago

@benitazz have you read over these notes about Angular2 in the readme? https://github.com/Esri/angular-esri-map#what-about-angular-2

This library is for Angular1. With Angular2 in general, once you have established which module loader you will use (e.g. SystemJS, Webpack), you can then follow Esri JSAPI documented conventions within Angular2 components. The links within the readme section about Angular2 have more info and working examples of layers being added to maps.

benitazz commented 8 years ago

I'm using Webpack and have already have sample code that loads ESRI Map, but currently the map service does not have the option to add my own layers, for example I was expecting the service to expose a method that can take a URL to add the new layer to the map.

jwasilgeo commented 8 years ago

Great, then in that case you can continue to write additional code for the map in your own Angular 2 map service in order to add layers according to documented Esri JSAPI methods.

If using JSAPI v3.x: https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#addlayer If using JSAPI v4.x: https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html#add

benitazz commented 8 years ago

You are a star

BartSu commented 6 years ago

How about add map layer in vue.js framework. There seems no related repo in Esri.

jwasilgeo commented 6 years ago

@BartSu please visit https://github.com/esri/esri-loader.

tomwayson commented 6 years ago

@BartSu https://github.com/esri/esri-loader#vuejs