Esri / esri-leaflet-geocoder

helpers for using the ArcGIS World Geocoding Service in Leaflet
http://esri.github.io/esri-leaflet/examples/geocoding-control.html
Apache License 2.0
244 stars 101 forks source link

Displaying wrong location #211

Closed toeurtenh closed 5 years ago

toeurtenh commented 5 years ago

Hello team,

I am using esri.Geocoding.geocode to create marker using address.

some of address display wrong location on the map, why?

other thing I copy these code from online for getting user's current location. it works fine for chrome but not for firefox. do i use right codes?

    //Load user's current location
    mymap.locate({ setView: true, maxZoom: 15 });

    mymap.on('locationfound', onLocationFound);
    function onLocationFound(e) {
        console.log(e);
        // e.heading will contain the user's heading (in degrees) if it's available, and if not it will be NaN. This would allow you to point a marker in the same direction the user is pointed. 
        L.marker(e.latlng).addTo(mymap).bindPopup('you are here').openPopup();;
    }
jgravois commented 5 years ago

some of address display wrong location on the map, why?

"The accuracy of a match returned by a search depends on the amount and quality of information submitted." - (reference)

I copy these code from online for getting user's current location. it works fine for chrome but not for firefox.

sorry, but thats not a problem we can help you with here.

toeurtenh commented 5 years ago

sorry, but thats not a problem we can help you with here. yes please help

jgravois commented 5 years ago

not gonna do it

toeurtenh commented 5 years ago

sorry i don't get you

jgravois commented 5 years ago

that was just a cheeky way of saying that we cannot help with generic questions regarding HTML5 geolocation in Leaflet like the one you asked because they have nothing to do with the code for this plugin.

https://github.com/Esri/esri-leaflet/blob/master/CONTRIBUTING.md#before-filing-an-issue

toeurtenh commented 5 years ago

thank you, any recommendations of plugin?