SelectFeature only works on OpenLayers.Layer.Vector. So vector layers only, no image layers.
I think what you are looking for is OpenLayers.Control.WMSGetFeatureInfo, but the real drill-down (on several services) is only available in OpenLayers trunk, see: http://trac.openlayers.org/ticket/2091 Ofcourse this will only work for services that support WMS (and the GetFeatureInfo request). Best regards, Bart On Mar 11, 2010, at 3:28 PM, Chris Gountanis wrote: > Hello > > > I was playing with direct OL function "select: new > OpenLayers.Control.SelectFeature" but there seems to be no example > documentation on who to format what layers and what to return. I am getting > errors and when I turn multiple on I don't know what to change as the > documentation does not have a lot of examples. > > Can this same selection code be used on any OpenLayers.Layer object brought > in using the OL API? What I am asking is can the same code for selecting > objects on the map be used for MapGuide, MapServer or ArcGIS Rest inserted > layers? > > Can anyone direct me to some nice examples on making sections on multiple > layers or even a specified layer just to get me started please. The end > result I would love to see code make selections on all layers drilling down > through map even if the layer is not active or at scale. Please any help on > this would really help me push OL as the solution for our map application. > > Regards, > Chris > > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
