I'm building a map centric web app based on Esri's ArcGIS map. As the 
ArcGIS API is built on top of the dojo toolkit, I'm not quite sure how well 
this can be integrated in an angularJS web application. 

I would like to use angular to benefit in other aspects of my app (forms, 
admin backend, layout etc.) while being able to use the esri map in a just 
as "angularjs" way as necessary, as it will probably get too complicated if 
I'm trying to get a declarative map etc.

So this is how a map is generated with dojo:

var map;
require(["esri/map", "dojo/domReady!"], function(Map) {
  map = new Map("mapDiv", {
    center: [-56.049, 38.485],
    zoom: 3,
    basemap: "streets"
  });
});


This map object is then used to add different layers to it etc. And with 
almost every function of the API, you again have to use dojos "require" to 
get the corresponding dependancies.

How would you integrated this in angularjs, especially in regards to the 
'require'? 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to