June 2012
17 posts
James McKinney: OpenLayers: Zoom when a feature in a vector layer is double-clicked →
blog.slashpoundbang.com
In OpenLayers, double-clicking on the map, by default, zooms in. If you add features (
OpenLayers.Feature.Vector) to a layer (OpenLayers.Layer.Vector), double-clicking on the features will not zoom in. In order to re-enable double-click zoom in this case, you’ll need to add a custom control to…