Select to view content in your preferred language

LocateButton does not work

3970
3
05-13-2015 06:10 AM
RaimondsVerpejs
Emerging Contributor

Trying to figure it out - LocateButton does not work: http://jsfiddle.net/tikainesakinevienam/956pborp/

Tags (1)
0 Kudos
3 Replies
TimWitt2
MVP Alum

Raimonds,

make sure that you enable in your browser that your application is allowed to get your location. The locate button worked for me (it didnt locate me but I assume this is because you limit the view).

Tim

0 Kudos
RaimondsVerpejs
Emerging Contributor

After pressing button map randomly zooms in, not showing my real location.

I am using custom custom mapserver.

0 Kudos
MattDriscoll
Esri Contributor

Make sure to setup a geometry service since you're using a custom spatial reference. Then it will project to the correct location.

Default API Configurations | Guide | ArcGIS API for JavaScript

0 Kudos