HOW TO
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.
Note:
In the AXL file used to start the map service, add only the layer to geocode on and configure the geocoding properties.
Note:
Selecting the image service at this point is not required.
Code:
var imsGeocodeURL = '';
Code:
var imsGeocodeURL = http://<mymachine>/servlet/com.esri.esrimap.Esrimap?ServiceName=<myservice>&CustomService=geocode';
Code:
var useGeocode=false;
Code:
var useGeocode=true;
Note:
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.
Article ID:000008010
Get help from ArcGIS experts
Download the Esri Support App