Skip to content
Snippets Groups Projects
Commit d09399d6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '540-fractional-zoom' into 'devel_12.1.x'

Resolve "partial zooming using mac mouse"

See merge request !461
parents 381fc4ae cf6742d2
No related branches found
No related tags found
3 merge requests!46912.1.0~beta.4 into master,!461Resolve "partial zooming using mac mouse",!45912.1.0~beta.3 into master
Pipeline #6822 passed
......@@ -77,7 +77,12 @@ function OpenLayerCanvas(element, options) {
minZoom: options.minZoom,
maxZoom: options.maxZoom,
enableRotation: false
})
}),
interactions: ol.interaction.defaults({}).extend([
new ol.interaction.PinchZoom({
constrainResolution: true
})
])
});
self.setOpenLayersMap(map);
self.addCenterButton();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment