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?
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.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.