Select to view content in your preferred language

Geolocate & Geocoder are not working

1018
2
Jump to solution
05-05-2014 09:37 AM
MayJeff
Deactivated User
I just start putting the code together and so new to javascript API.  I run into a problems.  First, Geolocate not working on Firefox at all when you click the " Locate Button"and Chrome showed close by location.
Second problem is that the clear button on the text input box is not working when you try to clear the text.  Only able to type the first time but noT able to clear it.  So perform the search anymore.  See here: http://jsfiddle.net/2Qj7X/
Got any ideas to make it to work?
Thank you.
0 Kudos
1 Solution

Accepted Solutions
JonathanUihlein
Esri Regular Contributor
Hi Jeff,

Geolocate worked for me in Firefox using your JSFiddle.
It could be your browser settings (https://www.mozilla.org/en-US/firefox/geolocation/)
What errors are you seeing in the console?

As for clearing the text from your input box, it appears that your spotlight is being placed on top of the input.
You will want to change the z-index of your input container.

<div style="position:absolute; left:40px; top:10px; z-Index:999;">    <div id="search"></div> </div>

View solution in original post

2 Replies
JonathanUihlein
Esri Regular Contributor
Hi Jeff,

Geolocate worked for me in Firefox using your JSFiddle.
It could be your browser settings (https://www.mozilla.org/en-US/firefox/geolocation/)
What errors are you seeing in the console?

As for clearing the text from your input box, it appears that your spotlight is being placed on top of the input.
You will want to change the z-index of your input container.

<div style="position:absolute; left:40px; top:10px; z-Index:999;">    <div id="search"></div> </div>
MayJeff
Deactivated User
Thank you.  The second problem solve but I didn't see any errors on console when clicked the "Locate Button" for geLocate.
0 Kudos