I seem to be having a problem with tooltips showing above others related to
the order of layers on my map. I am creating a WMSGetFeatureInfo control for
each tooltip with the hover command. My problem is I have added layers to
the map in a specific order and this works fine.. the proper layers are
shown above the others. However it seems my hover WMS tools using the same
layers are not following the same layer hierachy. Is there a certain order I
should be using map.addControl(wms control) in so that I can get it the same
as my layers? Previously while adding layers I did it backwards such as
layer3, layer2, layer1 and this seemed to work. Do I also have to add each
wmsgetfeature control backwards for the right order or can I define this
elsewhere? Appreciate any assistance.

here is an example of one of my controls, if there is more options I can add
to this such as a priority or something I appreciate any advice, thanks!

//Asphalt Tooltip
     info_trails_asphalt = new OpenLayers.Control.WMSGetFeatureInfo({
                         url: 'http://localhost/WebServices/Request.aspx', 
              queryVisible: false,
                 layers: [layer_Asphalt_Tooltip],
                 maxFeatures: 1,
                 hover:true,
                 infoFormat: 'text/html',
                 handlerOptions: {'hover':{delay:100}}
            });

map.addControl(info_trails_asphalt);
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Question-on-layer-order-while-using-WMSGetFeatureInfo-Tooltip-tp5873335p5873335.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to