HOW TO
Instructions provided describe how to identify features from selected layers only, when using the IdentifyAll tool in HTML Viewer. The IdentifyAll or 'drill-down' tool returns the features from all visible layers in HTML Viewer. Instructions provided explain how the HTML Viewer code can be modified to identify features from the selected layers only.
Code:
var useIdentify=true;
Code:
var useIdentify=false;
Code:
var useIdentifyAll=false;
Code:
var useIdentifyAll=true;
Code:
aimsIdentifyPresent=true;
Code:
var idLayers = "0,1";
Code:
for (var i=(LayerID.length-1);i>=0;i--) {
replyArray[i]="";
if ((mapScaleFactor>=LayerMinScale[i]) && (mapScaleFactor<=LayerMaxScale[i]) && (LayerVisible[i]) && (LayerIsFeature[i])) j = i;
}
Code:
for (var i=(LayerID.length-1);i>=0;i--) {
replyArray[i]="";
var idLayer = idLayers.split(",");
var isLayerId = false;
for (var xx = 0; xx<idLayer.length; xx++){
if (LayerID[i]==idLayer[xx]) isLayerId = true;
}
if (isLayerId){
if ((mapScaleFactor>=LayerMinScale[i]) && (mapScaleFactor<=LayerMaxScale[i]) && (LayerVisible[i]) && (LayerIsFeature[i])) j = i;
}
}
Code:
if (fID < (LayerID.length)) {
if ((mapScaleFactor>=LayerMinScale[fID]) && (mapScaleFactor<=LayerMaxScale[fID]) && (LayerVisible[fID]) && (LayerIsFeature[fID])) {
theString = writeGetFeaturesDrill(idWest,idSouth,idEast,idNorth,fID);
//alert(theString);
sendToServer(imsQueryURL,theString,10);
} else {
doIdentifyAll("");
}
}
Code:
if (fID < (LayerID.length)) {
var idLayer = idLayers.split(",");
var isLayerId = false;
for (var xx = 0; xx<idLayer.length; xx++){
if (LayerID[fID]==idLayer[xx] && LayerVisible[fID]) isLayerId = true;
}
if (isLayerId){
if ((mapScaleFactor>=LayerMinScale[fID]) && (mapScaleFactor<=LayerMaxScale[fID]) && (LayerVisible[fID]) && (LayerIsFeature[fID])) {
theString = writeGetFeaturesDrill(idWest,idSouth,idEast,idNorth,fID);
//alert(theString);
sendToServer(imsQueryURL,theString,10);
}
} else {
doIdentifyAll("");
}
}
Article ID:000006948
Get help from ArcGIS experts
Download the Esri Support App