Select to view content in your preferred language

Social Media Template: Using our own geolocation service

580
1
11-01-2012 06:00 AM
OmPoudel
New Contributor
When I tried changing the locatorURL on the common.js file on social media template downloaded form arcgis.com it does not work. Can somebody help me with this.

Thanks in advance.
0 Kudos
1 Reply
JohnGravois
Deactivated User
if you look at the function locateQuery (inside main.js), you can see that the author of this sample isn't using a locator task from our API, but rather esri.request to pass a query to the geocoding service.  im guessing the reason for this has something to do with supporting autocomplete.

unfortunately, you'll have to get a pretty good grasp on the logic of that code if you're going to take a stab at substituting your own geocoding service.
0 Kudos