Turn off rotation because Google does not support it

This commit is contained in:
ahocevar
2014-02-12 12:16:18 +01:00
parent 0764ea99ee
commit aa8bbe4c7b

View File

@@ -53,8 +53,11 @@ google.maps.event.addListenerOnce(gmap, 'tilesloaded', function() {
var center = gmap.getCenter();
var map = new ol.Map({
layers: [vector],
interactions: ol.interaction.defaults({dragPan: false})
.extend([new ol.interaction.DragPan({kinetic: false})]),
interactions: ol.interaction.defaults({
altShiftDragRotate: false,
dragPan: false,
touchRotate: false
}).extend([new ol.interaction.DragPan({kinetic: false})]),
renderer: 'canvas',
target: olmap,
view: new ol.View2D({