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.
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.
Get help from ArcGIS experts
Download the Esri Support App