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

Update esriMap listeners for continuous map extent information? #74

Closed jwasilgeo closed 8 years ago

jwasilgeo commented 9 years ago

What if we were to add another (or replace) map event listener to esriMap, perhaps:

map.on('pan,zoom-end', function(e){...});

Instead of waiting for a 1-time extent-change when the user is done panning or zooming, how about getting continuous feedback on the extent object?

My very brief trial of this still needs some massaging to get it right:

continuous-extent-change

Nothing pressing here, but a potential nice-to-have for the the Map events and No Basemap demos (and maybe the others, if bullet point 1 is addressed). I'll be the 1st to admit that it's information overload for the user, but, you know, AngularJS folks like seeing things change and update :zap: fast. :smile:

jwasilgeo commented 8 years ago

Just some additional notes for posterity's sake:

Something akin to this demo using JSAPI 4.x and dbind: https://ycabon.github.io/presentations/2015-uc-arcgis-js-api-road-ahead/demos/integration/dbind.html

I think the esriMap's $scope.inUpdateCycle flag might have something to do with the behavior mentioned in the 1st bullet point above.

jwasilgeo commented 8 years ago

@tomwayson I don't think this is worth pursuing and supporting for v1.x. I say let's close this since we know how to do it with JSAPI 4.x and it is documented in the property binding example and test page.

tomwayson commented 8 years ago

agreed. thx.