Remove unnecessary interaction
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user