Is This Content Helpful?
We're glad to know this article was helpful.
Instructions provided describe how to set up geocoding when using an ArcMap image service. A common task is to geocode using an image service when an ArcMap image service is the primary service in an HTML viewer.
The following steps allow the set up of a different service for geocoding.
Follow the steps below.
In the AXL file used to start the map service, add only the layer to geocode on and configure the geocoding properties.
Selecting the image service at this point is not required.
var imsGeocodeURL = '';
var imsGeocodeURL = http://<mymachine>/servlet/com.esri.esrimap.Esrimap?ServiceName=<myservice>&CustomService=geocode';
After following the above steps, the 'Locate Address' button is enabled in the tool bar of the HMTL viewer. If using Locate Address functionality, the results are displayed in table format. If selecting a point from the results, the point is plotted on the map as a acetate layer of the ArcMap Image Service.