cmv / cmv-app

CMV - The Configurable Map Viewer - A community supported open source mapping framework built with the Esri JavaScript API and the Dojo Toolkit
https://demo.cmv.io/
MIT License
325 stars 278 forks source link

urgent: my location does not work #631

Closed JudyZhou closed 7 years ago

JudyZhou commented 7 years ago

I even test the link you provided, http://demo.cmv.io/viewer/, My Location widget doesn't work. Could you please help?

tmcgee commented 7 years ago

@JudyZhou Please read the [relevant paragraph]](https://developers.arcgis.com/javascript/3/jssamples/widget_locate.html) about browser security in the locator Button documentation and this Esri blog post. That is the most likely cause affecting your site. It definitely does affect the demo site because it is not using HTTPS.

JudyZhou commented 7 years ago

@tmcgee ESRI Web AppBuilder works with My Location.

tmcgee commented 7 years ago

@JudyZhou The Web AppBuilder and CMV both use the Esri Locator Button dijit so something else must be effecting this. A few questions for you to review to help you determine the issue:

  1. Are the WAB app and the CMV app on the same server (server name, port and protocol)?
  2. What version of the Esri JavaScript API are you using for WAB and for CMV?
JudyZhou commented 7 years ago

@tmcgee on the same server. once I run my location button in WAB app viewer, it is kind of triggered, then CMV locator start working.

tmcgee commented 7 years ago

that's odd. that sounds like a browser permission thing for location services.