ol 9.2.5-sh.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Collection.d.ts +1 -1
- package/Collection.d.ts.map +1 -1
- package/DataTile.d.ts +15 -1
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +26 -1
- package/Feature.d.ts +1 -1
- package/Feature.d.ts.map +1 -1
- package/Geolocation.d.ts +2 -2
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +1 -0
- package/Image.d.ts +4 -4
- package/Image.d.ts.map +1 -1
- package/ImageCanvas.d.ts +2 -1
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +2 -0
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +1 -1
- package/Map.d.ts +5 -4
- package/Map.d.ts.map +1 -1
- package/Map.js +15 -14
- package/MapBrowserEvent.d.ts +4 -2
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +4 -0
- package/MapBrowserEventHandler.d.ts +4 -1
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +4 -0
- package/MapBrowserEventType.d.ts +1 -1
- package/MapEvent.d.ts.map +1 -1
- package/MapEventType.d.ts +1 -1
- package/Object.d.ts.map +1 -1
- package/ObjectEventType.d.ts +1 -1
- package/Observable.d.ts +2 -2
- package/Observable.d.ts.map +1 -1
- package/Overlay.d.ts +2 -2
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +2 -2
- package/README.md +1 -1
- package/Tile.d.ts +10 -30
- package/Tile.d.ts.map +1 -1
- package/Tile.js +6 -79
- package/TileCache.d.ts +2 -1
- package/TileCache.d.ts.map +1 -1
- package/TileCache.js +4 -0
- package/TileQueue.d.ts +3 -2
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +7 -4
- package/VectorRenderTile.d.ts +11 -16
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +19 -24
- package/VectorTile.d.ts +20 -17
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +14 -10
- package/View.d.ts +1 -1
- package/View.d.ts.map +1 -1
- package/array.d.ts +2 -2
- package/array.d.ts.map +1 -1
- package/asserts.d.ts.map +1 -1
- package/centerconstraint.d.ts.map +1 -1
- package/color.d.ts.map +1 -1
- package/color.js +2 -2
- package/console.d.ts +1 -1
- package/console.d.ts.map +1 -1
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +5 -12
- package/control/Control.d.ts.map +1 -1
- package/control/Control.js +4 -6
- package/control/FullScreen.d.ts +1 -1
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +1 -0
- package/control/MousePosition.d.ts +1 -1
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +1 -0
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +16 -13
- package/control/Rotate.d.ts +4 -1
- package/control/Rotate.d.ts.map +1 -1
- package/control/Rotate.js +3 -0
- package/control/ScaleLine.d.ts +3 -3
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +1 -0
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/defaults.d.ts.map +1 -1
- package/coordinate.d.ts +1 -1
- package/coordinate.d.ts.map +1 -1
- package/css.d.ts.map +1 -1
- package/dist/ol.d.ts +10 -8
- package/dist/ol.d.ts.map +1 -1
- package/dist/ol.js +1 -3
- package/dist/ol.js.map +1 -1
- package/dom.d.ts +0 -5
- package/dom.d.ts.map +1 -1
- package/dom.js +1 -9
- package/events/SnapEvent.d.ts.map +1 -1
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +1 -0
- package/events/condition.d.ts +2 -2
- package/events/condition.d.ts.map +1 -1
- package/events/condition.js +1 -1
- package/events.d.ts.map +1 -1
- package/events.js +6 -4
- package/expr/cpu.d.ts +1 -1
- package/expr/cpu.d.ts.map +1 -1
- package/expr/cpu.js +2 -16
- package/expr/expression.d.ts +8 -15
- package/expr/expression.d.ts.map +1 -1
- package/expr/expression.js +388 -508
- package/expr/gpu.d.ts +3 -3
- package/expr/gpu.d.ts.map +1 -1
- package/expr/gpu.js +1 -14
- package/extent.d.ts +2 -2
- package/extent.d.ts.map +1 -1
- package/featureloader.d.ts +10 -10
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +6 -6
- package/format/EsriJSON.d.ts +9 -12
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +7 -0
- package/format/Feature.d.ts +14 -14
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +8 -6
- package/format/GML2.d.ts.map +1 -1
- package/format/GML2.js +7 -9
- package/format/GML3.d.ts +2 -1
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +23 -31
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +1 -0
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +3 -0
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +3 -0
- package/format/GeoJSON.d.ts +17 -13
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +25 -17
- package/format/IGC.d.ts +1 -1
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +2 -0
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/JSONFeature.d.ts +15 -31
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +20 -16
- package/format/KML.d.ts +6 -6
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +5 -1
- package/format/MVT.d.ts +15 -13
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +19 -20
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +1 -0
- package/format/OWS.d.ts.map +1 -1
- package/format/OWS.js +1 -0
- package/format/Polyline.d.ts +6 -3
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +6 -0
- package/format/TextFeature.d.ts +9 -14
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +8 -0
- package/format/TopoJSON.d.ts +1 -8
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +2 -0
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +3 -0
- package/format/WKB.d.ts +9 -5
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +8 -0
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +6 -0
- package/format/WMSCapabilities.d.ts.map +1 -1
- package/format/WMSCapabilities.js +1 -0
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +1 -0
- package/format/WMTSCapabilities.d.ts.map +1 -1
- package/format/WMTSCapabilities.js +1 -0
- package/format/XMLFeature.d.ts +11 -15
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +8 -0
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Comparison.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/During.d.ts.map +1 -1
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/Filter.d.ts.map +1 -1
- package/format/filter/GreaterThan.d.ts.map +1 -1
- package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/IsBetween.d.ts.map +1 -1
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsNull.d.ts.map +1 -1
- package/format/filter/LessThan.d.ts.map +1 -1
- package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/LogicalNary.d.ts.map +1 -1
- package/format/filter/Not.d.ts.map +1 -1
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/ResourceId.d.ts.map +1 -1
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter.d.ts.map +1 -1
- package/functions.d.ts +2 -2
- package/functions.d.ts.map +1 -1
- package/functions.js +6 -5
- package/geom/Circle.d.ts +10 -3
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +13 -0
- package/geom/Geometry.d.ts +2 -2
- package/geom/GeometryCollection.d.ts +6 -3
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +13 -0
- package/geom/LineString.d.ts +9 -5
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +7 -0
- package/geom/LinearRing.d.ts +8 -4
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +7 -0
- package/geom/MultiLineString.d.ts +8 -4
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +7 -0
- package/geom/MultiPoint.d.ts +6 -3
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +6 -0
- package/geom/MultiPolygon.d.ts +8 -4
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +8 -0
- package/geom/Point.d.ts +4 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +7 -0
- package/geom/Polygon.d.ts +8 -4
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +8 -0
- package/geom/SimpleGeometry.d.ts +2 -1
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +6 -0
- package/geom/flat/area.d.ts.map +1 -1
- package/geom/flat/area.js +9 -7
- package/geom/flat/center.d.ts.map +1 -1
- package/geom/flat/closest.d.ts.map +1 -1
- package/geom/flat/contains.d.ts.map +1 -1
- package/geom/flat/deflate.d.ts.map +1 -1
- package/geom/flat/flip.d.ts.map +1 -1
- package/geom/flat/geodesic.d.ts.map +1 -1
- package/geom/flat/inflate.d.ts.map +1 -1
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/intersectsextent.d.ts.map +1 -1
- package/geom/flat/length.d.ts.map +1 -1
- package/geom/flat/linechunk.d.ts.map +1 -1
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/reverse.d.ts.map +1 -1
- package/geom/flat/segments.d.ts +1 -1
- package/geom/flat/segments.d.ts.map +1 -1
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/straightchunk.d.ts.map +1 -1
- package/geom/flat/textpath.d.ts.map +1 -1
- package/geom/flat/topology.d.ts.map +1 -1
- package/geom/flat/transform.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.js +1 -0
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +1 -0
- package/interaction/DragAndDrop.d.ts +4 -3
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +2 -0
- package/interaction/DragBox.d.ts +3 -3
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +6 -2
- package/interaction/DragPan.d.ts +6 -4
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +6 -1
- package/interaction/DragRotate.d.ts +3 -3
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +5 -2
- package/interaction/DragRotateAndZoom.d.ts +2 -2
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +4 -1
- package/interaction/DragZoom.d.ts +3 -3
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +3 -2
- package/interaction/Draw.d.ts +9 -8
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +9 -5
- package/interaction/Extent.d.ts +4 -3
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +6 -1
- package/interaction/Interaction.d.ts +1 -1
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/KeyboardPan.d.ts +2 -2
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +2 -1
- package/interaction/KeyboardZoom.d.ts +2 -2
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +2 -1
- package/interaction/Link.d.ts +1 -1
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +4 -0
- package/interaction/Modify.d.ts +15 -12
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +11 -3
- package/interaction/MouseWheelZoom.d.ts +3 -3
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +2 -1
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -0
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -0
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +1 -0
- package/interaction/Select.d.ts +14 -15
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +8 -6
- package/interaction/Snap.d.ts +3 -2
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +3 -0
- package/interaction/Translate.d.ts +11 -10
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +9 -4
- package/interaction/defaults.d.ts.map +1 -1
- package/layer/Base.d.ts +1 -1
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +1 -0
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseTile.d.ts +22 -5
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +23 -3
- package/layer/BaseVector.d.ts +7 -6
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +9 -4
- package/layer/Graticule.d.ts +5 -3
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +2 -1
- package/layer/Group.d.ts +2 -2
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +3 -0
- package/layer/Heatmap.d.ts +16 -10
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +25 -12
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +4 -0
- package/layer/Layer.d.ts +4 -4
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +7 -8
- package/layer/Tile.d.ts +6 -3
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +7 -2
- package/layer/Vector.d.ts +19 -9
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +15 -5
- package/layer/VectorImage.d.ts +9 -7
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +9 -4
- package/layer/VectorTile.d.ts +50 -15
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +51 -12
- package/layer/WebGLPoints.d.ts +1 -2
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +3 -0
- package/layer/WebGLTile.d.ts +9 -12
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +20 -21
- package/loadingstrategy.d.ts.map +1 -1
- package/math.d.ts.map +1 -1
- package/net.d.ts.map +1 -1
- package/obj.d.ts.map +1 -1
- package/ol.css +4 -0
- package/package.json +4 -4
- package/pixel.d.ts.map +1 -1
- package/proj/Projection.d.ts +1 -1
- package/proj/Projection.d.ts.map +1 -1
- package/proj/Units.d.ts +1 -1
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg4326.d.ts.map +1 -1
- package/proj/proj4.d.ts.map +1 -1
- package/proj.d.ts.map +1 -1
- package/render/Box.d.ts.map +1 -1
- package/render/Box.js +1 -0
- package/render/Event.d.ts.map +1 -1
- package/render/EventType.d.ts +2 -2
- package/render/Feature.d.ts +6 -4
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +2 -0
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +2 -0
- package/render/canvas/BuilderGroup.d.ts.map +1 -1
- package/render/canvas/Executor.d.ts +6 -27
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +7 -13
- package/render/canvas/ExecutorGroup.d.ts +4 -5
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +2 -1
- package/render/canvas/ImageBuilder.d.ts +2 -1
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +4 -0
- package/render/canvas/Immediate.d.ts +24 -12
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +14 -0
- package/render/canvas/Instruction.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +4 -0
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +4 -0
- package/render/canvas/TextBuilder.d.ts +4 -2
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +4 -0
- package/render/canvas/ZIndexContext.d.ts +2 -1
- package/render/canvas/ZIndexContext.d.ts.map +1 -1
- package/render/canvas/ZIndexContext.js +1 -0
- package/render/canvas/hitdetect.d.ts +1 -1
- package/render/canvas/hitdetect.d.ts.map +1 -1
- package/render/canvas/style.d.ts +3 -3
- package/render/canvas/style.d.ts.map +1 -1
- package/render/canvas/style.js +6 -5
- package/render/canvas.d.ts +1 -1
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +2 -1
- package/render/webgl/MixedGeometryBatch.d.ts +4 -1
- package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
- package/render/webgl/MixedGeometryBatch.js +4 -0
- package/render/webgl/VectorStyleRenderer.d.ts +56 -30
- package/render/webgl/VectorStyleRenderer.d.ts.map +1 -1
- package/render/webgl/VectorStyleRenderer.js +39 -0
- package/render/webgl/renderinstructions.d.ts +4 -4
- package/render/webgl/utils.d.ts +1 -1
- package/render/webgl/utils.d.ts.map +1 -1
- package/render.d.ts.map +1 -1
- package/renderer/Composite.d.ts +3 -2
- package/renderer/Composite.d.ts.map +1 -1
- package/renderer/Composite.js +10 -4
- package/renderer/Layer.d.ts +22 -29
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +33 -37
- package/renderer/Map.d.ts +1 -1
- package/renderer/Map.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.d.ts +6 -4
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +12 -9
- package/renderer/canvas/Layer.d.ts +4 -9
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +1 -6
- package/renderer/canvas/TileLayer.d.ts +106 -42
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +546 -330
- package/renderer/canvas/VectorImageLayer.d.ts +7 -4
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +10 -3
- package/renderer/canvas/VectorLayer.d.ts +7 -4
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +8 -0
- package/renderer/canvas/VectorTileLayer.d.ts +18 -16
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +79 -54
- package/renderer/vector.d.ts.map +1 -1
- package/renderer/webgl/Layer.d.ts +1 -6
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +2 -6
- package/renderer/webgl/PointsLayer.d.ts +23 -8
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +22 -1
- package/renderer/webgl/TileLayer.d.ts +16 -5
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +18 -0
- package/renderer/webgl/TileLayerBase.d.ts +7 -16
- package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
- package/renderer/webgl/TileLayerBase.js +69 -84
- package/renderer/webgl/VectorLayer.d.ts +32 -8
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +53 -0
- package/renderer/webgl/VectorTileLayer.d.ts +34 -29
- package/renderer/webgl/VectorTileLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorTileLayer.js +27 -0
- package/renderer/webgl/worldUtil.d.ts.map +1 -1
- package/reproj/DataTile.d.ts.map +1 -1
- package/reproj/DataTile.js +121 -119
- package/reproj/Image.d.ts +2 -1
- package/reproj/Image.d.ts.map +1 -1
- package/reproj/Image.js +4 -2
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +16 -19
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj.d.ts +1 -1
- package/reproj.d.ts.map +1 -1
- package/resolution.d.ts.map +1 -1
- package/resolutionconstraint.d.ts.map +1 -1
- package/rotationconstraint.d.ts.map +1 -1
- package/size.d.ts.map +1 -1
- package/source/BingMaps.d.ts +3 -3
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +1 -2
- package/source/CartoDB.d.ts +2 -2
- package/source/CartoDB.d.ts.map +1 -1
- package/source/CartoDB.js +1 -1
- package/source/Cluster.d.ts +5 -5
- package/source/Cluster.d.ts.map +1 -1
- package/source/Cluster.js +5 -2
- package/source/DataTile.d.ts +51 -22
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +67 -9
- package/source/GeoTIFF.d.ts +4 -7
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +4 -3
- package/source/Google.d.ts +2 -1
- package/source/Google.d.ts.map +1 -1
- package/source/Google.js +4 -2
- package/source/IIIF.d.ts +1 -1
- package/source/IIIF.js +1 -1
- package/source/Image.d.ts +3 -2
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +1 -0
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +4 -0
- package/source/ImageCanvas.d.ts +2 -1
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +1 -0
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +4 -0
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +1 -0
- package/source/ImageTile.d.ts +102 -0
- package/source/ImageTile.d.ts.map +1 -0
- package/source/ImageTile.js +206 -0
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +4 -0
- package/source/OGCMapTile.d.ts +2 -2
- package/source/OGCMapTile.js +1 -1
- package/source/OGCVectorTile.d.ts +9 -9
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +4 -4
- package/source/OSM.d.ts +2 -7
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +1 -3
- package/source/Raster.d.ts +41 -26
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +83 -102
- package/source/Source.d.ts +1 -1
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +5 -14
- package/source/StadiaMaps.d.ts +2 -2
- package/source/StadiaMaps.d.ts.map +1 -1
- package/source/StadiaMaps.js +2 -18
- package/source/Tile.d.ts +7 -36
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +9 -69
- package/source/TileArcGISRest.d.ts +2 -2
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +2 -1
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +0 -1
- package/source/TileEventType.d.ts +1 -1
- package/source/TileImage.d.ts +9 -12
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +21 -43
- package/source/TileJSON.d.ts +2 -2
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileJSON.js +1 -1
- package/source/TileWMS.d.ts +2 -2
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +3 -4
- package/source/UTFGrid.d.ts +5 -3
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +7 -8
- package/source/UrlTile.d.ts +16 -13
- package/source/UrlTile.d.ts.map +1 -1
- package/source/UrlTile.js +13 -7
- package/source/Vector.d.ts +21 -21
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +16 -13
- package/source/VectorEventType.d.ts +1 -1
- package/source/VectorTile.d.ts +13 -24
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +19 -87
- package/source/WMTS.d.ts +3 -3
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +5 -4
- package/source/XYZ.d.ts +14 -17
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +8 -8
- package/source/Zoomify.d.ts +5 -4
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +5 -2
- package/source/arcgisRest.d.ts +4 -4
- package/source/arcgisRest.d.ts.map +1 -1
- package/source/arcgisRest.js +5 -5
- package/source/mapguide.d.ts +3 -3
- package/source/mapguide.d.ts.map +1 -1
- package/source/mapguide.js +11 -8
- package/source/ogcTileUtil.d.ts +2 -2
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +7 -7
- package/source/static.d.ts +3 -3
- package/source/static.d.ts.map +1 -1
- package/source/static.js +7 -7
- package/source/wms.d.ts +2 -2
- package/source/wms.d.ts.map +1 -1
- package/source/wms.js +16 -19
- package/source.d.ts +1 -0
- package/source.d.ts.map +1 -1
- package/source.js +1 -0
- package/sphere.d.ts +1 -1
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/PriorityQueue.d.ts.map +1 -1
- package/structs/RBush.d.ts +10 -32
- package/structs/RBush.d.ts.map +1 -1
- package/structs/RBush.js +9 -12
- package/style/Circle.d.ts +2 -1
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +2 -1
- package/style/Fill.d.ts +3 -3
- package/style/Fill.d.ts.map +1 -1
- package/style/Fill.js +1 -1
- package/style/Icon.d.ts +8 -5
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +21 -0
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +3 -2
- package/style/IconImageCache.d.ts.map +1 -1
- package/style/Image.d.ts +3 -3
- package/style/Image.d.ts.map +1 -1
- package/style/RegularShape.d.ts +11 -5
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +23 -5
- package/style/Stroke.d.ts.map +1 -1
- package/style/Style.d.ts +5 -5
- package/style/Style.d.ts.map +1 -1
- package/style/Style.js +2 -2
- package/style/Text.d.ts +2 -2
- package/style/Text.d.ts.map +1 -1
- package/style/flat.d.ts.map +1 -1
- package/style/webgl.d.ts.map +1 -1
- package/tilecoord.d.ts +7 -0
- package/tilecoord.d.ts.map +1 -1
- package/tilecoord.js +11 -1
- package/tilegrid/TileGrid.d.ts +1 -1
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid/WMTS.js +1 -1
- package/tileurlfunction.d.ts +3 -7
- package/tileurlfunction.d.ts.map +1 -1
- package/tileurlfunction.js +14 -47
- package/transform.d.ts +15 -15
- package/transform.d.ts.map +1 -1
- package/uri.d.ts +23 -3
- package/uri.d.ts.map +1 -1
- package/uri.js +75 -0
- package/util.d.ts.map +1 -1
- package/util.js +1 -1
- package/vec/mat4.d.ts.map +1 -1
- package/webgl/BaseTileRepresentation.d.ts +3 -3
- package/webgl/BaseTileRepresentation.d.ts.map +1 -1
- package/webgl/BaseTileRepresentation.js +9 -2
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +1 -0
- package/webgl/PostProcessingPass.d.ts +48 -12
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +42 -6
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/ShaderBuilder.d.ts +1 -1
- package/webgl/TileGeometry.d.ts.map +1 -1
- package/webgl/TileGeometry.js +4 -1
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +14 -8
- package/webgl/styleparser.d.ts.map +1 -1
- package/webgl/styleparser.js +54 -66
- package/webgl.d.ts.map +1 -1
- package/worker/webgl.js +1 -1
- package/xml.d.ts.map +1 -1
- package/xml.js +27 -39
- package/source/SentinelHub.d.ts +0 -507
- package/source/SentinelHub.d.ts.map +0 -1
- package/source/SentinelHub.js +0 -616
- package/structs/LinkedList.d.ts +0 -130
- package/structs/LinkedList.d.ts.map +0 -1
- package/structs/LinkedList.js +0 -259
package/interaction/Draw.js
CHANGED
|
@@ -67,7 +67,7 @@ import {getStrideForLayout} from '../geom/SimpleGeometry.js';
|
|
|
67
67
|
* before a polygon ring or line string can be finished. Default is `3` for
|
|
68
68
|
* polygon rings and `2` for line strings.
|
|
69
69
|
* @property {import("../events/condition.js").Condition} [finishCondition] A function
|
|
70
|
-
* that takes
|
|
70
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
71
71
|
* boolean to indicate whether the drawing can be finished. Not used when drawing
|
|
72
72
|
* POINT or MULTI_POINT geometries.
|
|
73
73
|
* @property {import("../style/Style.js").StyleLike|import("../style/flat.js").FlatStyleLike} [style]
|
|
@@ -85,7 +85,7 @@ import {getStrideForLayout} from '../geom/SimpleGeometry.js';
|
|
|
85
85
|
* @property {string} [geometryName] Geometry name to use for features created
|
|
86
86
|
* by the draw interaction.
|
|
87
87
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
88
|
-
* takes
|
|
88
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
89
89
|
* boolean to indicate whether that event should be handled.
|
|
90
90
|
* By default {@link module:ol/events/condition.noModifierKeys}, i.e. a click,
|
|
91
91
|
* adds a vertex or deactivates freehand drawing.
|
|
@@ -94,7 +94,7 @@ import {getStrideForLayout} from '../geom/SimpleGeometry.js';
|
|
|
94
94
|
* mode and takes precedence over any `freehandCondition` option.
|
|
95
95
|
* @property {import("../events/condition.js").Condition} [freehandCondition]
|
|
96
96
|
* Condition that activates freehand drawing for lines and polygons. This
|
|
97
|
-
* function takes
|
|
97
|
+
* function takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and
|
|
98
98
|
* returns a boolean to indicate whether that event should be handled. The
|
|
99
99
|
* default is {@link module:ol/events/condition.shiftKeyOnly}, meaning that the
|
|
100
100
|
* Shift key activates freehand drawing.
|
|
@@ -755,7 +755,7 @@ class Draw extends PointerInteraction {
|
|
|
755
755
|
* @param {import("../proj/Projection.js").default} projection The view projection.
|
|
756
756
|
* @return {import("../geom/SimpleGeometry.js").default} A geometry.
|
|
757
757
|
*/
|
|
758
|
-
geometryFunction =
|
|
758
|
+
geometryFunction = (coordinates, geometry, projection) => {
|
|
759
759
|
const circle = geometry
|
|
760
760
|
? /** @type {Circle} */ (geometry)
|
|
761
761
|
: new Circle([NaN, NaN]);
|
|
@@ -790,7 +790,7 @@ class Draw extends PointerInteraction {
|
|
|
790
790
|
* @param {import("../proj/Projection.js").default} projection The view projection.
|
|
791
791
|
* @return {import("../geom/SimpleGeometry.js").default} A geometry.
|
|
792
792
|
*/
|
|
793
|
-
geometryFunction =
|
|
793
|
+
geometryFunction = (coordinates, geometry, projection) => {
|
|
794
794
|
if (geometry) {
|
|
795
795
|
if (mode === 'Polygon') {
|
|
796
796
|
if (coordinates[0].length) {
|
|
@@ -965,6 +965,7 @@ class Draw extends PointerInteraction {
|
|
|
965
965
|
* Subclasses may set up event handlers to get notified about changes to
|
|
966
966
|
* the map here.
|
|
967
967
|
* @param {import("../Map.js").default} map Map.
|
|
968
|
+
* @override
|
|
968
969
|
*/
|
|
969
970
|
setMap(map) {
|
|
970
971
|
super.setMap(map);
|
|
@@ -985,6 +986,7 @@ class Draw extends PointerInteraction {
|
|
|
985
986
|
* @param {import("../MapBrowserEvent.js").default} event Map browser event.
|
|
986
987
|
* @return {boolean} `false` to stop event propagation.
|
|
987
988
|
* @api
|
|
989
|
+
* @override
|
|
988
990
|
*/
|
|
989
991
|
handleEvent(event) {
|
|
990
992
|
if (event.originalEvent.type === EventType.CONTEXTMENU) {
|
|
@@ -1050,6 +1052,7 @@ class Draw extends PointerInteraction {
|
|
|
1050
1052
|
* Handle pointer down events.
|
|
1051
1053
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
1052
1054
|
* @return {boolean} If the event was consumed.
|
|
1055
|
+
* @override
|
|
1053
1056
|
*/
|
|
1054
1057
|
handleDownEvent(event) {
|
|
1055
1058
|
this.shouldHandle_ = !this.freehand_;
|
|
@@ -1300,6 +1303,7 @@ class Draw extends PointerInteraction {
|
|
|
1300
1303
|
* Handle pointer up events.
|
|
1301
1304
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
1302
1305
|
* @return {boolean} If the event was consumed.
|
|
1306
|
+
* @override
|
|
1303
1307
|
*/
|
|
1304
1308
|
handleUpEvent(event) {
|
|
1305
1309
|
let pass = true;
|
package/interaction/Extent.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default Extent;
|
|
|
19
19
|
export type Options = {
|
|
20
20
|
/**
|
|
21
21
|
* A function that
|
|
22
|
-
* takes
|
|
22
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
23
23
|
* boolean to indicate whether that event should be handled.
|
|
24
24
|
* Default is {@link module :ol/events/condition.always}.
|
|
25
25
|
*/
|
|
@@ -53,7 +53,7 @@ export type Options = {
|
|
|
53
53
|
/**
|
|
54
54
|
* *
|
|
55
55
|
*/
|
|
56
|
-
export type ExtentOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
56
|
+
export type ExtentOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types | "change:active", import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<"extentchanged", ExtentEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "extentchanged", Return>;
|
|
57
57
|
import Event from '../events/Event.js';
|
|
58
58
|
/***
|
|
59
59
|
* @template Return
|
|
@@ -173,8 +173,9 @@ declare class Extent extends PointerInteraction {
|
|
|
173
173
|
* Subclasses may set up event handlers to get notified about changes to
|
|
174
174
|
* the map here.
|
|
175
175
|
* @param {import("../Map.js").default} map Map.
|
|
176
|
+
* @override
|
|
176
177
|
*/
|
|
177
|
-
setMap(map: import("../Map.js").default): void;
|
|
178
|
+
override setMap(map: import("../Map.js").default): void;
|
|
178
179
|
/**
|
|
179
180
|
* Returns the current drawn extent in the view projection (or user projection if set)
|
|
180
181
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Extent.d.ts","sourceRoot":"","sources":["Extent.js"],"names":[],"mappings":"AAsDA;;;;GAIG;AACH;IACE;;OAEG;IACH,oBAFW,OAAO,cAAc,EAAE,MAAM,EAWvC;IANC;;;;OAIG;IACH,QAHU,OAAO,cAAc,EAAE,MAAM,CAGnB;CAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Extent.d.ts","sourceRoot":"","sources":["Extent.js"],"names":[],"mappings":"AAsDA;;;;GAIG;AACH;IACE;;OAEG;IACH,oBAFW,OAAO,cAAc,EAAE,MAAM,EAWvC;IANC;;;;OAIG;IACH,QAHU,OAAO,cAAc,EAAE,MAAM,CAGnB;CAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAGY,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,WAAW,CAAC,eAAe,EAAE,WAAW,EAAE,MAAM,CAAC,GAC7E,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,eAAqB,GAAC,eAAe,EAAE,MAAM,CAAC;kBA/E7B,oBAAoB;AAwEtC;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CA+GC;IA1GC;;OAEG;IACH,IAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEnD;IAEP;;OAEG;IACH,MAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEjD;IAET;;OAEG;IACH,IAFU,iBAAiB,CAAC,IAAI,CAAC,CAE1B;IAEP;;;;OAIG;IACH,mBAAgE;IAEhE;;;;OAIG;IACH,gBAAmB;IAEnB;;;;OAIG;IACH,wBAA2B;IAE3B;;;;OAIG;IACH,wBACoE;IAEpE;;;;OAIG;IACH,yBAA6B;IAE7B;;;;OAIG;IACH,uBAA0B;IAE1B;;;;OAIG;IACH,uBAA0B;IAM1B;;;;OAIG;IACH,uBAUE;IAEF;;;;OAIG;IACH,uBAUE;IAOJ;;;;;OAKG;IACH,sBAmCC;IAED;;;OAGG;IACH,2BASC;IAED;;;;OAIG;IACH,qCAmBC;IAED;;;;OAIG;IACH,sCAWC;IAmHD;;;;;;OAMG;IACH,qBAHW,OAAO,WAAW,EAAE,OAAO,QAOrC;IAED;;;;;OAKG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAQxC;IAED;;;;;OAKG;IACH,qBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;;OAKG;IACH,kBAHW,OAAO,cAAc,EAAE,MAAM,QAQvC;CACF;+BAnd8B,cAAc"}
|
package/interaction/Extent.js
CHANGED
|
@@ -23,7 +23,7 @@ import {toUserExtent} from '../proj.js';
|
|
|
23
23
|
/**
|
|
24
24
|
* @typedef {Object} Options
|
|
25
25
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
26
|
-
* takes
|
|
26
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
27
27
|
* boolean to indicate whether that event should be handled.
|
|
28
28
|
* Default is {@link module:ol/events/condition.always}.
|
|
29
29
|
* @property {import("../extent.js").Extent} [extent] Initial extent. Defaults to no
|
|
@@ -314,6 +314,7 @@ class Extent extends PointerInteraction {
|
|
|
314
314
|
/**
|
|
315
315
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
316
316
|
* @return {boolean} `false` to stop event propagation.
|
|
317
|
+
* @override
|
|
317
318
|
*/
|
|
318
319
|
handleEvent(mapBrowserEvent) {
|
|
319
320
|
if (!mapBrowserEvent.originalEvent || !this.condition_(mapBrowserEvent)) {
|
|
@@ -336,6 +337,7 @@ class Extent extends PointerInteraction {
|
|
|
336
337
|
* Handle pointer down events.
|
|
337
338
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
338
339
|
* @return {boolean} If the event was consumed.
|
|
340
|
+
* @override
|
|
339
341
|
*/
|
|
340
342
|
handleDownEvent(mapBrowserEvent) {
|
|
341
343
|
const pixel = mapBrowserEvent.pixel;
|
|
@@ -396,6 +398,7 @@ class Extent extends PointerInteraction {
|
|
|
396
398
|
/**
|
|
397
399
|
* Handle pointer drag events.
|
|
398
400
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
401
|
+
* @override
|
|
399
402
|
*/
|
|
400
403
|
handleDragEvent(mapBrowserEvent) {
|
|
401
404
|
if (this.pointerHandler_) {
|
|
@@ -409,6 +412,7 @@ class Extent extends PointerInteraction {
|
|
|
409
412
|
* Handle pointer up events.
|
|
410
413
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
411
414
|
* @return {boolean} If the event was consumed.
|
|
415
|
+
* @override
|
|
412
416
|
*/
|
|
413
417
|
handleUpEvent(mapBrowserEvent) {
|
|
414
418
|
this.pointerHandler_ = null;
|
|
@@ -425,6 +429,7 @@ class Extent extends PointerInteraction {
|
|
|
425
429
|
* Subclasses may set up event handlers to get notified about changes to
|
|
426
430
|
* the map here.
|
|
427
431
|
* @param {import("../Map.js").default} map Map.
|
|
432
|
+
* @override
|
|
428
433
|
*/
|
|
429
434
|
setMap(map) {
|
|
430
435
|
this.extentOverlay_.setMap(map);
|
|
@@ -15,7 +15,7 @@ export default Interaction;
|
|
|
15
15
|
/**
|
|
16
16
|
* *
|
|
17
17
|
*/
|
|
18
|
-
export type InteractionOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
18
|
+
export type InteractionOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types | "change:active", import("../Object").ObjectEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active", Return>;
|
|
19
19
|
/**
|
|
20
20
|
* Object literal with config options for interactions.
|
|
21
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Interaction.d.ts","sourceRoot":"","sources":["Interaction.js"],"names":[],"mappings":"AA6HA;;;;GAIG;AACH,0BAJW,OAAO,YAAY,EAAE,OAAO,SAC5B,OAAO,kBAAkB,EAAE,UAAU,uCAa/C;AAED;;;;;GAKG;AACH,kCALW,OAAO,YAAY,EAAE,OAAO,SAC5B,MAAM,mGAuBhB;;;;;
|
|
1
|
+
{"version":3,"file":"Interaction.d.ts","sourceRoot":"","sources":["Interaction.js"],"names":[],"mappings":"AA6HA;;;;GAIG;AACH,0BAJW,OAAO,YAAY,EAAE,OAAO,SAC5B,OAAO,kBAAkB,EAAE,UAAU,uCAa/C;AAED;;;;;GAKG;AACH,kCALW,OAAO,YAAY,EAAE,OAAO,SAC5B,MAAM,mGAuBhB;;;;;mCA/JY,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,eAAqB,EAAE,MAAM,CAAC;;;;;;;;;;;;iBAMjB,CAAS,IAAuC,EAAvC,4CAAuC,KAAE,OAAO;;AAZvE;;;;;;;GAOG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,sDA6BC;IA1BC;;OAEG;IACH,IAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAEP;;OAEG;IACH,MAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEtD;IAET;;OAEG;IACH,IAFU,sBAAsB,CAAC,IAAI,CAAC,CAE/B;IAkCT;;;;;OAKG;IACH,6BAJW,4CAAuC,GACtC,OAAO,CAKlB;IApCC;;;OAGG;IACH,aAAgB;IAKlB;;;;;OAKG;IACH,aAJY,OAAO,CAMlB;IAED;;;;OAIG;IACH,UAHY,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,CAK3C;IAYD;;;;;OAKG;IACH,kBAJW,OAAO,QAMjB;IAED;;;;;OAKG;IACH,YAFW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAI1C;CACF;uBAxHsB,cAAc"}
|
|
@@ -2,7 +2,7 @@ export default KeyboardPan;
|
|
|
2
2
|
export type Options = {
|
|
3
3
|
/**
|
|
4
4
|
* A function that
|
|
5
|
-
* takes
|
|
5
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
6
6
|
* boolean to indicate whether that event should be handled. Default is
|
|
7
7
|
* {@link module :ol/events/condition.noModifierKeys} and
|
|
8
8
|
* {@link module :ol/events/condition.targetNotEditable}.
|
|
@@ -21,7 +21,7 @@ export type Options = {
|
|
|
21
21
|
/**
|
|
22
22
|
* @typedef {Object} Options
|
|
23
23
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
24
|
-
* takes
|
|
24
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
25
25
|
* boolean to indicate whether that event should be handled. Default is
|
|
26
26
|
* {@link module:ol/events/condition.noModifierKeys} and
|
|
27
27
|
* {@link module:ol/events/condition.targetNotEditable}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardPan.d.ts","sourceRoot":"","sources":["KeyboardPan.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,2CAqCC;IAhCC;;;;OAIG;IACH,0BAIC;IAED;;;OAGG;IACH,mBAG4B;IAE5B;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,oBAC6D;
|
|
1
|
+
{"version":3,"file":"KeyboardPan.d.ts","sourceRoot":"","sources":["KeyboardPan.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,2CAqCC;IAhCC;;;;OAIG;IACH,0BAIC;IAED;;;OAGG;IACH,mBAG4B;IAE5B;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,oBAC6D;CAgDhE;wBAtH8B,kBAAkB"}
|
|
@@ -10,7 +10,7 @@ import {rotate as rotateCoordinate} from '../coordinate.js';
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {Object} Options
|
|
12
12
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
13
|
-
* takes
|
|
13
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
14
14
|
* boolean to indicate whether that event should be handled. Default is
|
|
15
15
|
* {@link module:ol/events/condition.noModifierKeys} and
|
|
16
16
|
* {@link module:ol/events/condition.targetNotEditable}.
|
|
@@ -81,6 +81,7 @@ class KeyboardPan extends Interaction {
|
|
|
81
81
|
* pressed).
|
|
82
82
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
83
83
|
* @return {boolean} `false` to stop event propagation.
|
|
84
|
+
* @override
|
|
84
85
|
*/
|
|
85
86
|
handleEvent(mapBrowserEvent) {
|
|
86
87
|
let stopEvent = false;
|
|
@@ -6,7 +6,7 @@ export type Options = {
|
|
|
6
6
|
duration?: number | undefined;
|
|
7
7
|
/**
|
|
8
8
|
* A function that
|
|
9
|
-
* takes
|
|
9
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
10
10
|
* boolean to indicate whether that event should be handled. The default condition is
|
|
11
11
|
* that {@link module :ol/events/condition.targetNotEditable} is fulfilled and that
|
|
12
12
|
* the platform modifier key isn't pressed
|
|
@@ -22,7 +22,7 @@ export type Options = {
|
|
|
22
22
|
* @typedef {Object} Options
|
|
23
23
|
* @property {number} [duration=100] Animation duration in milliseconds.
|
|
24
24
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
25
|
-
* takes
|
|
25
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
26
26
|
* boolean to indicate whether that event should be handled. The default condition is
|
|
27
27
|
* that {@link module:ol/events/condition.targetNotEditable} is fulfilled and that
|
|
28
28
|
* the platform modifier key isn't pressed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardZoom.d.ts","sourceRoot":"","sources":["KeyboardZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,2CA6BC;IAxBC;;;OAGG;IACH,mBAOK;IAEL;;;OAGG;IACH,eAA+C;IAE/C;;;OAGG;IACH,kBAAwE;
|
|
1
|
+
{"version":3,"file":"KeyboardZoom.d.ts","sourceRoot":"","sources":["KeyboardZoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAOA;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,2CA6BC;IAxBC;;;OAGG;IACH,mBAOK;IAEL;;;OAGG;IACH,eAA+C;IAE/C;;;OAGG;IACH,kBAAwE;CAgC3E;wBA5FsC,kBAAkB"}
|
|
@@ -9,7 +9,7 @@ import {platformModifierKey, targetNotEditable} from '../events/condition.js';
|
|
|
9
9
|
* @typedef {Object} Options
|
|
10
10
|
* @property {number} [duration=100] Animation duration in milliseconds.
|
|
11
11
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
12
|
-
* takes
|
|
12
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
13
13
|
* boolean to indicate whether that event should be handled. The default condition is
|
|
14
14
|
* that {@link module:ol/events/condition.targetNotEditable} is fulfilled and that
|
|
15
15
|
* the platform modifier key isn't pressed
|
|
@@ -71,6 +71,7 @@ class KeyboardZoom extends Interaction {
|
|
|
71
71
|
* key pressed was '+' or '-').
|
|
72
72
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
73
73
|
* @return {boolean} `false` to stop event propagation.
|
|
74
|
+
* @override
|
|
74
75
|
*/
|
|
75
76
|
handleEvent(mapBrowserEvent) {
|
|
76
77
|
let stopEvent = false;
|
package/interaction/Link.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["Link.js"],"names":[],"mappings":";qBAsDc,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["Link.js"],"names":[],"mappings":";qBAsDc,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG,GAAC,GAAG;uBAGpB,CAAS,IAAM,EAAN,MAAM,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;AAHlC,4CAA4C;AAE5C;;GAEG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CA+EC;IAzDC;;;OAGG;IACH,0BAAyC;IAEzC;;;OAGG;IACH,gBAGM;IAEN;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,gBAA6B;IAE7B;;;OAGG;IACH,sBAAuB;IAEvB;;;OAGG;IACH,iBAAoB;IA+ItB;;OAEG;IACH,qBAqFC;IAhOC;;;;OAIG;IACH,0BAA2B;IAE3B;;;;OAIG;IACH,uBAAwB;IAG1B;;;;OAIG;IACH,sBAKC;IAED;;;;;OAKG;IACH,aAEC;IAED;;;;;OAKG;IACH,aAKC;IAED;;;;OAIG;IACH,gBAKC;IAsBD;;;OAGG;IACH,2BAUC;IAED;;;OAGG;IACH,6BAkBC;IAED;;OAEG;IACH,gCASC;IA4FD;;;;;;;;OAQG;IACH,WALW,MAAM,YACN,QAAQ,GACP,MAAM,GAAC,IAAI,CAUtB;IAED;;;;;;;OAOG;IACH,YAJW,MAAM,SACN,MAAM,GAAC,IAAI,QAerB;IAED;;OAEG;IACH,mBA+BC;IAED;;;OAGG;IACH,uBAQC;CACF;wBA3cuB,kBAAkB"}
|
package/interaction/Link.js
CHANGED
|
@@ -141,6 +141,9 @@ class Link extends Interaction {
|
|
|
141
141
|
*/
|
|
142
142
|
this.initial_ = true;
|
|
143
143
|
|
|
144
|
+
/**
|
|
145
|
+
* @private
|
|
146
|
+
*/
|
|
144
147
|
this.updateState_ = this.updateState_.bind(this);
|
|
145
148
|
|
|
146
149
|
/**
|
|
@@ -207,6 +210,7 @@ class Link extends Interaction {
|
|
|
207
210
|
|
|
208
211
|
/**
|
|
209
212
|
* @param {import("../Map.js").default|null} map Map.
|
|
213
|
+
* @override
|
|
210
214
|
*/
|
|
211
215
|
setMap(map) {
|
|
212
216
|
const oldMap = this.getMap();
|
package/interaction/Modify.d.ts
CHANGED
|
@@ -10,17 +10,17 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {Object} Options
|
|
12
12
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
13
|
-
* takes
|
|
13
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
14
14
|
* boolean to indicate whether that event will be considered to add or move a
|
|
15
15
|
* vertex to the sketch. Default is
|
|
16
16
|
* {@link module:ol/events/condition.primaryAction}.
|
|
17
17
|
* @property {import("../events/condition.js").Condition} [deleteCondition] A function
|
|
18
|
-
* that takes
|
|
18
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
19
19
|
* boolean to indicate whether that event should be handled. By default,
|
|
20
20
|
* {@link module:ol/events/condition.singleClick} with
|
|
21
21
|
* {@link module:ol/events/condition.altKeyOnly} results in a vertex deletion.
|
|
22
22
|
* @property {import("../events/condition.js").Condition} [insertVertexCondition] A
|
|
23
|
-
* function that takes
|
|
23
|
+
* function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and
|
|
24
24
|
* returns a boolean to indicate whether a new vertex should be added to the sketch
|
|
25
25
|
* features. Default is {@link module:ol/events/condition.always}.
|
|
26
26
|
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
|
|
@@ -106,7 +106,7 @@ export type SegmentData = {
|
|
|
106
106
|
export type Options = {
|
|
107
107
|
/**
|
|
108
108
|
* A function that
|
|
109
|
-
* takes
|
|
109
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
110
110
|
* boolean to indicate whether that event will be considered to add or move a
|
|
111
111
|
* vertex to the sketch. Default is
|
|
112
112
|
* {@link module :ol/events/condition.primaryAction}.
|
|
@@ -114,7 +114,7 @@ export type Options = {
|
|
|
114
114
|
condition?: import("../events/condition.js").Condition | undefined;
|
|
115
115
|
/**
|
|
116
116
|
* A function
|
|
117
|
-
* that takes
|
|
117
|
+
* that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
118
118
|
* boolean to indicate whether that event should be handled. By default,
|
|
119
119
|
* {@link module :ol/events/condition.singleClick} with
|
|
120
120
|
* {@link module :ol/events/condition.altKeyOnly} results in a vertex deletion.
|
|
@@ -122,7 +122,7 @@ export type Options = {
|
|
|
122
122
|
deleteCondition?: import("../events/condition.js").Condition | undefined;
|
|
123
123
|
/**
|
|
124
124
|
* A
|
|
125
|
-
* function that takes
|
|
125
|
+
* function that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and
|
|
126
126
|
* returns a boolean to indicate whether a new vertex should be added to the sketch
|
|
127
127
|
* features. Default is {@link module :ol/events/condition.always}.
|
|
128
128
|
*/
|
|
@@ -155,7 +155,7 @@ export type Options = {
|
|
|
155
155
|
* the `pixelTolerance` from the pointer location. When a {@link module :ol/layer/BaseVector~BaseVectorLayer} is
|
|
156
156
|
* provided, only the rendered representation of the features on that layer will be considered.
|
|
157
157
|
*/
|
|
158
|
-
hitDetection?: boolean | import("../layer/BaseVector").default<any, any> | undefined;
|
|
158
|
+
hitDetection?: boolean | import("../layer/BaseVector").default<any, any, any> | undefined;
|
|
159
159
|
/**
|
|
160
160
|
* The features the interaction works on. If a feature collection is not
|
|
161
161
|
* provided, a vector source must be provided with the `source` option.
|
|
@@ -175,7 +175,7 @@ export type Options = {
|
|
|
175
175
|
/**
|
|
176
176
|
* *
|
|
177
177
|
*/
|
|
178
|
-
export type ModifyOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
178
|
+
export type ModifyOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types | "change:active", import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<"modifyend" | "modifystart", ModifyEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "modifyend" | "modifystart", Return>;
|
|
179
179
|
import Event from '../events/Event.js';
|
|
180
180
|
import Collection from '../Collection.js';
|
|
181
181
|
import Feature from '../Feature.js';
|
|
@@ -330,8 +330,9 @@ declare class Modify extends PointerInteraction {
|
|
|
330
330
|
private source_;
|
|
331
331
|
/**
|
|
332
332
|
* @type {boolean|import("../layer/BaseVector").default}
|
|
333
|
+
* @private
|
|
333
334
|
*/
|
|
334
|
-
hitDetection_
|
|
335
|
+
private hitDetection_;
|
|
335
336
|
/**
|
|
336
337
|
* @type {Collection<Feature>}
|
|
337
338
|
* @private
|
|
@@ -345,8 +346,9 @@ declare class Modify extends PointerInteraction {
|
|
|
345
346
|
/**
|
|
346
347
|
* Delta (x, y in map units) between matched rtree vertex and pointer vertex.
|
|
347
348
|
* @type {Array<number>}
|
|
349
|
+
* @private
|
|
348
350
|
*/
|
|
349
|
-
delta_
|
|
351
|
+
private delta_;
|
|
350
352
|
/**
|
|
351
353
|
* @private
|
|
352
354
|
*/
|
|
@@ -377,14 +379,15 @@ declare class Modify extends PointerInteraction {
|
|
|
377
379
|
* Subclasses may set up event handlers to get notified about changes to
|
|
378
380
|
* the map here.
|
|
379
381
|
* @param {import("../Map.js").default} map Map.
|
|
382
|
+
* @override
|
|
380
383
|
*/
|
|
381
|
-
setMap(map: import("../Map.js").default): void;
|
|
384
|
+
override setMap(map: import("../Map.js").default): void;
|
|
382
385
|
/**
|
|
383
386
|
* Get the overlay layer that this interaction renders the modification point or vertex to.
|
|
384
387
|
* @return {VectorLayer} Overlay layer.
|
|
385
388
|
* @api
|
|
386
389
|
*/
|
|
387
|
-
getOverlay(): VectorLayer
|
|
390
|
+
getOverlay(): VectorLayer;
|
|
388
391
|
/**
|
|
389
392
|
* @param {import("../source/Vector.js").VectorSourceEvent} event Event.
|
|
390
393
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modify.d.ts","sourceRoot":"","sources":["Modify.js"],"names":[],"mappings":"AAgFA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,
|
|
1
|
+
{"version":3,"file":"Modify.d.ts","sourceRoot":"","sources":["Modify.js"],"names":[],"mappings":"AAgFA;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,UAAU,CAAC,OAAO,CAAC,mBAEnB,4CAAuC,EAmBjD;IAbC;;;;OAIG;IACH,UAHU,UAAU,CAAC,OAAO,CAAC,CAGL;IAExB;;;;OAIG;IACH,iBAHU,4CAAuC,CAGX;CAEzC;;;;;;;;;;aAhFa,OAAO;;;;cACP,OAAO,2BAA2B,EAAE,OAAO;;;;;;;;aAE3C,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAgFrB,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,WAAW,CAAC,WAAW,GAAC,aAAa,EAAE,WAAW,EAAE,MAAM,CAAC,GACvF,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,eAAqB,GAAC,WAAW,GAAC,aAAa,EAAE,MAAM,CAAC;kBAvKvC,oBAAoB;uBAFf,kBAAkB;oBAIrB,eAAe;uBAwDzB,MAAM;;;;;AAsGhB;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAmOjB;IA9NC;;OAEG;IACH,IAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEnD;IAEP;;OAEG;IACH,MAFU,iBAAiB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEjD;IAET;;OAEG;IACH,IAFU,iBAAiB,CAAC,IAAI,CAAC,CAE1B;IAEP,eAAe;IACf,kCAAqE;IAErE;;;OAGG;IACH,mBAAuE;IAEvE;;;;OAIG;IACH,gCAEC;IAED;;;OAGG;IACH,yBAEgC;IAEhC;;;OAGG;IACH,+BAEU;IAEV;;;;OAIG;IACH,uBAA0B;IAE1B;;;;OAIG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,mBAAwB;IAExB;;;;;OAKG;IACH,+BAAmC;IAEnC;;;OAGG;IACH,+BAAkC;IAElC;;;;OAIG;IACH,eAAyB;IAEzB;;;OAGG;IACH,wBACoE;IAEpE;;;OAGG;IACH,yBAA6B;IAE7B;;;;;OAKG;IACH,yBAA6B;IAE7B;;;OAGG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,iBAQE;IAEF;;;;OAIG;IACH,yBAUC;IAED;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,sBAAyB;IA2BzB;;;OAGG;IACH,kBAAyB;IAYzB;;;OAGG;IACH,0BAA6B;IAE7B;;;;OAIG;IACH,eAAoB;IAEpB;;OAEG;IACH,uBAG2B;IAG7B;;;OAGG;IACH,oBAaC;IAED;;;;OAIG;IACH,4BAyBC;IAED;;;OAGG;IACH,uBAWC;IAED;;;OAGG;IACH,kCAuBC;IAiBD;;;;;;OAMG;IACH,qBAHW,OAAO,WAAW,EAAE,OAAO,QAMrC;IAED;;;;OAIG;IACH,cAHY,WAAW,CAKtB;IAED;;;OAGG;IACH,yBAIC;IAED;;;OAGG;IACH,4BAIC;IAED;;;OAGG;IACH,0BAEC;IAED;;;OAGG;IACH,6BAMC;IAED;;;OAGG;IACH,6BAEC;IAED;;;;OAIG;IACH,4BAWC;IAED;;;;OAIG;IACH,iCAgBC;IAED;;;;OAIG;IACH,iCAeC;IAED;;;;OAIG;IACH,sCAmBC;IAED;;;;OAIG;IACH,8BAmBC;IAED;;;;OAIG;IACH,mCAsBC;IAED;;;;;;;;;;OAUG;IACH,6BAqCC;IAED;;;;OAIG;IACH,yCAOC;IAED;;;;;;OAMG;IACH,qCAaC;IAiUD;;;OAGG;IACH,2BAGC;IAED;;;;;OAKG;IACH,8BAsIC;IAED;;;;OAIG;IACH,sBA8DC;IAED;;;;OAIG;IACH,eAHY,OAAO,CAyBlB;IAED;;;;OAIG;IACH,sBAiHC;IAED;;;;OAIG;IACH,gCAIC;IAED;;;;;;OAMG;IACH,8BAeC;CACF;yBA1gDwB,qBAAqB;+BAJf,cAAc;wBAGrB,oBAAoB"}
|
package/interaction/Modify.js
CHANGED
|
@@ -91,17 +91,17 @@ const ModifyEventType = {
|
|
|
91
91
|
/**
|
|
92
92
|
* @typedef {Object} Options
|
|
93
93
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
94
|
-
* takes
|
|
94
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
95
95
|
* boolean to indicate whether that event will be considered to add or move a
|
|
96
96
|
* vertex to the sketch. Default is
|
|
97
97
|
* {@link module:ol/events/condition.primaryAction}.
|
|
98
98
|
* @property {import("../events/condition.js").Condition} [deleteCondition] A function
|
|
99
|
-
* that takes
|
|
99
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
100
100
|
* boolean to indicate whether that event should be handled. By default,
|
|
101
101
|
* {@link module:ol/events/condition.singleClick} with
|
|
102
102
|
* {@link module:ol/events/condition.altKeyOnly} results in a vertex deletion.
|
|
103
103
|
* @property {import("../events/condition.js").Condition} [insertVertexCondition] A
|
|
104
|
-
* function that takes
|
|
104
|
+
* function that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and
|
|
105
105
|
* returns a boolean to indicate whether a new vertex should be added to the sketch
|
|
106
106
|
* features. Default is {@link module:ol/events/condition.always}.
|
|
107
107
|
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
|
|
@@ -358,6 +358,7 @@ class Modify extends PointerInteraction {
|
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
360
|
* @type {boolean|import("../layer/BaseVector").default}
|
|
361
|
+
* @private
|
|
361
362
|
*/
|
|
362
363
|
this.hitDetection_ = null;
|
|
363
364
|
|
|
@@ -411,6 +412,7 @@ class Modify extends PointerInteraction {
|
|
|
411
412
|
/**
|
|
412
413
|
* Delta (x, y in map units) between matched rtree vertex and pointer vertex.
|
|
413
414
|
* @type {Array<number>}
|
|
415
|
+
* @private
|
|
414
416
|
*/
|
|
415
417
|
this.delta_ = [0, 0];
|
|
416
418
|
|
|
@@ -525,6 +527,7 @@ class Modify extends PointerInteraction {
|
|
|
525
527
|
* @param {boolean} active Active.
|
|
526
528
|
* @observable
|
|
527
529
|
* @api
|
|
530
|
+
* @override
|
|
528
531
|
*/
|
|
529
532
|
setActive(active) {
|
|
530
533
|
if (this.vertexFeature_ && !active) {
|
|
@@ -539,6 +542,7 @@ class Modify extends PointerInteraction {
|
|
|
539
542
|
* Subclasses may set up event handlers to get notified about changes to
|
|
540
543
|
* the map here.
|
|
541
544
|
* @param {import("../Map.js").default} map Map.
|
|
545
|
+
* @override
|
|
542
546
|
*/
|
|
543
547
|
setMap(map) {
|
|
544
548
|
this.overlay_.setMap(map);
|
|
@@ -836,6 +840,7 @@ class Modify extends PointerInteraction {
|
|
|
836
840
|
* Handles the {@link module:ol/MapBrowserEvent~MapBrowserEvent map browser event} and may modify the geometry.
|
|
837
841
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
838
842
|
* @return {boolean} `false` to stop event propagation.
|
|
843
|
+
* @override
|
|
839
844
|
*/
|
|
840
845
|
handleEvent(mapBrowserEvent) {
|
|
841
846
|
if (!mapBrowserEvent.originalEvent) {
|
|
@@ -872,6 +877,7 @@ class Modify extends PointerInteraction {
|
|
|
872
877
|
/**
|
|
873
878
|
* Handle pointer drag events.
|
|
874
879
|
* @param {import("../MapBrowserEvent.js").default} evt Event.
|
|
880
|
+
* @override
|
|
875
881
|
*/
|
|
876
882
|
handleDragEvent(evt) {
|
|
877
883
|
this.ignoreNextSingleClick_ = false;
|
|
@@ -979,6 +985,7 @@ class Modify extends PointerInteraction {
|
|
|
979
985
|
* Handle pointer down events.
|
|
980
986
|
* @param {import("../MapBrowserEvent.js").default} evt Event.
|
|
981
987
|
* @return {boolean} If the event was consumed.
|
|
988
|
+
* @override
|
|
982
989
|
*/
|
|
983
990
|
handleDownEvent(evt) {
|
|
984
991
|
if (!this.condition_(evt)) {
|
|
@@ -1099,6 +1106,7 @@ class Modify extends PointerInteraction {
|
|
|
1099
1106
|
* Handle pointer up events.
|
|
1100
1107
|
* @param {import("../MapBrowserEvent.js").default} evt Event.
|
|
1101
1108
|
* @return {boolean} If the event was consumed.
|
|
1109
|
+
* @override
|
|
1102
1110
|
*/
|
|
1103
1111
|
handleUpEvent(evt) {
|
|
1104
1112
|
for (let i = this.dragSegments_.length - 1; i >= 0; --i) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default MouseWheelZoom;
|
|
2
|
-
export type Mode =
|
|
2
|
+
export type Mode = "trackpad" | "wheel";
|
|
3
3
|
export type Options = {
|
|
4
4
|
/**
|
|
5
5
|
* A function that
|
|
6
|
-
* takes
|
|
6
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
7
7
|
* boolean to indicate whether that event should be handled. Default is
|
|
8
8
|
* {@link module :ol/events/condition.always}.
|
|
9
9
|
*/
|
|
@@ -44,7 +44,7 @@ export type Options = {
|
|
|
44
44
|
/**
|
|
45
45
|
* @typedef {Object} Options
|
|
46
46
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
47
|
-
* takes
|
|
47
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
48
48
|
* boolean to indicate whether that event should be handled. Default is
|
|
49
49
|
* {@link module:ol/events/condition.always}.
|
|
50
50
|
* @property {boolean} [onFocusOnly=false] When the map's target has a `tabindex` attribute set,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MouseWheelZoom.d.ts","sourceRoot":"","sources":["MouseWheelZoom.js"],"names":[],"mappings":";mBAUa,UAAU,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADjC;;GAEG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CA2GC;IApGC;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,mBAAmB;IAEnB;;;OAGG;IACH,kBAAsE;IAEtE;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,iBAAoE;IAEpE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,6BAGW;IAIX;;;OAGG;IACH,mBAEa;IAEb;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,mBAAe;IAEf;;;OAGG;IACH,cAAsB;IAEtB;;;;;OAKG;IACH,0BAA4B;IAE5B;;;OAGG;IACH,2BAAuB;IAEvB;;;;OAIG;IACH,sBAAwB;IAG1B;;OAEG;IACH,wBAYC;
|
|
1
|
+
{"version":3,"file":"MouseWheelZoom.d.ts","sourceRoot":"","sources":["MouseWheelZoom.js"],"names":[],"mappings":";mBAUa,UAAU,GAAG,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADjC;;GAEG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CA2GC;IApGC;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,mBAAmB;IAEnB;;;OAGG;IACH,kBAAsE;IAEtE;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,iBAAoE;IAEpE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,6BAGW;IAIX;;;OAGG;IACH,mBAEa;IAEb;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,mBAAe;IAEf;;;OAGG;IACH,cAAsB;IAEtB;;;;;OAKG;IACH,0BAA4B;IAE5B;;;OAGG;IACH,2BAAuB;IAEvB;;;;OAIG;IACH,sBAAwB;IAG1B;;OAEG;IACH,wBAYC;IA2FD;;;OAGG;IACH,yBAsBC;IAED;;;;;OAKG;IACH,0BAJW,OAAO,QASjB;CACF;wBApSsC,kBAAkB"}
|
|
@@ -14,7 +14,7 @@ import {clamp} from '../math.js';
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {Object} Options
|
|
16
16
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
17
|
-
* takes
|
|
17
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
18
18
|
* boolean to indicate whether that event should be handled. Default is
|
|
19
19
|
* {@link module:ol/events/condition.always}.
|
|
20
20
|
* @property {boolean} [onFocusOnly=false] When the map's target has a `tabindex` attribute set,
|
|
@@ -170,6 +170,7 @@ class MouseWheelZoom extends Interaction {
|
|
|
170
170
|
* zooms the map.
|
|
171
171
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
172
172
|
* @return {boolean} `false` to stop event propagation.
|
|
173
|
+
* @override
|
|
173
174
|
*/
|
|
174
175
|
handleEvent(mapBrowserEvent) {
|
|
175
176
|
if (!this.condition_(mapBrowserEvent)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinchRotate.d.ts","sourceRoot":"","sources":["PinchRotate.js"],"names":[],"mappings":";;;;;;;;;;;;AASA;;;;;GAKG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAgDC;IAnCC;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,uBAAyB;IAEzB;;;OAGG;IACH,mBAA2E;IAE3E;;;OAGG;IACH,kBAAwE;
|
|
1
|
+
{"version":3,"file":"PinchRotate.d.ts","sourceRoot":"","sources":["PinchRotate.js"],"names":[],"mappings":";;;;;;;;;;;;AASA;;;;;GAKG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAgDC;IAnCC;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,mBAA2B;IAE3B;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,uBAAyB;IAEzB;;;OAGG;IACH,mBAA2E;IAE3E;;;OAGG;IACH,kBAAwE;CAsF3E;+BA1JM,cAAc"}
|
|
@@ -77,6 +77,7 @@ class PinchRotate extends PointerInteraction {
|
|
|
77
77
|
/**
|
|
78
78
|
* Handle pointer drag events.
|
|
79
79
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
80
|
+
* @override
|
|
80
81
|
*/
|
|
81
82
|
handleDragEvent(mapBrowserEvent) {
|
|
82
83
|
let rotationDelta = 0.0;
|
|
@@ -124,6 +125,7 @@ class PinchRotate extends PointerInteraction {
|
|
|
124
125
|
* Handle pointer up events.
|
|
125
126
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
126
127
|
* @return {boolean} If the event was consumed.
|
|
128
|
+
* @override
|
|
127
129
|
*/
|
|
128
130
|
handleUpEvent(mapBrowserEvent) {
|
|
129
131
|
if (this.targetPointers.length < 2) {
|
|
@@ -139,6 +141,7 @@ class PinchRotate extends PointerInteraction {
|
|
|
139
141
|
* Handle pointer down events.
|
|
140
142
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
141
143
|
* @return {boolean} If the event was consumed.
|
|
144
|
+
* @override
|
|
142
145
|
*/
|
|
143
146
|
handleDownEvent(mapBrowserEvent) {
|
|
144
147
|
if (this.targetPointers.length >= 2) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinchZoom.d.ts","sourceRoot":"","sources":["PinchZoom.js"],"names":[],"mappings":";;;;;;;AAQA;;;GAGG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAoCC;IAvBC;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,sBAA8B;IAE9B;;;OAGG;IACH,wBAAwB;
|
|
1
|
+
{"version":3,"file":"PinchZoom.d.ts","sourceRoot":"","sources":["PinchZoom.js"],"names":[],"mappings":";;;;;;;AAQA;;;GAGG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CAoCC;IAvBC;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,sBAA8B;IAE9B;;;OAGG;IACH,wBAAwB;CA6E3B;+BAlIM,cAAc"}
|
package/interaction/PinchZoom.js
CHANGED
|
@@ -62,6 +62,7 @@ class PinchZoom extends PointerInteraction {
|
|
|
62
62
|
/**
|
|
63
63
|
* Handle pointer drag events.
|
|
64
64
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
65
|
+
* @override
|
|
65
66
|
*/
|
|
66
67
|
handleDragEvent(mapBrowserEvent) {
|
|
67
68
|
let scaleDelta = 1.0;
|
|
@@ -100,6 +101,7 @@ class PinchZoom extends PointerInteraction {
|
|
|
100
101
|
* Handle pointer up events.
|
|
101
102
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
102
103
|
* @return {boolean} If the event was consumed.
|
|
104
|
+
* @override
|
|
103
105
|
*/
|
|
104
106
|
handleUpEvent(mapBrowserEvent) {
|
|
105
107
|
if (this.targetPointers.length < 2) {
|
|
@@ -116,6 +118,7 @@ class PinchZoom extends PointerInteraction {
|
|
|
116
118
|
* Handle pointer down events.
|
|
117
119
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Event.
|
|
118
120
|
* @return {boolean} If the event was consumed.
|
|
121
|
+
* @override
|
|
119
122
|
*/
|
|
120
123
|
handleDownEvent(mapBrowserEvent) {
|
|
121
124
|
if (this.targetPointers.length >= 2) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pointer.d.ts","sourceRoot":"","sources":["Pointer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Pointer.d.ts","sourceRoot":"","sources":["Pointer.js"],"names":[],"mappings":"AA+LA;;;GAGG;AACH,wCAHW,KAAK,CAAC,YAAY,CAAC,GAClB;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,CAW7C;;;;;;;8BApMsB,4CAAuC,KAAE,OAAO;;;;;8BAGhD,4CAAuC,KAAE,IAAI;;;;;;;0BAG7C,4CAAuC,KAAE,OAAO;;;;;;;;8BAKhD,4CAAuC,KAAE,IAAI;;;;;4BAM7C,4CAAuC,KAAE,OAAO;;;;;uBAGhD,OAAO,KAAE,OAAO;;AAtBvC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;;;GAUG;AACH;IACE;;OAEG;IACH,2CAsCC;IAYD;;;;;OAKG;IACH,2CAJW,4CAAuC,GACtC,OAAO,CAKlB;IAED;;;;OAIG;IACH,2CAHW,4CAAuC,QAGf;IAwCnC;;;;OAIG;IACH,2CAHW,4CAAuC,QAGf;IAEnC;;;;;OAKG;IACH,yCAJW,4CAAuC,GACtC,OAAO,CAKlB;IAED;;;;;OAKG;IACH,kBAHW,OAAO,GACN,OAAO,CAIlB;IAvGC;;;OAGG;IACH,kCAHU,OAAO,CAGkB;IAEnC;;;OAGG;IACH,0BAHU,KAAK,CAAC,YAAY,CAAC,CAGL;IAG1B;;;;;OAKG;IACH,mBAHY,MAAM,CAKjB;IAoFD;;;OAGG;IACH,+BAIC;CACF;wBA1LuB,kBAAkB"}
|
package/interaction/Pointer.js
CHANGED
|
@@ -120,6 +120,7 @@ class PointerInteraction extends Interaction {
|
|
|
120
120
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
121
121
|
* @return {boolean} `false` to stop event propagation.
|
|
122
122
|
* @api
|
|
123
|
+
* @override
|
|
123
124
|
*/
|
|
124
125
|
handleEvent(mapBrowserEvent) {
|
|
125
126
|
if (!mapBrowserEvent.originalEvent) {
|