Closed fbaum closed 10 years ago
That's a problem with the geocoder widget. It attempts to communicate using the protocol that you are using for the page. e.g. if you are using secure https:// then the geocoder users https:// instead of http://
When you open your html file from your computer, it uses file:// protocol, and so the geocoder tries to communicate with the geocode service using file://, which fails to ever connect or even time out.
Hosting on github pages works, e.g. http://wustl-gis-programming-spring-2014.github.io/geocodeexample.html, since it uses http:// protocol.
So, if the geocoder embeds in the page correctly I will count that for the assignment since testing from the desktop is not going to work correctly (and I do not expect anyone to fix the geocode widget to not use the file:// protocol).
good to know, thanks!
During office hours last night we discovered that if you just open your html file in a web browser (e.g., Chrome), the Geocoder widget is displayed but it doesn't do anything if you type in a place name (e.g., Clayton, MO). The little circle in the widget just spins forever. To see the Geocoder widget work, you have to either copy/paste your whole html file in the ArcGIS JavaScript Sandbox or (I'm guessing) have your html file on a webserver (e.g., your GitHub Page). -- Francis