Closed benitazz closed 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.
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.
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
You are a star
How about add map layer in vue.js framework. There seems no related repo in Esri.
@BartSu please visit https://github.com/esri/esri-loader.
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