Hi all,
I'm using the ArcGIS Server Link and just wondered if anyone is having
issues getting the Identify tool to respond to the layerOption parameter.
If I set it to 'visible' it doesn't seem to register and the function
returns attributes from all layers in the map service, regardless of whether
or not they're visible. This is using the class IdentifyOptions. Can
anyone point out where I'm going wrong:
function doIdentify(location) {
if (!location)
return;
if (ov && service.loaded) {
var params = {
geometry: location,
layerOption: 'visible',
tolerance: 5,
bounds: map.getBounds(),
width: map.getDiv().offsetWidth,
height: map.getDiv().offsetHeight,
returnGeometry: false
};
service.identify(params, function(res, err) {
if (err) {
alert(err.message + '\n' + err.details.join('\n'));
} else if (res.results) {
processIdentifyResults(res, location);
}
});
}
}
Thanks for any help.
Ed
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/YkZsQ3ViS3FJY3NK.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.