Locate Button on Mobile

2994
1
12-04-2015 01:16 PM
RickeyFight
MVP Regular Contributor

I have used Locate Button before in webapps and not had an issue.

I opened Locate Button | ArcGIS API for JavaScript  on my ipad and iphone it reloads every time I hit the locate button.

Has anyone else had this happen to them? 

Maybe it is  bug in 3.15?

0 Kudos
1 Reply
RickeyFight
MVP Regular Contributor

I did find a work around. Which was what I suspected was the issue.

It hangs up because it is set to zoom in too far.

if you use the code:

    geoLocate = new LocateButton({
                map: map,
  setScale: false
            }, "LocateButton");
            geoLocate.startup();

It will work and not reload the page on an iPad.