[OpenLayers-Users] Selectible polygons and map navigation
G. Tiemens
Gerben.Tiemens at grontmij.nl
Wed Aug 6 08:05:53 EDT 2008
Hello all,
I want to make a map, with normal navigation (zoom, drag, etcetera).
On that map, i want to set a feature layer which will highlight the features
on hover. When clicking the features an URL is opened. The features cover
the whole map (polygons)
My problem is, i don't get it to work with the standard functions of
OpenLayers. When the features cover the whole map, navigation is not
working anymore.
This is what i tried:
Using the selectFeature control i defined the callbacks:
selectControl = new OpenLayers.Control.SelectFeature(VectorLayer,
{callbacks: {
click: onFeatureClick,
over: onFeatureSelect,
out: onFeatureUnselect
}});
Problem is: the map navigation will not work anymore: dragging, doubleclick
to zoom, etc.
Are there other ways to achieve this? Maybe some example code makes it
easier to understand.
Mvg
Gerben
--
View this message in context: http://www.nabble.com/Selectible-polygons-and-map-navigation-tp18849727p18849727.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list