diff --git a/examples/dragzoom.html b/examples/dragzoom.html deleted file mode 100644 index 18becc24fe..0000000000 --- a/examples/dragzoom.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - DragZoom example - - - - - -
- -
-
-
-
-
- -
- -
-

DragZoom example

-

Example of dragzoom interaction.

-
-

Press SHIFT and drag the map to trigger the interaction.

-

See the dragzoom.js source to see how this is done.

-

For the moment, only works with the canvas renderer.

-
-
dragzoom, openstreetmap
-
- -
- -
- - - - - - diff --git a/examples/dragzoom.js b/examples/dragzoom.js deleted file mode 100644 index 0b91dacbdb..0000000000 --- a/examples/dragzoom.js +++ /dev/null @@ -1,38 +0,0 @@ -goog.require('ol.Map'); -goog.require('ol.RendererHint'); -goog.require('ol.View2D'); -goog.require('ol.interaction'); -goog.require('ol.interaction.DragZoom'); -goog.require('ol.layer.Tile'); -goog.require('ol.source.OSM'); -goog.require('ol.style.Fill'); -goog.require('ol.style.Stroke'); -goog.require('ol.style.Style'); - - -var map = new ol.Map({ - interactions: ol.interaction.defaults().extend([ - new ol.interaction.DragZoom({ - style: new ol.style.Style({ - stroke: new ol.style.Stroke({ - color: 'rgba(255,0,0,1)', - width: 2 - }), - fill: new ol.style.Fill({ - color: 'rgba(155,0,0,0.2)' - }) - }) - }) - ]), - layers: [ - new ol.layer.Tile({ - source: new ol.source.OSM() - }) - ], - renderer: ol.RendererHint.CANVAS, - target: 'map', - view: new ol.View2D({ - center: [0, 0], - zoom: 2 - }) -});