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/layer/BaseVector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default BaseVectorLayer;
|
|
2
|
-
export type Options<VectorSourceType extends import("../source/Vector.js").default<
|
|
2
|
+
export type Options<FeatureType extends import("../Feature").FeatureLike, VectorSourceType extends import("../source/Vector.js").default<FeatureType> | import("../source/VectorTile.js").default<FeatureType>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -112,16 +112,17 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
|
|
|
112
112
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
113
113
|
* options means that `title` is observable, and has get/set accessors.
|
|
114
114
|
*
|
|
115
|
-
* @template {import(
|
|
116
|
-
* @template {import("../
|
|
115
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
116
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
117
117
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
118
|
+
* @template {import("../renderer/canvas/VectorLayer.js").default|import("../renderer/canvas/VectorTileLayer.js").default|import("../renderer/canvas/VectorImageLayer.js").default|import("../renderer/webgl/PointsLayer.js").default} RendererType
|
|
118
119
|
* @api
|
|
119
120
|
*/
|
|
120
|
-
declare class BaseVectorLayer<VectorSourceType extends import("../source/Vector.js").default<
|
|
121
|
+
declare class BaseVectorLayer<FeatureType extends import("../Feature").FeatureLike, VectorSourceType extends import("../source/Vector.js").default<FeatureType> | import("../source/VectorTile.js").default<FeatureType>, RendererType extends import("../renderer/canvas/VectorLayer.js").default | import("../renderer/canvas/VectorTileLayer.js").default | import("../renderer/canvas/VectorImageLayer.js").default | import("../renderer/webgl/PointsLayer.js").default> extends Layer<VectorSourceType, RendererType> {
|
|
121
122
|
/**
|
|
122
|
-
* @param {Options<VectorSourceType>} [options] Options.
|
|
123
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
123
124
|
*/
|
|
124
|
-
constructor(options?: Options<VectorSourceType> | undefined);
|
|
125
|
+
constructor(options?: Options<FeatureType, VectorSourceType> | undefined);
|
|
125
126
|
/**
|
|
126
127
|
* @private
|
|
127
128
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseVector.d.ts","sourceRoot":"","sources":["BaseVector.js"],"names":[],"mappings":";oBAegD,WAAW,SAA9C,OAAQ,YAAY,EAAE,WAAY,EAC0E,gBAAgB,SAA3H,OAAO,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAC,GAAC,OAAO,yBAAyB,EAAE,OAAO,CAAC,WAAW,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDxH;;;;;;;;;;;;GAYG;AACH,8BANgD,WAAW,SAA9C,OAAQ,YAAY,EAAE,WAAY,EAC0E,gBAAgB,SAA3H,OAAO,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAC,GAAC,OAAO,yBAAyB,EAAE,OAAO,CAAC,WAAW,CAAE,EAE+G,YAAY,SAArO,OAAO,mCAAmC,EAAE,OAAO,GAAC,OAAO,uCAAuC,EAAE,OAAO,GAAC,OAAO,wCAAwC,EAAE,OAAO,GAAC,OAAO,kCAAkC,EAAE,OAAQ;IAIpO;;OAEG;IACH,0EAyDC;IA9CC;;;OAGG;IACH,mBAA2E;IAE3E;;;OAGG;IACH,sBACiE;IAEjE;;;;OAIG;IACH,eAAkB;IAElB;;;;OAIG;IACH,uBAA+B;IAI/B;;;OAGG;IACH,8BAGW;IAEX;;;OAGG;IACH,gCAGW;IA8Bb;;OAEG;IACH,mBAFY,MAAM,GAAC,SAAS,CAI3B;IAED;;;OAGG;IACH,kBAHY,CAAS,IAA+B,EAA/B,OAAO,eAAe,EAAE,OAAO,EAAE,IAA+B,EAA/B,OAAO,eAAe,EAAE,OAAO,KAAG,MAAM,GAAC,IAAI,GAAC,SAAS,CAO5G;IAED;;;;;OAKG;IACH,YAHY,OAAO,mBAAmB,EAAE,SAAS,GAAC,OAAO,kBAAkB,EAAE,aAAa,GAAC,IAAI,GAAC,SAAS,CAKxG;IAED;;;;OAIG;IACH,oBAHY,OAAO,mBAAmB,EAAE,aAAa,GAAC,SAAS,CAK9D;IAED;;;OAGG;IACH,2BAHY,OAAO,CAKlB;IAED;;;OAGG;IACH,6BAHY,OAAO,CAKlB;IAgBD;;;OAGG;IACH,4BAHW,OAAO,cAAc,EAAE,aAAa,GAAC,IAAI,GAAC,SAAS,QAK7D;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,4HAMC;CACF;kBAnRiB,YAAY"}
|
package/layer/BaseVector.js
CHANGED
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
} from '../render/canvas/style.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @template {import(
|
|
16
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
17
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
17
18
|
* @typedef {Object} Options
|
|
18
19
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
19
20
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -77,14 +78,15 @@ const Property = {
|
|
|
77
78
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
78
79
|
* options means that `title` is observable, and has get/set accessors.
|
|
79
80
|
*
|
|
80
|
-
* @template {import(
|
|
81
|
-
* @template {import("../
|
|
81
|
+
* @template {import('../Feature').FeatureLike} FeatureType
|
|
82
|
+
* @template {import("../source/Vector.js").default<FeatureType>|import("../source/VectorTile.js").default<FeatureType>} VectorSourceType<FeatureType>
|
|
82
83
|
* @extends {Layer<VectorSourceType, RendererType>}
|
|
84
|
+
* @template {import("../renderer/canvas/VectorLayer.js").default|import("../renderer/canvas/VectorTileLayer.js").default|import("../renderer/canvas/VectorImageLayer.js").default|import("../renderer/webgl/PointsLayer.js").default} RendererType
|
|
83
85
|
* @api
|
|
84
86
|
*/
|
|
85
87
|
class BaseVectorLayer extends Layer {
|
|
86
88
|
/**
|
|
87
|
-
* @param {Options<VectorSourceType>} [options] Options.
|
|
89
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
88
90
|
*/
|
|
89
91
|
constructor(options) {
|
|
90
92
|
options = options ? options : {};
|
|
@@ -147,6 +149,7 @@ class BaseVectorLayer extends Layer {
|
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* @return {string} Declutter group.
|
|
152
|
+
* @override
|
|
150
153
|
*/
|
|
151
154
|
getDeclutter() {
|
|
152
155
|
return this.declutter_;
|
|
@@ -165,6 +168,7 @@ class BaseVectorLayer extends Layer {
|
|
|
165
168
|
* @param {import("../pixel.js").Pixel} pixel Pixel.
|
|
166
169
|
* @return {Promise<Array<import("../Feature").FeatureLike>>} Promise that resolves with an array of features.
|
|
167
170
|
* @api
|
|
171
|
+
* @override
|
|
168
172
|
*/
|
|
169
173
|
getFeatures(pixel) {
|
|
170
174
|
return super.getFeatures(pixel);
|
|
@@ -226,6 +230,7 @@ class BaseVectorLayer extends Layer {
|
|
|
226
230
|
* Render declutter items for this layer
|
|
227
231
|
* @param {import("../Map.js").FrameState} frameState Frame state.
|
|
228
232
|
* @param {import("../layer/Layer.js").State} layerState Layer state.
|
|
233
|
+
* @override
|
|
229
234
|
*/
|
|
230
235
|
renderDeclutter(frameState, layerState) {
|
|
231
236
|
const declutterGroup = this.getDeclutter();
|
package/layer/Graticule.d.ts
CHANGED
|
@@ -274,18 +274,19 @@ export type Options = {
|
|
|
274
274
|
* Note that the view projection must define both extent and worldExtent.
|
|
275
275
|
*
|
|
276
276
|
* @fires import("../render/Event.js").RenderEvent
|
|
277
|
-
* @extends {VectorLayer<Feature
|
|
277
|
+
* @extends {VectorLayer<VectorSource<Feature>>}
|
|
278
278
|
* @api
|
|
279
279
|
*/
|
|
280
|
-
declare class Graticule extends VectorLayer<Feature<import("../geom.js").Geometry>> {
|
|
280
|
+
declare class Graticule extends VectorLayer<VectorSource<Feature<import("../geom.js").Geometry>>, Feature<import("../geom.js").Geometry>> {
|
|
281
281
|
/**
|
|
282
282
|
* @param {Options} [options] Options.
|
|
283
283
|
*/
|
|
284
284
|
constructor(options?: Options | undefined);
|
|
285
285
|
/**
|
|
286
286
|
* @type {import("../proj/Projection.js").default}
|
|
287
|
+
* @private
|
|
287
288
|
*/
|
|
288
|
-
projection_
|
|
289
|
+
private projection_;
|
|
289
290
|
/**
|
|
290
291
|
* @type {number}
|
|
291
292
|
* @private
|
|
@@ -587,6 +588,7 @@ import Point from '../geom/Point.js';
|
|
|
587
588
|
import Stroke from '../style/Stroke.js';
|
|
588
589
|
import Text from '../style/Text.js';
|
|
589
590
|
import Feature from '../Feature.js';
|
|
591
|
+
import VectorSource from '../source/Vector.js';
|
|
590
592
|
import VectorLayer from './Vector.js';
|
|
591
593
|
import LineString from '../geom/LineString.js';
|
|
592
594
|
//# sourceMappingURL=Graticule.d.ts.map
|
package/layer/Graticule.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Graticule.d.ts","sourceRoot":"","sources":["Graticule.js"],"names":[],"mappings":";;;;;UA2Ec,KAAK;;;;UACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuCG,MAAM,KAAE,MAAM;;;;;;;gCAId,MAAM,KAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9CrC;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"Graticule.d.ts","sourceRoot":"","sources":["Graticule.js"],"names":[],"mappings":";;;;;UA2Ec,KAAK;;;;UACL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAuCG,MAAM,KAAE,MAAM;;;;;;;gCAId,MAAM,KAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9CrC;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAuUC;IA9SC;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,gBAAuB;IAEvB;;;OAGG;IACH,gBAAuB;IAEvB;;;OAGG;IACH,gBAAwB;IAExB;;;OAGG;IACH,gBAAwB;IAExB;;;OAGG;IACH,cAAqB;IAErB;;;OAGG;IACH,cAAqB;IAErB;;;OAGG;IACH,cAAsB;IAEtB;;;OAGG;IACH,cAAsB;IAEtB;;;OAGG;IACH,oBAC6D;IAE7D;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,mBAAoB;IAEpB;;;OAGG;IACH,mBAAoB;IAEpB;;;OAGG;IACH,qBAG0B;IAE1B;;;OAGG;IACH,6BAAqC;IAErC;;;OAGG;IACH,2BAAmC;IAEnC;;;OAGG;IACH,gCAAmC;IAEnC;;;OAGG;IACH,oBAAuB;IAEvB;;;OAGG;IACH,qBAAwB;IAExB;;;OAGG;IACH,iBAAoB;IAEpB;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,yBAA4B;IAG1B;;;OAGG;IACH,2BAG+B;IAE/B;;;OAGG;IACH,2BAG+B;IAE/B;;;;;OAKG;IACH,0BACsE;IAEtE;;;;;OAKG;IACH,0BACsE;IAEtE;;;OAGG;IACH,2BAeE;IAEF;;;;OAIG;IACH,uBAIC;IAED;;;OAGG;IACH,2BAeE;IAEF;;;;OAIG;IACH,uBAIC;IAQH;;;OAGG;IACH,mBACiE;IAcjE;;;;OAIG;IACH,qBAAsB;IAEtB;;;OAGG;IACH,mBAEE;IAEF;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA+B;IAKjC;;;;;;OAMG;IACH,yBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,KAAK,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,CAoB/C;IAED;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,QA4EjD;IAED;;;;;;;;;OASG;IACH,qBAuBC;IAED;;;;;;;;;OASG;IACH,qBAuBC;IAED;;;OAGG;IACH,oBAiFC;IAED;;;;;;OAMG;IACH,yBAsNC;IAED;;;;OAIG;IACH,qBA0BC;IAED;;;;;;;;OAQG;IACH,qBAiBC;IAED;;;;;;OAMG;IACH,0BAwBC;IAED;;;;OAIG;IACH,gBAHY,KAAK,CAAC,UAAU,CAAC,CAK5B;IAED;;;;;;;;OAQG;IACH,qBAgBC;IAED;;;;;;OAMG;IACH,0BAwBC;IAED;;;;OAIG;IACH,gBAHY,KAAK,CAAC,UAAU,CAAC,CAK5B;IAED;;;OAGG;IACH,8BA0EC;CACF;kBAhuCiB,kBAAkB;mBACjB,oBAAoB;iBAEtB,kBAAkB;oBANf,eAAe;yBAQV,qBAAqB;wBADtB,aAAa;uBALd,uBAAuB"}
|
package/layer/Graticule.js
CHANGED
|
@@ -178,7 +178,7 @@ const INTERVALS = [
|
|
|
178
178
|
* Note that the view projection must define both extent and worldExtent.
|
|
179
179
|
*
|
|
180
180
|
* @fires import("../render/Event.js").RenderEvent
|
|
181
|
-
* @extends {VectorLayer<Feature
|
|
181
|
+
* @extends {VectorLayer<VectorSource<Feature>>}
|
|
182
182
|
* @api
|
|
183
183
|
*/
|
|
184
184
|
class Graticule extends VectorLayer {
|
|
@@ -212,6 +212,7 @@ class Graticule extends VectorLayer {
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* @type {import("../proj/Projection.js").default}
|
|
215
|
+
* @private
|
|
215
216
|
*/
|
|
216
217
|
this.projection_ = null;
|
|
217
218
|
|
package/layer/Group.d.ts
CHANGED
|
@@ -21,11 +21,11 @@ export class GroupEvent extends Event {
|
|
|
21
21
|
layer: BaseLayer;
|
|
22
22
|
}
|
|
23
23
|
export default LayerGroup;
|
|
24
|
-
export type GroupEventType =
|
|
24
|
+
export type GroupEventType = "addlayer" | "removelayer";
|
|
25
25
|
/**
|
|
26
26
|
* *
|
|
27
27
|
*/
|
|
28
|
-
export type GroupOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("./Base").BaseLayerObjectEventTypes |
|
|
28
|
+
export type GroupOnSignature<Return> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("./Base").BaseLayerObjectEventTypes | "change:layers", import("../Object").ObjectEvent, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("./Base").BaseLayerObjectEventTypes | "change:layers", Return>;
|
|
29
29
|
export type Options = {
|
|
30
30
|
/**
|
|
31
31
|
* Opacity (0, 1).
|
package/layer/Group.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["Group.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;;GAKG;AACH;IACE;;;OAGG;IACH,kBAHW,cAAc,SACd,SAAS,EAWnB;IANC;;;;OAIG;IACH,OAHU,SAAS,CAGD;CAErB;;6BAxBY,UAAU,GAAC,aAAa;;;;
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["Group.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;;GAKG;AACH;IACE;;;OAGG;IACH,kBAHW,cAAc,SACd,SAAS,EAWnB;IANC;;;;OAIG;IACH,OAHU,SAAS,CAGD;CAErB;;6BAxBY,UAAU,GAAC,aAAa;;;;6BA2BxB,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,eAAqB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC/D,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,QAAQ,EAAE,yBAAyB,GAAC,eAAe,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAzCrI,oBAAoB;sBAHhB,WAAW;AA6EjC;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CAoDC;IA3CC;;OAEG;IACH,IAFU,gBAAgB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAElD;IAEP;;OAEG;IACH,MAFU,gBAAgB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEhD;IAET;;OAEG;IACH,IAFU,gBAAgB,CAAC,IAAI,CAAC,CAEzB;IAEP;;;OAGG;IACH,4BAA6B;IAE7B;;;OAGG;IACH,sBAAuB;IAoBzB;;OAEG;IACH,2BAEC;IAED;;OAEG;IACH,6BA2BC;IAED;;OAEG;IACH,+BAFW,SAAS,QAqBnB;IAED;;OAEG;IACH,4BAFW,UAAU,QAIpB;IAED;;OAEG;IACH,+BAFW,UAAU,QAIpB;IAED;;;OAGG;IACH,yBAKC;IAED;;;OAGG;IACH,4BAOC;IAED;;;;;;;OAOG;IACH,aALa,UAAU,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CASnD;IAED;;;;;;;OAOG;IACH,kBALY,UAAU,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,QAelD;CA6EF;uBAhWsB,kBAAkB"}
|
package/layer/Group.js
CHANGED
|
@@ -282,6 +282,7 @@ class LayerGroup extends BaseLayer {
|
|
|
282
282
|
/**
|
|
283
283
|
* @param {Array<import("./Layer.js").default>} [array] Array of layers (to be modified in place).
|
|
284
284
|
* @return {Array<import("./Layer.js").default>} Array of layers.
|
|
285
|
+
* @override
|
|
285
286
|
*/
|
|
286
287
|
getLayersArray(array) {
|
|
287
288
|
array = array !== undefined ? array : [];
|
|
@@ -299,6 +300,7 @@ class LayerGroup extends BaseLayer {
|
|
|
299
300
|
* @param {Array<import("./Layer.js").State>} [dest] Optional list
|
|
300
301
|
* of layer states (to be modified in place).
|
|
301
302
|
* @return {Array<import("./Layer.js").State>} List of layer states.
|
|
303
|
+
* @override
|
|
302
304
|
*/
|
|
303
305
|
getLayerStatesArray(dest) {
|
|
304
306
|
const states = dest !== undefined ? dest : [];
|
|
@@ -347,6 +349,7 @@ class LayerGroup extends BaseLayer {
|
|
|
347
349
|
|
|
348
350
|
/**
|
|
349
351
|
* @return {import("../source/Source.js").State} Source state.
|
|
352
|
+
* @override
|
|
350
353
|
*/
|
|
351
354
|
getSourceState() {
|
|
352
355
|
return 'ready';
|
package/layer/Heatmap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default Heatmap;
|
|
2
|
-
export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
2
|
+
export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>, VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<FeatureType>> = {
|
|
3
3
|
/**
|
|
4
4
|
* A CSS class name to set to the layer element.
|
|
5
5
|
*/
|
|
@@ -66,7 +66,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
66
66
|
/**
|
|
67
67
|
* Point source.
|
|
68
68
|
*/
|
|
69
|
-
source?:
|
|
69
|
+
source?: VectorSourceType | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
72
72
|
*/
|
|
@@ -82,21 +82,25 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
82
82
|
* options means that `title` is observable, and has get/set accessors.
|
|
83
83
|
*
|
|
84
84
|
* @fires import("../render/Event.js").RenderEvent
|
|
85
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
86
|
-
* @
|
|
85
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
86
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
87
|
+
* @extends {BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer>}
|
|
87
88
|
* @api
|
|
88
89
|
*/
|
|
89
|
-
declare class Heatmap<FeatureType extends import("../Feature.js").FeatureLike
|
|
90
|
+
declare class Heatmap<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>, VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<FeatureType>> extends BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer> {
|
|
90
91
|
/**
|
|
91
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
92
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
92
93
|
*/
|
|
93
|
-
constructor(options?: Options<FeatureType> | undefined);
|
|
94
|
+
constructor(options?: Options<FeatureType, VectorSourceType> | undefined);
|
|
94
95
|
/**
|
|
95
96
|
* @private
|
|
96
97
|
* @type {HTMLCanvasElement}
|
|
97
98
|
*/
|
|
98
99
|
private gradient_;
|
|
99
|
-
|
|
100
|
+
/**
|
|
101
|
+
* @private
|
|
102
|
+
*/
|
|
103
|
+
private weightFunction_;
|
|
100
104
|
/**
|
|
101
105
|
* Return the blur size in pixels.
|
|
102
106
|
* @return {number} Blur size in pixels.
|
|
@@ -143,8 +147,10 @@ declare class Heatmap<FeatureType extends import("../Feature.js").FeatureLike> e
|
|
|
143
147
|
* @observable
|
|
144
148
|
*/
|
|
145
149
|
setRadius(radius: number): void;
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
/**
|
|
151
|
+
* @override
|
|
152
|
+
*/
|
|
153
|
+
override renderDeclutter(): void;
|
|
148
154
|
}
|
|
149
155
|
import WebGLPointsLayerRenderer from '../renderer/webgl/PointsLayer.js';
|
|
150
156
|
import BaseVector from './BaseVector.js';
|
package/layer/Heatmap.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["Heatmap.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["Heatmap.js"],"names":[],"mappings":";oBAUoD,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY,mEACiB,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAuBnC,OAAO,eAAe,EAAE,OAAO,KAAE,MAAM;;;;;;;;;;;;AAuBrE;;;;;;;;;;;;GAYG;AACH,sBALoD,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY,mEACiB,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE;IAK/D;;OAEG;IACH,0EA0CC;IA/BC;;;OAGG;IACH,kBAAqB;IAYrB;;OAEG;IACH,wBAOY;IAOd;;;;;OAKG;IACH,WAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,eAJY,KAAK,CAAC,MAAM,CAAC,CAMxB;IAED;;;;;OAKG;IACH,aAJY,MAAM,CAMjB;IAED;;OAEG;IACH,+BAEC;IAED;;;;;OAKG;IACH,cAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,oBAJW,KAAK,CAAC,MAAM,CAAC,QAMvB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,QAMhB;IAkED;;OAEG;IACH,iCAAoB;CACrB;qCAzPoC,kCAAkC;uBADhD,iBAAiB"}
|
package/layer/Heatmap.js
CHANGED
|
@@ -8,7 +8,8 @@ import {clamp} from '../math.js';
|
|
|
8
8
|
import {createCanvasContext2D} from '../dom.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
11
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
12
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
12
13
|
* @typedef {Object} Options
|
|
13
14
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
14
15
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -34,7 +35,7 @@ import {createCanvasContext2D} from '../dom.js';
|
|
|
34
35
|
* @property {string|function(import("../Feature.js").default):number} [weight='weight'] The feature
|
|
35
36
|
* attribute to use for the weight or a function that returns a weight from a feature. Weight values
|
|
36
37
|
* should range from 0 to 1 (and values outside will be clamped to that range).
|
|
37
|
-
* @property {
|
|
38
|
+
* @property {VectorSourceType} [source] Point source.
|
|
38
39
|
* @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
|
|
39
40
|
*/
|
|
40
41
|
|
|
@@ -62,13 +63,14 @@ const DEFAULT_GRADIENT = ['#00f', '#0ff', '#0f0', '#ff0', '#f00'];
|
|
|
62
63
|
* options means that `title` is observable, and has get/set accessors.
|
|
63
64
|
*
|
|
64
65
|
* @fires import("../render/Event.js").RenderEvent
|
|
65
|
-
* @template {import("../Feature.js").FeatureLike} FeatureType
|
|
66
|
-
* @
|
|
66
|
+
* @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
|
|
67
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<FeatureType>]
|
|
68
|
+
* @extends {BaseVector<FeatureType, VectorSourceType, WebGLPointsLayerRenderer>}
|
|
67
69
|
* @api
|
|
68
70
|
*/
|
|
69
71
|
class Heatmap extends BaseVector {
|
|
70
72
|
/**
|
|
71
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
73
|
+
* @param {Options<FeatureType, VectorSourceType>} [options] Options.
|
|
72
74
|
*/
|
|
73
75
|
constructor(options) {
|
|
74
76
|
options = options ? options : {};
|
|
@@ -96,13 +98,18 @@ class Heatmap extends BaseVector {
|
|
|
96
98
|
this.setRadius(options.radius !== undefined ? options.radius : 8);
|
|
97
99
|
|
|
98
100
|
const weight = options.weight ? options.weight : 'weight';
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
this.weightFunction_ =
|
|
106
|
+
typeof weight === 'string'
|
|
107
|
+
? /**
|
|
108
|
+
* @param {import('../Feature.js').default} feature Feature
|
|
109
|
+
* @return {any} weight
|
|
110
|
+
*/
|
|
111
|
+
(feature) => feature.get(weight)
|
|
112
|
+
: weight;
|
|
106
113
|
|
|
107
114
|
// For performance reasons, don't sort the features before rendering.
|
|
108
115
|
// The render order is not relevant for a heatmap representation.
|
|
@@ -176,6 +183,9 @@ class Heatmap extends BaseVector {
|
|
|
176
183
|
this.set(Property.RADIUS, radius);
|
|
177
184
|
}
|
|
178
185
|
|
|
186
|
+
/**
|
|
187
|
+
* @override
|
|
188
|
+
*/
|
|
179
189
|
createRenderer() {
|
|
180
190
|
const builder = new ShaderBuilder()
|
|
181
191
|
.addAttribute('float a_prop_weight')
|
|
@@ -237,6 +247,9 @@ class Heatmap extends BaseVector {
|
|
|
237
247
|
});
|
|
238
248
|
}
|
|
239
249
|
|
|
250
|
+
/**
|
|
251
|
+
* @override
|
|
252
|
+
*/
|
|
240
253
|
renderDeclutter() {}
|
|
241
254
|
}
|
|
242
255
|
|
package/layer/Image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH;
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH,yBAJoD,eAAe,SAAtD,OAAQ,oBAAoB,EAAE,OAAQ;IAKjD;;OAEG;IACH,qFAEC;CA4BF;qCAhDoC,kCAAkC;2BAD5C,gBAAgB"}
|
package/layer/Image.js
CHANGED
|
@@ -24,6 +24,9 @@ class ImageLayer extends BaseImageLayer {
|
|
|
24
24
|
super(options);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @override
|
|
29
|
+
*/
|
|
27
30
|
createRenderer() {
|
|
28
31
|
return new CanvasImageLayerRenderer(this);
|
|
29
32
|
}
|
|
@@ -42,6 +45,7 @@ class ImageLayer extends BaseImageLayer {
|
|
|
42
45
|
* @param {import("../pixel").Pixel} pixel Pixel.
|
|
43
46
|
* @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.
|
|
44
47
|
* @api
|
|
48
|
+
* @override
|
|
45
49
|
*/
|
|
46
50
|
getData(pixel) {
|
|
47
51
|
return super.getData(pixel);
|
package/layer/Layer.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
export function inView(layerState: State, viewState: import("../View.js").State): boolean;
|
|
9
9
|
export default Layer;
|
|
10
10
|
export type RenderFunction = (arg0: import("../Map.js").FrameState) => HTMLElement;
|
|
11
|
-
export type LayerEventType =
|
|
11
|
+
export type LayerEventType = "sourceready" | "change:source";
|
|
12
12
|
/**
|
|
13
13
|
* *
|
|
14
14
|
*/
|
|
@@ -104,7 +104,7 @@ export type State = {
|
|
|
104
104
|
/**
|
|
105
105
|
* ZIndex.
|
|
106
106
|
*/
|
|
107
|
-
zIndex: number
|
|
107
|
+
zIndex: number;
|
|
108
108
|
/**
|
|
109
109
|
* Maximum resolution.
|
|
110
110
|
*/
|
|
@@ -172,7 +172,7 @@ export type State = {
|
|
|
172
172
|
* @property {boolean} visible Visible.
|
|
173
173
|
* @property {boolean} managed Managed.
|
|
174
174
|
* @property {import("../extent.js").Extent} [extent] Extent.
|
|
175
|
-
* @property {number
|
|
175
|
+
* @property {number} zIndex ZIndex.
|
|
176
176
|
* @property {number} maxResolution Maximum resolution.
|
|
177
177
|
* @property {number} minResolution Minimum resolution.
|
|
178
178
|
* @property {number} minZoom Minimum zoom.
|
|
@@ -323,7 +323,7 @@ declare class Layer<SourceType extends import("../source/Source.js").default = i
|
|
|
323
323
|
* When the renderer follows a layout -> render approach, do the final rendering here.
|
|
324
324
|
* @param {import('../Map.js').FrameState} frameState Frame state
|
|
325
325
|
*/
|
|
326
|
-
renderDeferred(frameState: import(
|
|
326
|
+
renderDeferred(frameState: import("../Map.js").FrameState): void;
|
|
327
327
|
/**
|
|
328
328
|
* For use inside the library only.
|
|
329
329
|
* @param {import("../Map.js").default|null} map Map.
|
package/layer/Layer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["Layer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["Layer.js"],"names":[],"mappings":"AA0gBA;;;;;;GAMG;AACH,mCAJW,KAAK,aACL,OAAO,YAAY,EAAE,KAAK,GACzB,OAAO,CAelB;;6BAjhBY,CAAS,IAA8B,EAA9B,OAAO,WAAW,EAAE,UAAU,KAAE,WAAW;6BAIpD,aAAa,GAAC,eAAe;;;;6BAI7B,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,cAAoB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC9D,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,GAAC,cAAc,GAC5I,OAAa,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,CAAC;oBAIb,UAAU,SAAnD,OAAQ,qBAAqB,EAAE,OAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA8BtC,OAAO,YAAY,EAAE,OAAO;;;;aAC5B,MAAM;;;;aACN,OAAO;;;;aACP,OAAO;;;;;;;;YAEP,MAAM;;;;mBACN,MAAM;;;;mBACN,MAAM;;;;aACN,MAAM;;;;aACN,MAAM;;AA1DpB;;GAEG;AAEH;;GAEG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,oBAJsD,UAAU,SAAnD,OAAQ,qBAAqB,EAAE,OAAQ,0CACG,YAAY,SAAtD,2CAAwC;IAInD;;OAEG;IACH,qBAFW,OAAO,CAAC,UAAU,CAAC,EA6E7B;IArEC;;OAEG;IACH,IAFU,gBAAgB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAElD;IAEP;;OAEG;IACH,MAFU,gBAAgB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEhD;IAET;;OAEG;IACH,IAFU,gBAAgB,CAAC,IAAI,CAAC,CAEzB;IAEP;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,qBAAyB;IAEzB;;;OAGG;IACH,oBAFU,OAAO,CAEI;IAuMvB;;;;;;;OAOG;IACH,mBALY,OAAO,WAAW,EAAE,UAAU,OAAA,UAC/B,WAAW,GAEV,WAAW,GAAC,IAAI,CAU3B;IA3KD;;;;;OAKG;IACH,aAJY,UAAU,GAAC,IAAI,CAM1B;IAED;;OAEG;IACH,mBAFY,UAAU,GAAC,IAAI,CAI1B;IAWD;;OAEG;IACH,4BAOC;IAED;;OAEG;IACH,oCAsBC;IAED;;;;OAIG;IACH,mBAJW,OAAO,UAAU,EAAE,KAAK,GACvB,OAAO,CAAC,KAAK,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAAC,CAQ3D;IAED;;;OAGG;IACH,eAHW,OAAO,UAAU,EAAE,KAAK,GACvB,iBAAiB,GAAC,UAAU,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAOlE;IAED;;;;;;;;OAQG;IACH,qFAHY,OAAO,CAmClB;IAED;;;;;;OAMG;IACH,2FAHY,KAAK,CAAC,MAAM,CAAC,CAkBxB;IAoBD;;OAEG;IACH,iBAEC;IAED,iCAAiC;IACjC,gBADa,MAAM,CAGlB;IAED;;;OAGG;IACH,4BAHW,OAAO,WAAW,EAAE,UAAU,cAC9B,OAAO,mBAAmB,EAAE,KAAK,QAEF;IAE1C;;;OAGG;IACH,2BAFW,OAAO,WAAW,EAAE,UAAU,QAQxC;IAED;;;OAGG;IACH,oBAFW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAO1C;IAED;;;OAGG;IACH,kBAFY,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,CAI3C;IAED;;;;;;;;;;OAUG;IACH,YAHW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAoC1C;IAED;;;;;OAKG;IACH,kBAJW,UAAU,GAAC,IAAI,QAMzB;IAED;;;OAGG;IACH,eAFY,YAAY,GAAC,IAAI,CAO5B;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;;;OAIG;IACH,4BAHY,YAAY,CAKvB;CAeF;sBArgBqB,WAAW;iBAIhB,YAAY"}
|
package/layer/Layer.js
CHANGED
|
@@ -64,7 +64,7 @@ import {listen, unlistenByKey} from '../events.js';
|
|
|
64
64
|
* @property {boolean} visible Visible.
|
|
65
65
|
* @property {boolean} managed Managed.
|
|
66
66
|
* @property {import("../extent.js").Extent} [extent] Extent.
|
|
67
|
-
* @property {number
|
|
67
|
+
* @property {number} zIndex ZIndex.
|
|
68
68
|
* @property {number} maxResolution Maximum resolution.
|
|
69
69
|
* @property {number} minResolution Minimum resolution.
|
|
70
70
|
* @property {number} minZoom Minimum zoom.
|
|
@@ -181,6 +181,7 @@ class Layer extends BaseLayer {
|
|
|
181
181
|
/**
|
|
182
182
|
* @param {Array<import("./Layer.js").default>} [array] Array of layers (to be modified in place).
|
|
183
183
|
* @return {Array<import("./Layer.js").default>} Array of layers.
|
|
184
|
+
* @override
|
|
184
185
|
*/
|
|
185
186
|
getLayersArray(array) {
|
|
186
187
|
array = array ? array : [];
|
|
@@ -191,6 +192,7 @@ class Layer extends BaseLayer {
|
|
|
191
192
|
/**
|
|
192
193
|
* @param {Array<import("./Layer.js").State>} [states] Optional list of layer states (to be modified in place).
|
|
193
194
|
* @return {Array<import("./Layer.js").State>} List of layer states.
|
|
195
|
+
* @override
|
|
194
196
|
*/
|
|
195
197
|
getLayerStatesArray(states) {
|
|
196
198
|
states = states ? states : [];
|
|
@@ -217,6 +219,7 @@ class Layer extends BaseLayer {
|
|
|
217
219
|
|
|
218
220
|
/**
|
|
219
221
|
* @return {import("../source/Source.js").State} Source state.
|
|
222
|
+
* @override
|
|
220
223
|
*/
|
|
221
224
|
getSourceState() {
|
|
222
225
|
const source = this.getSource();
|
|
@@ -339,11 +342,7 @@ class Layer extends BaseLayer {
|
|
|
339
342
|
if (!this.isVisible(view)) {
|
|
340
343
|
return [];
|
|
341
344
|
}
|
|
342
|
-
|
|
343
|
-
const source = this.getSource();
|
|
344
|
-
if (source) {
|
|
345
|
-
getAttributions = source.getAttributions();
|
|
346
|
-
}
|
|
345
|
+
const getAttributions = this.getSource()?.getAttributions();
|
|
347
346
|
if (!getAttributions) {
|
|
348
347
|
return [];
|
|
349
348
|
}
|
|
@@ -450,7 +449,7 @@ class Layer extends BaseLayer {
|
|
|
450
449
|
this.mapPrecomposeKey_ = listen(
|
|
451
450
|
map,
|
|
452
451
|
RenderEventType.PRECOMPOSE,
|
|
453
|
-
|
|
452
|
+
(evt) => {
|
|
454
453
|
const renderEvent =
|
|
455
454
|
/** @type {import("../render/Event.js").default} */ (evt);
|
|
456
455
|
const layerStatesArray = renderEvent.frameState.layerStatesArray;
|
|
@@ -463,7 +462,6 @@ class Layer extends BaseLayer {
|
|
|
463
462
|
);
|
|
464
463
|
layerStatesArray.push(layerState);
|
|
465
464
|
},
|
|
466
|
-
this,
|
|
467
465
|
);
|
|
468
466
|
this.mapRenderKey_ = listen(this, EventType.CHANGE, map.render, map);
|
|
469
467
|
this.changed();
|
|
@@ -509,6 +507,7 @@ class Layer extends BaseLayer {
|
|
|
509
507
|
|
|
510
508
|
/**
|
|
511
509
|
* Clean up.
|
|
510
|
+
* @override
|
|
512
511
|
*/
|
|
513
512
|
disposeInternal() {
|
|
514
513
|
if (this.renderer_) {
|
package/layer/Tile.d.ts
CHANGED
|
@@ -7,16 +7,19 @@ export default TileLayer;
|
|
|
7
7
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
8
8
|
* options means that `title` is observable, and has get/set accessors.
|
|
9
9
|
*
|
|
10
|
-
* @template {import("../source/Tile.js").default} TileSourceType
|
|
10
|
+
* @template {import("../source/Tile.js").default} [TileSourceType=import("../source/Tile.js").default]
|
|
11
11
|
* @extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer>
|
|
12
12
|
* @api
|
|
13
13
|
*/
|
|
14
|
-
declare class TileLayer<TileSourceType extends import("../source/Tile.js").default
|
|
14
|
+
declare class TileLayer<TileSourceType extends import("../source/Tile.js").default = import("../source/Tile.js").default<import("../Tile.js").default>> extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer<TileLayer<import("../source/Tile.js").default<import("../Tile.js").default>> | import("./VectorTile.js").default<import("../source.js").VectorTile<any>, any>>> {
|
|
15
15
|
/**
|
|
16
16
|
* @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
|
|
17
17
|
*/
|
|
18
18
|
constructor(options?: import("./BaseTile.js").Options<TileSourceType> | undefined);
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* @override
|
|
21
|
+
*/
|
|
22
|
+
override createRenderer(): CanvasTileLayerRenderer<this>;
|
|
20
23
|
}
|
|
21
24
|
import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
|
22
25
|
import BaseTileLayer from './BaseTile.js';
|
package/layer/Tile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH,wBAJoD,cAAc,SAArD,OAAQ,mBAAmB,EAAE,OAAQ;IAKhD;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yDAIC;CACF;oCA9BmC,iCAAiC;0BAD3C,eAAe"}
|
package/layer/Tile.js
CHANGED
|
@@ -12,7 +12,7 @@ import CanvasTileLayerRenderer from '../renderer/canvas/TileLayer.js';
|
|
|
12
12
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
13
13
|
* options means that `title` is observable, and has get/set accessors.
|
|
14
14
|
*
|
|
15
|
-
* @template {import("../source/Tile.js").default} TileSourceType
|
|
15
|
+
* @template {import("../source/Tile.js").default} [TileSourceType=import("../source/Tile.js").default]
|
|
16
16
|
* @extends BaseTileLayer<TileSourceType, CanvasTileLayerRenderer>
|
|
17
17
|
* @api
|
|
18
18
|
*/
|
|
@@ -24,8 +24,13 @@ class TileLayer extends BaseTileLayer {
|
|
|
24
24
|
super(options);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* @override
|
|
29
|
+
*/
|
|
27
30
|
createRenderer() {
|
|
28
|
-
return new CanvasTileLayerRenderer(this
|
|
31
|
+
return new CanvasTileLayerRenderer(this, {
|
|
32
|
+
cacheSize: this.getCacheSize(),
|
|
33
|
+
});
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
package/layer/Vector.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export default VectorLayer;
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* *
|
|
4
|
+
*/
|
|
5
|
+
export type ExtractedFeatureType<T> = T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
|
|
6
|
+
export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> = {
|
|
3
7
|
/**
|
|
4
8
|
* A CSS class name to set to the layer element.
|
|
5
9
|
*/
|
|
@@ -59,7 +63,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
59
63
|
/**
|
|
60
64
|
* Source.
|
|
61
65
|
*/
|
|
62
|
-
source?:
|
|
66
|
+
source?: VectorSourceType | undefined;
|
|
63
67
|
/**
|
|
64
68
|
* Sets the layer as overlay on a map. The map will not manage
|
|
65
69
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
@@ -105,8 +109,13 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
105
109
|
[x: string]: any;
|
|
106
110
|
} | undefined;
|
|
107
111
|
};
|
|
112
|
+
/***
|
|
113
|
+
* @template T
|
|
114
|
+
* @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
|
|
115
|
+
*/
|
|
108
116
|
/**
|
|
109
|
-
* @template {import(
|
|
117
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
118
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
110
119
|
* @typedef {Object} Options
|
|
111
120
|
* @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
|
|
112
121
|
* @property {number} [opacity=1] Opacity (0, 1).
|
|
@@ -131,7 +140,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
131
140
|
* @property {number} [renderBuffer=100] The buffer in pixels around the viewport extent used by the
|
|
132
141
|
* renderer when getting features from the vector source for the rendering or hit-detection.
|
|
133
142
|
* Recommended value: the size of the largest symbol, line width or label.
|
|
134
|
-
* @property {
|
|
143
|
+
* @property {VectorSourceType} [source] Source.
|
|
135
144
|
* @property {import("../Map.js").default} [map] Sets the layer as overlay on a map. The map will not manage
|
|
136
145
|
* this layer in its layers collection, and the layer will be rendered on top. This is useful for
|
|
137
146
|
* temporary layers. The standard way to add a layer to a map and have it managed by the map is to
|
|
@@ -165,15 +174,16 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
|
|
|
165
174
|
* property on the layer object; for example, setting `title: 'My Title'` in the
|
|
166
175
|
* options means that `title` is observable, and has get/set accessors.
|
|
167
176
|
*
|
|
168
|
-
* @template {import(
|
|
169
|
-
* @
|
|
177
|
+
* @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
|
|
178
|
+
* @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
|
|
179
|
+
* @extends {BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer>}
|
|
170
180
|
* @api
|
|
171
181
|
*/
|
|
172
|
-
declare class VectorLayer<
|
|
182
|
+
declare class VectorLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> extends BaseVectorLayer<FeatureType, VectorSourceType, CanvasVectorLayerRenderer> {
|
|
173
183
|
/**
|
|
174
|
-
* @param {Options<FeatureType>} [options] Options.
|
|
184
|
+
* @param {Options<VectorSourceType, FeatureType>} [options] Options.
|
|
175
185
|
*/
|
|
176
|
-
constructor(options?: Options<FeatureType> | undefined);
|
|
186
|
+
constructor(options?: Options<VectorSourceType, FeatureType> | undefined);
|
|
177
187
|
}
|
|
178
188
|
import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
|
|
179
189
|
import BaseVectorLayer from './BaseVector.js';
|
package/layer/Vector.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":";;;;iCAOa,CAAC,IACD,CAAC,SAAS,OAAO,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAA6C,SAAnC,OAAO,eAAe,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK;oBAI1D,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAPlD;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,0BALmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,0EAEC;CAQF;sCAxFqC,mCAAmC;4BAD7C,iBAAiB"}
|