Select to view content in your preferred language

problem of geocoding with arcgis api for  javascript

559
1
01-24-2014 12:45 AM
DIALLOAbdoulaye
Emerging Contributor
Hello everyone I esper that I am in the right place
in fact I am trying to develop an application of geocoding using ArcGIS API for JavaScript
I create an address locator that works for arcgis desktop
I published as a service locator
in my application when I entered an address for example the name of a city it shows well the Result only thousands of miles from the right place
the projection system of  my address locator is wgs84 Mercator _Auxilary_Sphere
I want to know if someone has already encountered this problem?
thank you in advance for any Help
0 Kudos
1 Reply
JohnathanBarclay
Regular Contributor
Check that the map's spatial reference is the same as your Geocode Service spatial reference.

console.log(map.spatialReference)


The map takes on the spatial reference of the first layer added to it.
0 Kudos