Select to view content in your preferred language

Adding Locate Button

669
2
05-27-2014 11:11 PM
Vibin_DhasDevadhason
Emerging Contributor
Dear All,

How can i add Locate Button in ArcGIS API for JavaScript 3.1. I have Seen the following code
https://developers.arcgis.com/javascript/jssamples/widget_locate.html

for version 3.8. But it is not working for the version 3.1. Help would be great..
0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor
I don't believe you will be able to at 3.1.  The LocateButton class was not added until version 3.7.  See the following link:

https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html
0 Kudos
Vibin_DhasDevadhason
Emerging Contributor
I don't believe you will be able to at 3.1.  The LocateButton class was not added until version 3.7.  See the following link:

https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html


Thanks for your help. I need to get more knowledge about the versions and features..
0 Kudos