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/Select.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A function that takes
|
|
2
|
+
* A function that takes a {@link module:ol/Feature~Feature} and returns `true` if the feature may be
|
|
3
3
|
* selected or `false` otherwise.
|
|
4
4
|
* @typedef {function(import("../Feature.js").default, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* @typedef {Object} Options
|
|
8
8
|
* @property {import("../events/condition.js").Condition} [addCondition] A function
|
|
9
|
-
* that takes
|
|
9
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
10
10
|
* boolean to indicate whether that event should be handled.
|
|
11
11
|
* By default, this is {@link module:ol/events/condition.never}. Use this if you
|
|
12
12
|
* want to use different events for add and remove instead of `toggle`.
|
|
13
13
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
14
|
-
* takes
|
|
14
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
15
15
|
* boolean to indicate whether that event should be handled. This is the event
|
|
16
16
|
* for the selected features as a whole. By default, this is
|
|
17
17
|
* {@link module:ol/events/condition.singleClick}. Clicking on a feature selects that
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
* any style changes for selected features.
|
|
32
32
|
* If set to a falsey value, the selected feature's style will not change.
|
|
33
33
|
* @property {import("../events/condition.js").Condition} [removeCondition] A function
|
|
34
|
-
* that takes
|
|
34
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
35
35
|
* boolean to indicate whether that event should be handled.
|
|
36
36
|
* By default, this is {@link module:ol/events/condition.never}. Use this if you
|
|
37
37
|
* want to use different events for add and remove instead of `toggle`.
|
|
38
38
|
* @property {import("../events/condition.js").Condition} [toggleCondition] A function
|
|
39
|
-
* that takes
|
|
39
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
40
40
|
* boolean to indicate whether that event should be handled. This is in addition
|
|
41
41
|
* to the `condition` event. By default,
|
|
42
42
|
* {@link module:ol/events/condition.shiftKeyOnly}, i.e. pressing `shift` as
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
* used by the interaction is returned by
|
|
53
53
|
* {@link module:ol/interaction/Select~Select#getFeatures}.
|
|
54
54
|
* @property {FilterFunction} [filter] A function
|
|
55
|
-
* that takes
|
|
55
|
+
* that takes a {@link module:ol/Feature~Feature} and a
|
|
56
56
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
57
57
|
* selected or `false` otherwise.
|
|
58
58
|
* @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside
|
|
@@ -93,14 +93,14 @@ export class SelectEvent extends Event {
|
|
|
93
93
|
}
|
|
94
94
|
export default Select;
|
|
95
95
|
/**
|
|
96
|
-
* A function that takes
|
|
96
|
+
* A function that takes a {@link module :ol/Feature~Feature} and returns `true` if the feature may be
|
|
97
97
|
* selected or `false` otherwise.
|
|
98
98
|
*/
|
|
99
99
|
export type FilterFunction = (arg0: import("../Feature.js").default, arg1: import("../layer/Layer.js").default<import("../source/Source").default>) => boolean;
|
|
100
100
|
export type Options = {
|
|
101
101
|
/**
|
|
102
102
|
* A function
|
|
103
|
-
* that takes
|
|
103
|
+
* that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
104
104
|
* boolean to indicate whether that event should be handled.
|
|
105
105
|
* By default, this is {@link module :ol/events/condition.never}. Use this if you
|
|
106
106
|
* want to use different events for add and remove instead of `toggle`.
|
|
@@ -108,7 +108,7 @@ export type Options = {
|
|
|
108
108
|
addCondition?: import("../events/condition.js").Condition | undefined;
|
|
109
109
|
/**
|
|
110
110
|
* A function that
|
|
111
|
-
* takes
|
|
111
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
112
112
|
* boolean to indicate whether that event should be handled. This is the event
|
|
113
113
|
* for the selected features as a whole. By default, this is
|
|
114
114
|
* {@link module :ol/events/condition.singleClick}. Clicking on a feature selects that
|
|
@@ -135,7 +135,7 @@ export type Options = {
|
|
|
135
135
|
style?: import("../style/Style.js").StyleLike | null | undefined;
|
|
136
136
|
/**
|
|
137
137
|
* A function
|
|
138
|
-
* that takes
|
|
138
|
+
* that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
139
139
|
* boolean to indicate whether that event should be handled.
|
|
140
140
|
* By default, this is {@link module :ol/events/condition.never}. Use this if you
|
|
141
141
|
* want to use different events for add and remove instead of `toggle`.
|
|
@@ -143,7 +143,7 @@ export type Options = {
|
|
|
143
143
|
removeCondition?: import("../events/condition.js").Condition | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* A function
|
|
146
|
-
* that takes
|
|
146
|
+
* that takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
147
147
|
* boolean to indicate whether that event should be handled. This is in addition
|
|
148
148
|
* to the `condition` event. By default,
|
|
149
149
|
* {@link module :ol/events/condition.shiftKeyOnly}, i.e. pressing `shift` as
|
|
@@ -167,7 +167,7 @@ export type Options = {
|
|
|
167
167
|
features?: Collection<Feature<import("../geom.js").Geometry>> | undefined;
|
|
168
168
|
/**
|
|
169
169
|
* A function
|
|
170
|
-
* that takes
|
|
170
|
+
* that takes a {@link module :ol/Feature~Feature} and a
|
|
171
171
|
* {@link module :ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
172
172
|
* selected or `false` otherwise.
|
|
173
173
|
*/
|
|
@@ -181,7 +181,7 @@ export type Options = {
|
|
|
181
181
|
/**
|
|
182
182
|
* *
|
|
183
183
|
*/
|
|
184
|
-
export type SelectOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
184
|
+
export type SelectOnSignature<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<"select", SelectEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "select", Return>;
|
|
185
185
|
import Event from '../events/Event.js';
|
|
186
186
|
type SelectEventType = string;
|
|
187
187
|
declare namespace SelectEventType {
|
|
@@ -316,7 +316,7 @@ declare class Select extends Interaction {
|
|
|
316
316
|
* @return {import('../layer/Vector.js').default} Layer.
|
|
317
317
|
* @api
|
|
318
318
|
*/
|
|
319
|
-
getLayer(feature: import("../Feature.js").default):
|
|
319
|
+
getLayer(feature: import("../Feature.js").default): import("../layer/Vector.js").default;
|
|
320
320
|
/**
|
|
321
321
|
* Hit-detection tolerance. Pixels inside the radius around the given position
|
|
322
322
|
* will be checked for features.
|
|
@@ -357,5 +357,4 @@ declare class Select extends Interaction {
|
|
|
357
357
|
import Feature from '../Feature.js';
|
|
358
358
|
import Collection from '../Collection.js';
|
|
359
359
|
import Interaction from './Interaction.js';
|
|
360
|
-
import VectorLayer from '../layer/Vector.js';
|
|
361
360
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AA4BA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,eAAe,YACf,
|
|
1
|
+
{"version":3,"file":"Select.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CAoHF;oBAvjBmB,eAAe;uBAHZ,kBAAkB;wBAIjB,kBAAkB"}
|
package/interaction/Select.js
CHANGED
|
@@ -27,7 +27,7 @@ const SelectEventType = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* A function that takes
|
|
30
|
+
* A function that takes a {@link module:ol/Feature~Feature} and returns `true` if the feature may be
|
|
31
31
|
* selected or `false` otherwise.
|
|
32
32
|
* @typedef {function(import("../Feature.js").default, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
|
|
33
33
|
*/
|
|
@@ -35,12 +35,12 @@ const SelectEventType = {
|
|
|
35
35
|
/**
|
|
36
36
|
* @typedef {Object} Options
|
|
37
37
|
* @property {import("../events/condition.js").Condition} [addCondition] A function
|
|
38
|
-
* that takes
|
|
38
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
39
39
|
* boolean to indicate whether that event should be handled.
|
|
40
40
|
* By default, this is {@link module:ol/events/condition.never}. Use this if you
|
|
41
41
|
* want to use different events for add and remove instead of `toggle`.
|
|
42
42
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
43
|
-
* takes
|
|
43
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
44
44
|
* boolean to indicate whether that event should be handled. This is the event
|
|
45
45
|
* for the selected features as a whole. By default, this is
|
|
46
46
|
* {@link module:ol/events/condition.singleClick}. Clicking on a feature selects that
|
|
@@ -60,12 +60,12 @@ const SelectEventType = {
|
|
|
60
60
|
* any style changes for selected features.
|
|
61
61
|
* If set to a falsey value, the selected feature's style will not change.
|
|
62
62
|
* @property {import("../events/condition.js").Condition} [removeCondition] A function
|
|
63
|
-
* that takes
|
|
63
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
64
64
|
* boolean to indicate whether that event should be handled.
|
|
65
65
|
* By default, this is {@link module:ol/events/condition.never}. Use this if you
|
|
66
66
|
* want to use different events for add and remove instead of `toggle`.
|
|
67
67
|
* @property {import("../events/condition.js").Condition} [toggleCondition] A function
|
|
68
|
-
* that takes
|
|
68
|
+
* that takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
69
69
|
* boolean to indicate whether that event should be handled. This is in addition
|
|
70
70
|
* to the `condition` event. By default,
|
|
71
71
|
* {@link module:ol/events/condition.shiftKeyOnly}, i.e. pressing `shift` as
|
|
@@ -81,7 +81,7 @@ const SelectEventType = {
|
|
|
81
81
|
* used by the interaction is returned by
|
|
82
82
|
* {@link module:ol/interaction/Select~Select#getFeatures}.
|
|
83
83
|
* @property {FilterFunction} [filter] A function
|
|
84
|
-
* that takes
|
|
84
|
+
* that takes a {@link module:ol/Feature~Feature} and a
|
|
85
85
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
86
86
|
* selected or `false` otherwise.
|
|
87
87
|
* @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside
|
|
@@ -334,6 +334,7 @@ class Select extends Interaction {
|
|
|
334
334
|
* map, if any. Pass `null` to just remove the interaction from the current map.
|
|
335
335
|
* @param {import("../Map.js").default|null} map Map.
|
|
336
336
|
* @api
|
|
337
|
+
* @override
|
|
337
338
|
*/
|
|
338
339
|
setMap(map) {
|
|
339
340
|
const currentMap = this.getMap();
|
|
@@ -461,6 +462,7 @@ class Select extends Interaction {
|
|
|
461
462
|
* selected state of features.
|
|
462
463
|
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
|
|
463
464
|
* @return {boolean} `false` to stop event propagation.
|
|
465
|
+
* @override
|
|
464
466
|
*/
|
|
465
467
|
handleEvent(mapBrowserEvent) {
|
|
466
468
|
if (!this.condition_(mapBrowserEvent)) {
|
package/interaction/Snap.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export type Options = {
|
|
|
53
53
|
/**
|
|
54
54
|
* *
|
|
55
55
|
*/
|
|
56
|
-
export type SnapOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
56
|
+
export type SnapOnSignature<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<"snap", SnapEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "snap", Return>;
|
|
57
57
|
/***
|
|
58
58
|
* @template Return
|
|
59
59
|
* @typedef {import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> &
|
|
@@ -207,8 +207,9 @@ declare class Snap extends PointerInteraction {
|
|
|
207
207
|
* Subclasses may set up event handlers to get notified about changes to
|
|
208
208
|
* the map here.
|
|
209
209
|
* @param {import("../Map.js").default} map Map.
|
|
210
|
+
* @override
|
|
210
211
|
*/
|
|
211
|
-
setMap(map: import("../Map.js").default): void;
|
|
212
|
+
override setMap(map: import("../Map.js").default): void;
|
|
212
213
|
/**
|
|
213
214
|
* @param {import("../pixel.js").Pixel} pixel Pixel
|
|
214
215
|
* @param {import("../coordinate.js").Coordinate} pixelCoordinate Coordinate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snap.d.ts","sourceRoot":"","sources":["Snap.js"],"names":[],"mappings":";;;;;YA4Bc,OAAO,kBAAkB,EAAE,UAAU,GAAC,IAAI;;;;iBAC1C,OAAO,aAAa,EAAE,KAAK,GAAC,IAAI;;;;aAChC,OAAO,eAAe,EAAE,OAAO,GAAC,IAAI;;;;aACpC,
|
|
1
|
+
{"version":3,"file":"Snap.d.ts","sourceRoot":"","sources":["Snap.js"],"names":[],"mappings":";;;;;YA4Bc,OAAO,kBAAkB,EAAE,UAAU,GAAC,IAAI;;;;iBAC1C,OAAO,aAAa,EAAE,KAAK,GAAC,IAAI;;;;aAChC,OAAO,eAAe,EAAE,OAA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OAIG;IACH,eAAyB;IAEzB;;;;OAIG;IACH,6BAUC;IAGH;;;;;;OAMG;IACH,oBALW,OAAO,eAAe,EAAE,OAAO,wCAyCzC;IAED;;;OAGG;IACH,qBASC;IAyBD;;;OAGG;IACH,0BAKC;IAED;;;OAGG;IACH,6BAKC;IAED;;;OAGG;IACH,6BAUC;IAiBD;;;;;;OAMG;IACH,uBALW,OAAO,eAAe,EAAE,OAAO,wCA0BzC;IAED;;;;;;OAMG;IACH,qBAHW,OAAO,WAAW,EAAE,OAAO,QAqDrC;IAED;;;;;OAKG;IACH,cALW,OAAO,aAAa,EAAE,KAAK,mBAC3B,OAAO,kBAAkB,EAAE,UAAU,OACrC,OAAO,WAAW,EAAE,OAAO,GAC1B,MAAM,GAAC,IAAI,CAgHtB;IAED;;;OAGG;IACH,uBAGC;IAED;;;;OAIG;IACH,+BAiBC;IAED;;;;OAIG;IACH,2CAQC;IAED;;;;OAIG;IACH,mCAKC;IAED;;;;OAIG;IACH,wCAQC;IAED;;;;OAIG;IACH,mCAIC;IAED;;;;OAIG;IACH,qCAWC;IAED;;;;OAIG;IACH,8BAEC;IAED;;;;OAIG;IACH,gCAQC;CACF;0BAnrBsC,wBAAwB;+BAJhC,cAAc"}
|
package/interaction/Snap.js
CHANGED
|
@@ -292,6 +292,7 @@ class Snap extends PointerInteraction {
|
|
|
292
292
|
* @param {import("../MapBrowserEvent.js").default} evt Map browser event.
|
|
293
293
|
* @return {boolean} `false` to stop event propagation.
|
|
294
294
|
* @api
|
|
295
|
+
* @override
|
|
295
296
|
*/
|
|
296
297
|
handleEvent(evt) {
|
|
297
298
|
const result = this.snapTo(evt.pixel, evt.coordinate, evt.map);
|
|
@@ -352,6 +353,7 @@ class Snap extends PointerInteraction {
|
|
|
352
353
|
* Handle pointer up events.
|
|
353
354
|
* @param {import("../MapBrowserEvent.js").default} evt Event.
|
|
354
355
|
* @return {boolean} If the event was consumed.
|
|
356
|
+
* @override
|
|
355
357
|
*/
|
|
356
358
|
handleUpEvent(evt) {
|
|
357
359
|
const featuresToUpdate = Object.values(this.pendingFeatures_);
|
|
@@ -397,6 +399,7 @@ class Snap extends PointerInteraction {
|
|
|
397
399
|
* Subclasses may set up event handlers to get notified about changes to
|
|
398
400
|
* the map here.
|
|
399
401
|
* @param {import("../Map.js").default} map Map.
|
|
402
|
+
* @override
|
|
400
403
|
*/
|
|
401
404
|
setMap(map) {
|
|
402
405
|
const currentMap = this.getMap();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A function that takes
|
|
3
|
-
* {@link module:ol/render/Feature~RenderFeature} and
|
|
2
|
+
* A function that takes a {@link module:ol/Feature~Feature} or
|
|
3
|
+
* {@link module:ol/render/Feature~RenderFeature} and a
|
|
4
4
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
5
5
|
* translated or `false` otherwise.
|
|
6
6
|
* @typedef {function(Feature, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef {Object} Options
|
|
10
10
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
11
|
-
* takes
|
|
11
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
12
12
|
* boolean to indicate whether that event should be handled.
|
|
13
13
|
* Default is {@link module:ol/events/condition.always}.
|
|
14
14
|
* @property {Collection<Feature>} [features] Features contained in this collection will be able to be translated together.
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* absent, all visible layers will be considered translatable.
|
|
20
20
|
* Not used if `features` is provided.
|
|
21
21
|
* @property {FilterFunction} [filter] A function
|
|
22
|
-
* that takes
|
|
22
|
+
* that takes a {@link module:ol/Feature~Feature} and an
|
|
23
23
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
24
24
|
* translated or `false` otherwise. Not used if `features` is provided.
|
|
25
25
|
* @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside the radius around the given position
|
|
@@ -68,8 +68,8 @@ export class TranslateEvent extends Event {
|
|
|
68
68
|
}
|
|
69
69
|
export default Translate;
|
|
70
70
|
/**
|
|
71
|
-
* A function that takes
|
|
72
|
-
* {@link module :ol/render/Feature~RenderFeature} and
|
|
71
|
+
* A function that takes a {@link module :ol/Feature~Feature} or
|
|
72
|
+
* {@link module :ol/render/Feature~RenderFeature} and a
|
|
73
73
|
* {@link module :ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
74
74
|
* translated or `false` otherwise.
|
|
75
75
|
*/
|
|
@@ -77,7 +77,7 @@ export type FilterFunction = (arg0: Feature, arg1: import("../layer/Layer.js").d
|
|
|
77
77
|
export type Options = {
|
|
78
78
|
/**
|
|
79
79
|
* A function that
|
|
80
|
-
* takes
|
|
80
|
+
* takes a {@link module :ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
81
81
|
* boolean to indicate whether that event should be handled.
|
|
82
82
|
* Default is {@link module :ol/events/condition.always}.
|
|
83
83
|
*/
|
|
@@ -97,7 +97,7 @@ export type Options = {
|
|
|
97
97
|
layers?: import("../layer/Layer.js").default<import("../source/Source").default, import("../renderer/Layer.js").default<any>>[] | ((arg0: import("../layer/Layer.js").default<import("../source/Source").default>) => boolean) | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* A function
|
|
100
|
-
* that takes
|
|
100
|
+
* that takes a {@link module :ol/Feature~Feature} and an
|
|
101
101
|
* {@link module :ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
102
102
|
* translated or `false` otherwise. Not used if `features` is provided.
|
|
103
103
|
*/
|
|
@@ -111,7 +111,7 @@ export type Options = {
|
|
|
111
111
|
/**
|
|
112
112
|
* *
|
|
113
113
|
*/
|
|
114
|
-
export type TranslateOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types |
|
|
114
|
+
export type TranslateOnSignature<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<"translateend" | "translatestart" | "translating", TranslateEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | "change:active" | "translateend" | "translatestart" | "translating", Return>;
|
|
115
115
|
import Event from '../events/Event.js';
|
|
116
116
|
import Collection from '../Collection.js';
|
|
117
117
|
import Feature from '../Feature.js';
|
|
@@ -227,8 +227,9 @@ declare class Translate extends PointerInteraction {
|
|
|
227
227
|
* Subclasses may set up event handlers to get notified about changes to
|
|
228
228
|
* the map here.
|
|
229
229
|
* @param {import("../Map.js").default} map Map.
|
|
230
|
+
* @override
|
|
230
231
|
*/
|
|
231
|
-
setMap(map: import("../Map.js").default): void;
|
|
232
|
+
override setMap(map: import("../Map.js").default): void;
|
|
232
233
|
/**
|
|
233
234
|
* @private
|
|
234
235
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Translate.d.ts","sourceRoot":"","sources":["Translate.js"],"names":[],"mappings":"AAoCA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,kBAAkB,YAClB,
|
|
1
|
+
{"version":3,"file":"Translate.d.ts","sourceRoot":"","sources":["Translate.js"],"names":[],"mappings":"AAoCA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;GAIG;AACH;IACE;;;;;;OAMG;IACH,kBANW,kBAAkB,YAClB,UAAU,CAAC,OAAO,CAAC,cACnB,OAAO,kBAAkB,EAAE,UAAU,mBACrC,OAAO,kBAAkB,EAAE,UAAU,mBACrC,4CAAuC,EAkCjD;IA7BC;;;;OAIG;IACH,UAHU,UAAU,CAAC,OAAO,CAAC,CAGL;IAExB;;;;;OAKG;IACH,YAHU,OAAO,kB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U,oBAAoB,CAAC,IAAI,CAAC,CAE7B;IAEP;;;;OAIG;IACH,wBAA2B;IAE3B;;;;OAIG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,kBAAyE;IAiBzE;;;OAGG;IACH,qBAA+B;IAE/B;;;OAGG;IACH,gBAAwE;IAExE;;;OAGG;IACH,sBAAoE;IAEpE;;;OAGG;IACH,mBAAgE;IAEhE;;;OAGG;IACH,qBAAwB;IAsI1B;;;;;;;;OAQG;IACH,yBAiBC;IAED;;;;OAIG;IACH,mBAHY,MAAM,CAKjB;IAED;;;;;OAKG;IACH,8BAHW,MAAM,QAKhB;IAED;;;;;;OAMG;IACH,qBAHW,OAAO,WAAW,EAAE,OAAO,QAOrC;IAED;;OAEG;IACH,6BAEC;IAED;;;OAGG;IACH,qBAUC;CACF;+BA7a8B,cAAc"}
|
package/interaction/Translate.js
CHANGED
|
@@ -35,8 +35,8 @@ const TranslateEventType = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* A function that takes
|
|
39
|
-
* {@link module:ol/render/Feature~RenderFeature} and
|
|
38
|
+
* A function that takes a {@link module:ol/Feature~Feature} or
|
|
39
|
+
* {@link module:ol/render/Feature~RenderFeature} and a
|
|
40
40
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
41
41
|
* translated or `false` otherwise.
|
|
42
42
|
* @typedef {function(Feature, import("../layer/Layer.js").default<import("../source/Source").default>):boolean} FilterFunction
|
|
@@ -45,7 +45,7 @@ const TranslateEventType = {
|
|
|
45
45
|
/**
|
|
46
46
|
* @typedef {Object} Options
|
|
47
47
|
* @property {import("../events/condition.js").Condition} [condition] A function that
|
|
48
|
-
* takes
|
|
48
|
+
* takes a {@link module:ol/MapBrowserEvent~MapBrowserEvent} and returns a
|
|
49
49
|
* boolean to indicate whether that event should be handled.
|
|
50
50
|
* Default is {@link module:ol/events/condition.always}.
|
|
51
51
|
* @property {Collection<Feature>} [features] Features contained in this collection will be able to be translated together.
|
|
@@ -56,7 +56,7 @@ const TranslateEventType = {
|
|
|
56
56
|
* absent, all visible layers will be considered translatable.
|
|
57
57
|
* Not used if `features` is provided.
|
|
58
58
|
* @property {FilterFunction} [filter] A function
|
|
59
|
-
* that takes
|
|
59
|
+
* that takes a {@link module:ol/Feature~Feature} and an
|
|
60
60
|
* {@link module:ol/layer/Layer~Layer} and returns `true` if the feature may be
|
|
61
61
|
* translated or `false` otherwise. Not used if `features` is provided.
|
|
62
62
|
* @property {number} [hitTolerance=0] Hit-detection tolerance. Pixels inside the radius around the given position
|
|
@@ -230,6 +230,7 @@ class Translate extends PointerInteraction {
|
|
|
230
230
|
* Handle pointer down events.
|
|
231
231
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
232
232
|
* @return {boolean} If the event was consumed.
|
|
233
|
+
* @override
|
|
233
234
|
*/
|
|
234
235
|
handleDownEvent(event) {
|
|
235
236
|
if (!event.originalEvent || !this.condition_(event)) {
|
|
@@ -261,6 +262,7 @@ class Translate extends PointerInteraction {
|
|
|
261
262
|
* Handle pointer up events.
|
|
262
263
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
263
264
|
* @return {boolean} If the event was consumed.
|
|
265
|
+
* @override
|
|
264
266
|
*/
|
|
265
267
|
handleUpEvent(event) {
|
|
266
268
|
if (this.lastCoordinate_) {
|
|
@@ -288,6 +290,7 @@ class Translate extends PointerInteraction {
|
|
|
288
290
|
/**
|
|
289
291
|
* Handle pointer drag events.
|
|
290
292
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
293
|
+
* @override
|
|
291
294
|
*/
|
|
292
295
|
handleDragEvent(event) {
|
|
293
296
|
if (this.lastCoordinate_) {
|
|
@@ -334,6 +337,7 @@ class Translate extends PointerInteraction {
|
|
|
334
337
|
/**
|
|
335
338
|
* Handle pointer move events.
|
|
336
339
|
* @param {import("../MapBrowserEvent.js").default} event Event.
|
|
340
|
+
* @override
|
|
337
341
|
*/
|
|
338
342
|
handleMoveEvent(event) {
|
|
339
343
|
const elem = event.map.getViewport();
|
|
@@ -400,6 +404,7 @@ class Translate extends PointerInteraction {
|
|
|
400
404
|
* Subclasses may set up event handlers to get notified about changes to
|
|
401
405
|
* the map here.
|
|
402
406
|
* @param {import("../Map.js").default} map Map.
|
|
407
|
+
* @override
|
|
403
408
|
*/
|
|
404
409
|
setMap(map) {
|
|
405
410
|
const oldMap = this.getMap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iEALY,
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,iEALY,UAAU,CAAC,OAAO,kBAAkB,EAAE,OAAO,CAAC,CA0FzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAhJsB,kBAAkB"}
|
package/layer/Base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export default BaseLayer;
|
|
|
3
3
|
* A css color, or a function called with a view resolution returning a css color.
|
|
4
4
|
*/
|
|
5
5
|
export type BackgroundColor = string | ((arg0: number) => string);
|
|
6
|
-
export type BaseLayerObjectEventTypes = import("../ObjectEventType").Types |
|
|
6
|
+
export type BaseLayerObjectEventTypes = import("../ObjectEventType").Types | "change:extent" | "change:maxResolution" | "change:maxZoom" | "change:minResolution" | "change:minZoom" | "change:opacity" | "change:visible" | "change:zIndex";
|
|
7
7
|
/**
|
|
8
8
|
* *
|
|
9
9
|
*/
|
package/layer/Base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["Base.js"],"names":[],"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AFY,MAAM,CAIjB;IAED;;;;;;OAMG;IACH,8CAFY,OAAO,YAAY,EAAE,KAAK,CAsBrC;IAED;;;;;OAKG;IACH,wJAFY,KAAK,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAI9C;IAED;;;;;OAKG;IACH,wEAFY,KAAK,CAAC,OAAO,YAAY,EAAE,KAAK,CAAC,CAI5C;IAED;;;;;;OAMG;IACH,aAJY,OAAO,cAAc,EAAE,MAAM,GAAC,SAAS,CAQlD;IAED;;;;;;OAMG;IACH,oBAJY,MAAM,CAMjB;IAED;;;;;;OAMG;IACH,oBAJY,MAAM,CAMjB;IAED;;;;;;OAMG;IACH,cAJY,MAAM,CAMjB;IAED;;;;;;OAMG;IACH,cAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,cAJY,MAAM,CAMjB;IAED;;;OAGG;IACH,kBAFY,OAAO,qBAAqB,EAAE,KAAK,CAI9C;IAED;;;;;;OAMG;IACH,cAJY,OAAO,CAMlB;IAED;;;;;;OAMG;IACH,aAJY,MAAM,GAAC,SAAS,CAM3B;IAED;;;OAGG;IACH,8DAGC;IAED;;;;;;OAMG;IACH,kBAJW,OAAO,cAAc,EAAE,MAAM,GAAC,SAAS,QAMjD;IAED;;;;;OAKG;IACH,gCAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,gCAJW,MAAM,QAMhB;IAED;;;;;;;OAOG;IACH,oBAJW,MAAM,QAMhB;IAED;;;;;;;OAOG;IACH,oBAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,QAOhB;IAED;;;;;OAKG;IACH,oBAJW,OAAO,QAMjB;IAED;;;;;;OAMG;IACH,kBAJW,MAAM,QAMhB;CAaF;uBAhZsB,cAAc"}
|
package/layer/Base.js
CHANGED
package/layer/BaseImage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseImage.d.ts","sourceRoot":"","sources":["BaseImage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseImage.d.ts","sourceRoot":"","sources":["BaseImage.js"],"names":[],"mappings":";oBAMoD,eAAe,SAAtD,OAAQ,oBAAoB,EAAE,OAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;GAYG;AACH,6BALoD,eAAe,SAAtD,OAAQ,oBAAoB,EAAE,OAAQ,EACG,YAAY,SAArD,2CAAwC;IAKnD;;OAEG;IACH,4DAGC;CACF;kBAnDiB,YAAY"}
|
package/layer/BaseTile.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export default BaseTileLayer;
|
|
|
2
2
|
/**
|
|
3
3
|
* *
|
|
4
4
|
*/
|
|
5
|
-
export type BaseTileLayerOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("./Base").BaseLayerObjectEventTypes | import("./Layer.js").LayerEventType |
|
|
5
|
+
export type BaseTileLayerOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("./Base").BaseLayerObjectEventTypes | import("./Layer.js").LayerEventType | "change:preload" | "change:useInterimTilesOnError", import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<import("../render/EventType").LayerRenderEventTypes, import("../render/Event").default, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("./Base").BaseLayerObjectEventTypes | import("./Layer.js").LayerEventType | "change:preload" | "change:useInterimTilesOnError" | import("../render/EventType").LayerRenderEventTypes, Return>;
|
|
6
6
|
export type Options<TileSourceType extends import("../source/Tile.js").default> = {
|
|
7
7
|
/**
|
|
8
8
|
* A CSS class name to set to the layer element.
|
|
@@ -65,7 +65,7 @@ export type Options<TileSourceType extends import("../source/Tile.js").default>
|
|
|
65
65
|
*/
|
|
66
66
|
map?: import("../Map.js").default | undefined;
|
|
67
67
|
/**
|
|
68
|
-
* Use interim tiles on error.
|
|
68
|
+
* Deprecated. Use interim tiles on error.
|
|
69
69
|
*/
|
|
70
70
|
useInterimTilesOnError?: boolean | undefined;
|
|
71
71
|
/**
|
|
@@ -74,6 +74,11 @@ export type Options<TileSourceType extends import("../source/Tile.js").default>
|
|
|
74
74
|
properties?: {
|
|
75
75
|
[x: string]: any;
|
|
76
76
|
} | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The internal tile cache size. This needs to be large enough to render
|
|
79
|
+
* two zoom levels worth of tiles.
|
|
80
|
+
*/
|
|
81
|
+
cacheSize?: number | undefined;
|
|
77
82
|
};
|
|
78
83
|
/***
|
|
79
84
|
* @template Return
|
|
@@ -111,8 +116,10 @@ export type Options<TileSourceType extends import("../source/Tile.js").default>
|
|
|
111
116
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
112
117
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
113
118
|
* use {@link import("../Map.js").default#addLayer map.addLayer()}.
|
|
114
|
-
* @property {boolean} [useInterimTilesOnError=true] Use interim tiles on error.
|
|
119
|
+
* @property {boolean} [useInterimTilesOnError=true] Deprecated. Use interim tiles on error.
|
|
115
120
|
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
121
|
+
* @property {number} [cacheSize=512] The internal tile cache size. This needs to be large enough to render
|
|
122
|
+
* two zoom levels worth of tiles.
|
|
116
123
|
*/
|
|
117
124
|
/**
|
|
118
125
|
* @classdesc
|
|
@@ -144,6 +151,16 @@ declare class BaseTileLayer<TileSourceType extends import("../source/Tile.js").d
|
|
|
144
151
|
* @type {BaseTileLayerOnSignature<void>}
|
|
145
152
|
*/
|
|
146
153
|
un: BaseTileLayerOnSignature<void>;
|
|
154
|
+
/**
|
|
155
|
+
* @type {number|undefined}
|
|
156
|
+
* @private
|
|
157
|
+
*/
|
|
158
|
+
private cacheSize_;
|
|
159
|
+
/**
|
|
160
|
+
* @return {number|undefined} The suggested cache size
|
|
161
|
+
* @protected
|
|
162
|
+
*/
|
|
163
|
+
protected getCacheSize(): number | undefined;
|
|
147
164
|
/**
|
|
148
165
|
* Return the level as number to which we will preload tiles up to.
|
|
149
166
|
* @return {number} The level to preload tiles up to.
|
|
@@ -159,14 +176,14 @@ declare class BaseTileLayer<TileSourceType extends import("../source/Tile.js").d
|
|
|
159
176
|
*/
|
|
160
177
|
setPreload(preload: number): void;
|
|
161
178
|
/**
|
|
162
|
-
* Whether we use interim tiles on error.
|
|
179
|
+
* Deprecated. Whether we use interim tiles on error.
|
|
163
180
|
* @return {boolean} Use interim tiles on error.
|
|
164
181
|
* @observable
|
|
165
182
|
* @api
|
|
166
183
|
*/
|
|
167
184
|
getUseInterimTilesOnError(): boolean;
|
|
168
185
|
/**
|
|
169
|
-
* Set whether we use interim tiles on error.
|
|
186
|
+
* Deprecated. Set whether we use interim tiles on error.
|
|
170
187
|
* @param {boolean} useInterimTilesOnError Use interim tiles on error.
|
|
171
188
|
* @observable
|
|
172
189
|
* @api
|
package/layer/BaseTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.d.ts","sourceRoot":"","sources":["BaseTile.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseTile.d.ts","sourceRoot":"","sources":["BaseTile.js"],"names":[],"mappings":";;;;qCAOa,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,QAAQ,EAAE,yBAAyB,GAClF,OAAa,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,GACvI,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,QAAQ,EAAE,yBAAyB,GAC7H,OAAW,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,GAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,CAAC;oBAInG,cAAc,SAApD,OAAQ,mBAAmB,EAAE,OAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXlD;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;GAYG;AACH,4BALmD,cAAc,SAApD,OAAQ,mBAAmB,EAAE,OAAQ,EACI,YAAY,SAArD,2CAAwC;IAKnD;;OAEG;IACH,2DAuCC;IA3BC;;OAEG;IACH,IAFU,wBAAwB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAE1D;IAEP;;OAEG;IACH,MAFU,wBAAwB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAET;;OAEG;IACH,IAFU,wBAAwB,CAAC,IAAI,CAAC,CAEjC;IAEP;;;OAGG;IACH,mBAA2B;IAU7B;;;OAGG;IACH,0BAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;;OAKG;IACH,cAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,6BAJY,OAAO,CAQlB;IAED;;;;;OAKG;IACH,kDAJW,OAAO,QAMjB;CAsBF;kBA9KiB,YAAY"}
|
package/layer/BaseTile.js
CHANGED
|
@@ -41,8 +41,10 @@ import TileProperty from './TileProperty.js';
|
|
|
41
41
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
42
42
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
43
43
|
* use {@link import("../Map.js").default#addLayer map.addLayer()}.
|
|
44
|
-
* @property {boolean} [useInterimTilesOnError=true] Use interim tiles on error.
|
|
44
|
+
* @property {boolean} [useInterimTilesOnError=true] Deprecated. Use interim tiles on error.
|
|
45
45
|
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
46
|
+
* @property {number} [cacheSize=512] The internal tile cache size. This needs to be large enough to render
|
|
47
|
+
* two zoom levels worth of tiles.
|
|
46
48
|
*/
|
|
47
49
|
|
|
48
50
|
/**
|
|
@@ -67,6 +69,9 @@ class BaseTileLayer extends Layer {
|
|
|
67
69
|
|
|
68
70
|
const baseOptions = Object.assign({}, options);
|
|
69
71
|
|
|
72
|
+
const cacheSize = options.cacheSize;
|
|
73
|
+
delete options.cacheSize;
|
|
74
|
+
|
|
70
75
|
delete baseOptions.preload;
|
|
71
76
|
delete baseOptions.useInterimTilesOnError;
|
|
72
77
|
super(baseOptions);
|
|
@@ -86,6 +91,12 @@ class BaseTileLayer extends Layer {
|
|
|
86
91
|
*/
|
|
87
92
|
this.un;
|
|
88
93
|
|
|
94
|
+
/**
|
|
95
|
+
* @type {number|undefined}
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
this.cacheSize_ = cacheSize;
|
|
99
|
+
|
|
89
100
|
this.setPreload(options.preload !== undefined ? options.preload : 0);
|
|
90
101
|
this.setUseInterimTilesOnError(
|
|
91
102
|
options.useInterimTilesOnError !== undefined
|
|
@@ -94,6 +105,14 @@ class BaseTileLayer extends Layer {
|
|
|
94
105
|
);
|
|
95
106
|
}
|
|
96
107
|
|
|
108
|
+
/**
|
|
109
|
+
* @return {number|undefined} The suggested cache size
|
|
110
|
+
* @protected
|
|
111
|
+
*/
|
|
112
|
+
getCacheSize() {
|
|
113
|
+
return this.cacheSize_;
|
|
114
|
+
}
|
|
115
|
+
|
|
97
116
|
/**
|
|
98
117
|
* Return the level as number to which we will preload tiles up to.
|
|
99
118
|
* @return {number} The level to preload tiles up to.
|
|
@@ -115,7 +134,7 @@ class BaseTileLayer extends Layer {
|
|
|
115
134
|
}
|
|
116
135
|
|
|
117
136
|
/**
|
|
118
|
-
* Whether we use interim tiles on error.
|
|
137
|
+
* Deprecated. Whether we use interim tiles on error.
|
|
119
138
|
* @return {boolean} Use interim tiles on error.
|
|
120
139
|
* @observable
|
|
121
140
|
* @api
|
|
@@ -127,7 +146,7 @@ class BaseTileLayer extends Layer {
|
|
|
127
146
|
}
|
|
128
147
|
|
|
129
148
|
/**
|
|
130
|
-
* Set whether we use interim tiles on error.
|
|
149
|
+
* Deprecated. Set whether we use interim tiles on error.
|
|
131
150
|
* @param {boolean} useInterimTilesOnError Use interim tiles on error.
|
|
132
151
|
* @observable
|
|
133
152
|
* @api
|
|
@@ -151,6 +170,7 @@ class BaseTileLayer extends Layer {
|
|
|
151
170
|
* @param {import("../pixel").Pixel} pixel Pixel.
|
|
152
171
|
* @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.
|
|
153
172
|
* @api
|
|
173
|
+
* @override
|
|
154
174
|
*/
|
|
155
175
|
getData(pixel) {
|
|
156
176
|
return super.getData(pixel);
|