[OpenLayers-Users] Re: OpenLayers.Control.SelectFeature with hover=true on non top vector layer.

ggarcia ggarcia at ihman.com
Tue Sep 6 08:52:13 EDT 2011


I understand you are doing something like this:

[CODE]
  // Highlight
  var highlightFeature = new OpenLayers.Control.SelectFeature(
    [map_vectors1, map_vectors2], 
    {
      hover: true,
      highlightOnly: true,
      eventListeners: {
        featurehighlighted: map_featureHighlight,
        featureunhighlighted: map_featureUnhighlight
      }
    }
  );
[/CODE]

If you want to highlight the feature that is in the bottom and your top
vector layers are covering it (some parts) you need to force the highlight:

[CODE]
  map_selectFeature.highlight(featureIsBottom)
[/CODE]

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Control-SelectFeature-with-hover-true-on-non-top-vector-layer-tp6745723p6763757.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list