Esri / arcgis-dijit-locate-button-js

A simple dijit button that when clicked navigates to the users current location using HTML5 Geolocation if available.
http://esri.github.io/arcgis-dijit-locate-button-js/
Apache License 2.0
4 stars 8 forks source link

add end-tracking event #6

Closed btfou closed 10 years ago

btfou commented 10 years ago

Add an event end-tracking to easily clear the graphic and do other stuffs when tracking ends.

Perhaps also add a constructor option to clear the graphic when tracking ends.

driskull commented 10 years ago

Hey @btfou , you should be able to watch the "tracking" property and do things when it is set to true/false.

Like

myWidget.watch("tracking", doSomething);
driskull commented 10 years ago

I think the constructor option makes sense. clearOnStopTracking or something like that?

btfou commented 10 years ago

Yes and thanks @driskull. Just suggestions.