Files
openlayers/changelog/v4.1.0.md
2017-04-13 20:50:05 -06:00

14 KiB
Raw Permalink Blame History

4.1.0

Summary

The v4.1.0 release includes features and fixes from 91 pull requests.

Interactive overview map

The extent rectangle on the overview map can now be dragged to control the view for the main map.

Setting min and max zoom for a view

You can now change the min or max zoom for a view after it has been created. This can be useful if you want to limit how far out users can zoom based on changes in viewport width (use view.setMinZoom() for this).

Adding duplicate layers to a map throws

Previously, you could do this:

map.addLayer(layer);
map.addLayer(layer);

However, after adding a duplicate layer, things failed if you tried to remove that layer.

Now, map.addLayer() throws if you try adding a layer that has already been added to the map.

Simpler constrainResolution configuration

The constrainResolution configuration for ol.interaction.PinchZoom and ol.interaction.MouseWheelZoom can now be set directly with an option in ol.interaction.defaults:

ol.interaction.defaults({
  constrainResolution: true
});

Detailed changes