Frequently asked question
Code:
var selSymbol = parent.mapFrame.IMSMap.createSymbol("POLYGON_SYMBOL");
var selColor = parent.mapFrame.IMSMap.createColor(255,255,0);
selSymbol.setFillColor(selColor);
Code:
var theLayer = parent.mapFrame.document.IMSMap.getLayer("States");
parent.mapFrame.document.IMSMap.setSelectedLayer(theLayer);
theLayer.setSelectionSymbol(selSymbol);
Code:
var theQuery = "STATE_NAME = 'Florida'";
parent.mapFrame.document.IMSMap.zoomToSelection(theLayer.getName(), theQuery);
theLayer.select(theQuery);
Get help from ArcGIS experts
Download the Esri Support App