Remove unnecessary interaction

This commit is contained in:
Tim Schaub
2016-06-30 15:22:51 -06:00
parent 728e1dd1f2
commit 4154df9aa8

View File

@@ -3,7 +3,6 @@ goog.require('ol.View');
goog.require('ol.layer.Tile');
goog.require('ol.proj');
goog.require('ol.source.TileJSON');
goog.require('ol.interaction.DragRotateAndZoom');
function transform(extent) {
return ol.proj.transformExtent(extent, 'EPSG:4326', 'EPSG:3857');
@@ -43,8 +42,6 @@ var map = new ol.Map({
})
});
map.addInteraction(new ol.interaction.DragRotateAndZoom());
for (var key in extents) {
document.getElementById(key).onclick = function(event) {
overlay.setExtent(extents[event.target.id]);