ol 9.2.5-sh.2 → 10.0.1-dev.1722076459273
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 +8 -13
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +19 -24
- package/VectorTile.d.ts +6 -6
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +5 -4
- 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 +6 -6
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +3 -3
- package/format/EsriJSON.d.ts +9 -5
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +7 -0
- package/format/Feature.d.ts +12 -12
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +7 -5
- 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 +17 -14
- 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 -11
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +17 -11
- 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 +15 -14
- 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 -5
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +8 -0
- package/format/TopoJSON.d.ts +1 -1
- 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 -6
- 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 +8 -7
- 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 +13 -10
- 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 -14
- 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.map +1 -1
- package/layer/BaseVector.js +3 -0
- package/layer/Graticule.d.ts +2 -1
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +1 -0
- 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 +8 -3
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +18 -7
- 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 +5 -2
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +6 -1
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +3 -0
- package/layer/VectorImage.d.ts +1 -1
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +3 -0
- package/layer/VectorTile.d.ts +32 -7
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +38 -6
- 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 +105 -41
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +545 -329
- package/renderer/canvas/VectorImageLayer.d.ts +6 -3
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +10 -3
- package/renderer/canvas/VectorLayer.d.ts +6 -3
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +8 -0
- package/renderer/canvas/VectorTileLayer.d.ts +16 -14
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +78 -53
- 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 +4 -4
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +2 -2
- 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 +10 -10
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +8 -5
- package/source/VectorEventType.d.ts +1 -1
- package/source/VectorTile.d.ts +8 -20
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +16 -85
- 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/source/mapguide.js
CHANGED
|
@@ -9,7 +9,7 @@ import {getRequestExtent} from './Image.js';
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef {Object} LoaderOptions
|
|
12
|
-
* @property {string}
|
|
12
|
+
* @property {string} url The mapagent url.
|
|
13
13
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
14
14
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
15
15
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
@@ -91,14 +91,17 @@ function getUrl(
|
|
|
91
91
|
*/
|
|
92
92
|
export function createLoader(options) {
|
|
93
93
|
const load = options.load || decode;
|
|
94
|
+
const useOverlay = options.useOverlay ?? false;
|
|
95
|
+
const metersPerUnit = options.metersPerUnit || 1;
|
|
96
|
+
const displayDpi = options.displayDpi || 96;
|
|
97
|
+
const ratio = options.ratio ?? 1;
|
|
98
|
+
const crossOrigin = options.crossOrigin ?? null;
|
|
94
99
|
|
|
95
100
|
/** @type {import('../Image.js').ImageObjectPromiseLoader} */
|
|
96
101
|
return function (extent, resolution, pixelRatio) {
|
|
97
102
|
const image = new Image();
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
extent = getRequestExtent(extent, resolution, pixelRatio, options.ratio);
|
|
103
|
+
image.crossOrigin = crossOrigin;
|
|
104
|
+
extent = getRequestExtent(extent, resolution, pixelRatio, ratio);
|
|
102
105
|
const width = getWidth(extent) / resolution;
|
|
103
106
|
const height = getHeight(extent) / resolution;
|
|
104
107
|
const size = [width * pixelRatio, height * pixelRatio];
|
|
@@ -107,9 +110,9 @@ export function createLoader(options) {
|
|
|
107
110
|
options.params,
|
|
108
111
|
extent,
|
|
109
112
|
size,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
useOverlay,
|
|
114
|
+
metersPerUnit,
|
|
115
|
+
displayDpi,
|
|
113
116
|
);
|
|
114
117
|
return load(image, src).then((image) => ({image, extent, pixelRatio}));
|
|
115
118
|
};
|
package/source/ogcTileUtil.d.ts
CHANGED
|
@@ -79,8 +79,8 @@ export type SourceInfo = {
|
|
|
79
79
|
*/
|
|
80
80
|
collections?: string[] | undefined;
|
|
81
81
|
};
|
|
82
|
-
export type TileType =
|
|
83
|
-
export type CornerOfOrigin =
|
|
82
|
+
export type TileType = "map" | "vector";
|
|
83
|
+
export type CornerOfOrigin = "topLeft" | "bottomLeft";
|
|
84
84
|
export type TileSet = {
|
|
85
85
|
/**
|
|
86
86
|
* Type of data represented in the tileset.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ogcTileUtil.d.ts","sourceRoot":"","sources":["ogcTileUtil.js"],"names":[],"mappings":"AAqFA;;;;;GAKG;AAEH;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,6DAJW,MAAM,eACN,
|
|
1
|
+
{"version":3,"file":"ogcTileUtil.d.ts","sourceRoot":"","sources":["ogcTileUtil.js"],"names":[],"mappings":"AAqFA;;;;;GAKG;AAEH;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,6DAJW,MAAM,eACN,KAAK,CAAC,MAAM,CAAC,GACZ,MAAM,CA6BjB;AAED;;;;;GAKG;AACH,6CALW,KAAK,CAAC,IAAI,CAAC,uEAGV,MAAM,CAiCjB;AAED;;;;;;GAMG;AACH,gDANW,KAAK,CAAC,IAAI,CAAC,mHAIV,MAAM,CAsDjB;AA6ND;;;GAGG;AACH,2CAHW,UAAU,GACT,OAAO,CAAC,WAAW,CAAC,CAM/B;;;;;iBAxXa,MAAM;;;;UACN,OAAO,yBAAyB,EAAE,OAAO;;;;iBACzC,OAAO,YAAY,EAAE,WAAW;;;;;;SAKhC,MAAM;;;;eACN,MAAM;;;;;;;;gBAEN,OAAO,uBAAuB,EAAE,OAAO;;;;;;;;;;uBAlFxC,KAAK,GAAG,QAAQ;6BAIhB,SAAS,GAAG,YAAY;;;;;cAKvB,QAAQ;;;;;;;;;;;;;;;;WAIR,KAAK,CAAC,IAAI,CAAC;;;;;;SAKX,MAAM;;;;UACN,MAAM;;;;UACN,MAAM;;;;;;gBAKN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;gBACN,MAAM;;;;;;QAKN,MAAM;;;;SACN,MAAM;;;;;;;;kBAEN,KAAK,CAAC,UAAU,CAAC;;;;;;QAKjB,MAAM;;;;cACN,MAAM;;;;mBACN,KAAK,CAAC,MAAM,CAAC;;;;;;;;iBAEb,MAAM;;;;kBACN,MAAM;;;;eACN,MAAM;;;;gBACN,MAAM"}
|
package/source/ogcTileUtil.js
CHANGED
|
@@ -255,13 +255,13 @@ function parseTileMatrixSet(
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
const orderedAxes = tileMatrixSet.orderedAxes;
|
|
258
|
-
const
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
258
|
+
const axisOrientation = orderedAxes
|
|
259
|
+
? orderedAxes
|
|
260
|
+
.slice(0, 2)
|
|
261
|
+
.map((s) => s.replace(/E|X|Lon/i, 'e').replace(/N|Y|Lat/i, 'n'))
|
|
262
|
+
.join('')
|
|
263
|
+
: projection.getAxisOrientation();
|
|
264
|
+
const backwards = !axisOrientation.startsWith('en');
|
|
265
265
|
|
|
266
266
|
const matrices = tileMatrixSet.tileMatrices;
|
|
267
267
|
|
package/source/static.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
4
4
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
5
5
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
6
|
-
* @property {import("../extent.js").Extent}
|
|
6
|
+
* @property {import("../extent.js").Extent} imageExtent Extent of the image in map coordinates.
|
|
7
7
|
* This is the [left, bottom, right, top] map coordinates of your image. When using this loader with an
|
|
8
8
|
* `ol/source/Image`, the same extent must be set as `extent` of the `ol/layer/Image`.
|
|
9
9
|
* @property {string} url Image URL.
|
|
@@ -30,7 +30,7 @@ export type LoaderOptions = {
|
|
|
30
30
|
* This is the [left, bottom, right, top] map coordinates of your image. When using this loader with an
|
|
31
31
|
* `ol/source/Image`, the same extent must be set as `extent` of the `ol/layer/Image`.
|
|
32
32
|
*/
|
|
33
|
-
imageExtent
|
|
33
|
+
imageExtent: import("../extent.js").Extent;
|
|
34
34
|
/**
|
|
35
35
|
* Image URL.
|
|
36
36
|
*/
|
|
@@ -40,6 +40,6 @@ export type LoaderOptions = {
|
|
|
40
40
|
* to perform loading of the image. Receives the created `HTMLImageElement` and the desired `src` as argument and
|
|
41
41
|
* returns a promise resolving to the loaded or decoded image. Default is {@link module :ol/Image.decode}.
|
|
42
42
|
*/
|
|
43
|
-
load?: ((arg0: HTMLImageElement, arg1: string) => Promise<import(
|
|
43
|
+
load?: ((arg0: HTMLImageElement, arg1: string) => Promise<import("../DataTile.js").ImageLike>) | undefined;
|
|
44
44
|
};
|
|
45
45
|
//# sourceMappingURL=static.d.ts.map
|
package/source/static.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["static.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;GAYG;AAEH;;;;;GAKG;AACH,sCAJW,aAAa,GACZ,OAAO,aAAa,EAAE,wBAAwB,CAmBzD
|
|
1
|
+
{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["static.js"],"names":[],"mappings":"AAOA;;;;;;;;;;;;GAYG;AAEH;;;;;GAKG;AACH,sCAJW,aAAa,GACZ,OAAO,aAAa,EAAE,wBAAwB,CAmBzD;;;;;;;;;;;;;iBA/Ba,OAAO,cAAc,EAAE,MAAM;;;;SAG7B,MAAM;;;;;;mBACG,gBAAgB,QAAE,MAAM,KAAG,OAAO,CAAC,OAAO,gBAAgB,EAAE,SAAS,CAAC"}
|
package/source/static.js
CHANGED
|
@@ -10,7 +10,7 @@ import {getHeight, getWidth} from '../extent.js';
|
|
|
10
10
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
11
11
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
12
12
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
13
|
-
* @property {import("../extent.js").Extent}
|
|
13
|
+
* @property {import("../extent.js").Extent} imageExtent Extent of the image in map coordinates.
|
|
14
14
|
* This is the [left, bottom, right, top] map coordinates of your image. When using this loader with an
|
|
15
15
|
* `ol/source/Image`, the same extent must be set as `extent` of the `ol/layer/Image`.
|
|
16
16
|
* @property {string} url Image URL.
|
|
@@ -28,17 +28,17 @@ import {getHeight, getWidth} from '../extent.js';
|
|
|
28
28
|
export function createLoader(options) {
|
|
29
29
|
const load = options.load || decode;
|
|
30
30
|
const extent = options.imageExtent;
|
|
31
|
-
const
|
|
32
|
-
if (options.crossOrigin !== null) {
|
|
33
|
-
image.crossOrigin = options.crossOrigin;
|
|
34
|
-
}
|
|
31
|
+
const crossOrigin = options.crossOrigin ?? null;
|
|
35
32
|
|
|
36
|
-
return () =>
|
|
37
|
-
|
|
33
|
+
return () => {
|
|
34
|
+
const image = new Image();
|
|
35
|
+
image.crossOrigin = crossOrigin;
|
|
36
|
+
return load(image, options.url).then((image) => {
|
|
38
37
|
const resolutionX = getWidth(extent) / image.width;
|
|
39
38
|
const resolutionY = getHeight(extent) / image.height;
|
|
40
39
|
const resolution =
|
|
41
40
|
resolutionX !== resolutionY ? [resolutionX, resolutionY] : resolutionY;
|
|
42
41
|
return {image, extent, resolution, pixelRatio: 1};
|
|
43
42
|
});
|
|
43
|
+
};
|
|
44
44
|
}
|
package/source/wms.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export const DEFAULT_VERSION: string;
|
|
|
99
99
|
* - `'mapserver'`: HiDPI support for [MapServer](https://mapserver.org/)
|
|
100
100
|
* - `'qgis'`: HiDPI support for [QGIS](https://qgis.org/)
|
|
101
101
|
*/
|
|
102
|
-
export type ServerType =
|
|
102
|
+
export type ServerType = "carmentaserver" | "geoserver" | "mapserver" | "qgis";
|
|
103
103
|
export type LoaderOptions = {
|
|
104
104
|
/**
|
|
105
105
|
* The `crossOrigin` attribute for loaded images. Note that
|
|
@@ -145,6 +145,6 @@ export type LoaderOptions = {
|
|
|
145
145
|
* to perform loading of the image. Receives the created `HTMLImageElement` and the desired `src` as argument and
|
|
146
146
|
* returns a promise resolving to the loaded or decoded image. Default is {@link module :ol/Image.decode}.
|
|
147
147
|
*/
|
|
148
|
-
load?: ((arg0: HTMLImageElement, arg1: string) => Promise<import(
|
|
148
|
+
load?: ((arg0: HTMLImageElement, arg1: string) => Promise<import("../DataTile.js").ImageLike>) | undefined;
|
|
149
149
|
};
|
|
150
150
|
//# sourceMappingURL=wms.d.ts.map
|
package/source/wms.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms.d.ts","sourceRoot":"","sources":["wms.js"],"names":[],"mappings":"AAyBA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,uCAPW,MAAM,UACN,OAAO,cAAc,EAAE,MAAM,QAC7B,OAAO,YAAY,EAAE,IAAI,cACzB,OAAO,uBAAuB,EAAE,OAAO,gBAEtC,MAAM,
|
|
1
|
+
{"version":3,"file":"wms.d.ts","sourceRoot":"","sources":["wms.js"],"names":[],"mappings":"AAyBA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,uCAPW,MAAM,UACN,OAAO,cAAc,EAAE,MAAM,QAC7B,OAAO,YAAY,EAAE,IAAI,cACzB,OAAO,uBAAuB,EAAE,OAAO,gBAEtC,MAAM,CAgBjB;AAED;;;;;;;;;GASG;AACH,oCATW,OAAO,WAAW,EAAE,MAAM,cAC1B,MAAM,cACN,MAAM,cACN,OAAO,YAAY,EAAE,UAAU,OAC/B,MAAM,2BAEN,OAAO,UAAU,EAAE,UAAU,GAC5B,MAAM,CA4CjB;AAED;;;;GAIG;AACH,uDAHW,MAAM,OAehB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;;;GAKG;AACH,sCAJW,aAAa,GACZ,OAAO,aAAa,EAAE,wBAAwB,CA+BzD;AAED;;;;;;;;;;;GAWG;AACH,2CATW,aAAa,cAIb,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,GACL,MAAM,GAAC,SAAS,CAwC3B;AAED;;;;;;;;;;GAUG;AACH,sCANW,aAAa,oCAGZ,MAAM,GAAC,SAAS,CAkC3B;AA/QD;;;GAGG;AACH,8BAFU,MAAM,CAEuB;;;;;;;;yBAU1B,gBAAgB,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iBAoHpD,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;SAMnC,MAAM;;;;;;mBACG,gBAAgB,QAAE,MAAM,KAAG,OAAO,CAAC,OAAO,gBAAgB,EAAE,SAAS,CAAC"}
|
package/source/wms.js
CHANGED
|
@@ -46,17 +46,15 @@ export function getRequestUrl(baseUrl, extent, size, projection, params) {
|
|
|
46
46
|
params['HEIGHT'] = size[1];
|
|
47
47
|
|
|
48
48
|
const axisOrientation = projection.getAxisOrientation();
|
|
49
|
-
let bbox;
|
|
50
49
|
const v13 = compareVersions(params['VERSION'], '1.3') >= 0;
|
|
51
50
|
params[v13 ? 'CRS' : 'SRS'] = projection.getCode();
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
51
|
+
const bbox =
|
|
52
|
+
v13 && axisOrientation.startsWith('ne')
|
|
53
|
+
? [extent[1], extent[0], extent[3], extent[2]]
|
|
54
|
+
: extent;
|
|
57
55
|
params['BBOX'] = bbox.join(',');
|
|
58
56
|
|
|
59
|
-
return appendParams(
|
|
57
|
+
return appendParams(baseUrl, params);
|
|
60
58
|
}
|
|
61
59
|
|
|
62
60
|
/**
|
|
@@ -166,6 +164,7 @@ export function createLoader(options) {
|
|
|
166
164
|
const projection = getProjection(options.projection || 'EPSG:3857');
|
|
167
165
|
const ratio = options.ratio || 1.5;
|
|
168
166
|
const load = options.load || decode;
|
|
167
|
+
const crossOrigin = options.crossOrigin ?? null;
|
|
169
168
|
|
|
170
169
|
/**
|
|
171
170
|
* @type {import("../Image.js").Loader}
|
|
@@ -185,9 +184,7 @@ export function createLoader(options) {
|
|
|
185
184
|
options.serverType,
|
|
186
185
|
);
|
|
187
186
|
const image = new Image();
|
|
188
|
-
|
|
189
|
-
image.crossOrigin = options.crossOrigin;
|
|
190
|
-
}
|
|
187
|
+
image.crossOrigin = crossOrigin;
|
|
191
188
|
return load(image, src).then((image) => ({image, extent, pixelRatio}));
|
|
192
189
|
};
|
|
193
190
|
}
|
|
@@ -266,15 +263,6 @@ export function getLegendUrl(options, resolution) {
|
|
|
266
263
|
'FORMAT': 'image/png',
|
|
267
264
|
};
|
|
268
265
|
|
|
269
|
-
if (options.params === undefined || options.params['LAYER'] === undefined) {
|
|
270
|
-
const layers = options.params.LAYERS;
|
|
271
|
-
const isSingleLayer = !Array.isArray(layers) || layers.length === 1;
|
|
272
|
-
if (!isSingleLayer) {
|
|
273
|
-
return undefined;
|
|
274
|
-
}
|
|
275
|
-
baseParams['LAYER'] = layers;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
266
|
if (resolution !== undefined) {
|
|
279
267
|
const mpu =
|
|
280
268
|
getProjection(options.projection || 'EPSG:3857').getMetersPerUnit() || 1;
|
|
@@ -284,5 +272,14 @@ export function getLegendUrl(options, resolution) {
|
|
|
284
272
|
|
|
285
273
|
Object.assign(baseParams, options.params);
|
|
286
274
|
|
|
275
|
+
if (options.params !== undefined && baseParams['LAYER'] === undefined) {
|
|
276
|
+
const layers = baseParams['LAYERS'];
|
|
277
|
+
const isSingleLayer = !Array.isArray(layers) || layers.length !== 1;
|
|
278
|
+
if (!isSingleLayer) {
|
|
279
|
+
return undefined;
|
|
280
|
+
}
|
|
281
|
+
baseParams['LAYER'] = layers;
|
|
282
|
+
}
|
|
283
|
+
|
|
287
284
|
return appendParams(options.url, baseParams);
|
|
288
285
|
}
|
package/source.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { default as ImageArcGISRest } from "./source/ImageArcGISRest.js";
|
|
|
23
23
|
export { default as ImageCanvas } from "./source/ImageCanvas.js";
|
|
24
24
|
export { default as ImageMapGuide } from "./source/ImageMapGuide.js";
|
|
25
25
|
export { default as ImageStatic } from "./source/ImageStatic.js";
|
|
26
|
+
export { default as ImageTile } from "./source/ImageTile.js";
|
|
26
27
|
export { default as ImageWMS } from "./source/ImageWMS.js";
|
|
27
28
|
export { default as OGCMapTile } from "./source/OGCMapTile.js";
|
|
28
29
|
export { default as OGCVectorTile } from "./source/OGCVectorTile.js";
|
package/source.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["source.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["source.js"],"names":[],"mappings":"AA6CA;;;;;;;;;;;GAWG;AACH,8CATW,OAAO,wBAAwB,EAAE,OAAO,WACxC,CAAS,IAAkC,EAAlC,OAAO,gBAAgB,EAAE,SAAS,KAAG,OAAO,oBAAoB,EAAE,OAAO,GAKjF,CAAS,IAA4B,EAA5B,OAAO,aAAa,EAAE,MAAM,EAAE,IAAM,EAAN,MAAM,KAAG,KAAK,CAAC,OAAO,oBAAoB,EAAE,OAAO,CAAC,CAuBtG"}
|
package/source.js
CHANGED
|
@@ -17,6 +17,7 @@ export {default as ImageArcGISRest} from './source/ImageArcGISRest.js';
|
|
|
17
17
|
export {default as ImageCanvas} from './source/ImageCanvas.js';
|
|
18
18
|
export {default as ImageMapGuide} from './source/ImageMapGuide.js';
|
|
19
19
|
export {default as ImageStatic} from './source/ImageStatic.js';
|
|
20
|
+
export {default as ImageTile} from './source/ImageTile.js';
|
|
20
21
|
export {default as ImageWMS} from './source/ImageWMS.js';
|
|
21
22
|
export {default as OGCMapTile} from './source/OGCMapTile.js';
|
|
22
23
|
export {default as OGCVectorTile} from './source/OGCVectorTile.js';
|
package/sphere.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export function offset(c1: import("./coordinate.js").Coordinate, distance: numbe
|
|
|
62
62
|
*/
|
|
63
63
|
export const DEFAULT_RADIUS: number;
|
|
64
64
|
/**
|
|
65
|
-
* Object literal with options for the {@link getLength
|
|
65
|
+
* Object literal with options for the {@link getLength} or {@link getArea}
|
|
66
66
|
* functions.
|
|
67
67
|
*/
|
|
68
68
|
export type SphereMetricOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LRUCache.d.ts","sourceRoot":"","sources":["LRUCache.js"],"names":[],"mappings":";;;;;UAQc,MAAM;;;;WACN,KAAK,GAAC,IAAI;;;;WACV,KAAK,GAAC,IAAI;;;;;;
|
|
1
|
+
{"version":3,"file":"LRUCache.d.ts","sourceRoot":"","sources":["LRUCache.js"],"names":[],"mappings":";;;;;UAQc,MAAM;;;;WACN,KAAK,GAAC,IAAI;;;;WACV,KAAK,GAAC,IAAI;;;;YACV,GAAC;;AALf;;;;;;GAMG;AAEH;;;;;;;;GAQG;AACH,uBAFa,CAAC;IAGZ;;OAEG;IACH,gDA+BC;IA9BC;;;;OAIG;IACH,eAFU,MAAM,CAEuD;IAEvE;;;OAGG;IACH,eAAe;IAEf;;;OAGG;IACH,iBAAkB;IAElB;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,gBAAmB;IAGrB;;OAEG;IACH,kBAFY,OAAO,CAIlB;IAED;;;OAGG;IACH;;yBAIC;IAED;;OAEG;IACH,cAKC;IAED;;;OAGG;IACH,iBAHW,MAAM,GACL,OAAO,CAIlB;IAED;;;;;OAKG;IACH,WALW,CAAS,IAAC,EAAD,CAAC,EAAE,IAAM,EAAN,MAAM,EAAE,IAAW,EAAX,QAAQ,CAAC,CAAC,CAAC,KAAG,OAAC,QAW7C;IAED;;;;OAIG;IACH,SAJW,MAAM,YACN,GAAC,GACA,CAAC,CAuBZ;IAED;;;;OAIG;IACH,YAHW,MAAM,GACL,CAAC,CAyBZ;IAED;;OAEG;IACH,YAFY,MAAM,CAIjB;IAED;;OAEG;IACH,WAFY,KAAK,CAAC,MAAM,CAAC,CAUxB;IAED;;OAEG;IACH,aAFY,KAAK,CAAC,CAAC,CAAC,CAUnB;IAED;;OAEG;IACH,YAFY,CAAC,CAIZ;IAED;;OAEG;IACH,eAFY,MAAM,CAIjB;IAED;;;OAGG;IACH,gBAFY,MAAM,CAIjB;IAED;;;;OAIG;IACH,UAHW,MAAM,GACL,CAAC,GAAC,SAAS,CAItB;IAED;;OAEG;IACH,OAFY,CAAC,CAcZ;IAED;;;OAGG;IACH,aAHW,MAAM,SACN,CAAC,QAKX;IAED;;;OAGG;IACH,SAHW,MAAM,SACN,CAAC,QAqBX;IAED;;;;OAIG;IACH,cAHW,MAAM,QAKhB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriorityQueue.d.ts","sourceRoot":"","sources":["PriorityQueue.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,mBAFU,MAAM,CAEa;;AAE7B;;;;;;;;;;;GAWG;AACH;
|
|
1
|
+
{"version":3,"file":"PriorityQueue.d.ts","sourceRoot":"","sources":["PriorityQueue.js"],"names":[],"mappings":"AAMA;;GAEG;AACH,mBAFU,MAAM,CAEa;;AAE7B;;;;;;;;;;;GAWG;AACH,4BAFa,CAAC;IAGZ;;;OAGG;IACH,8BAHW,CAAS,IAAC,EAAD,CAAC,KAAG,MAAM,eACnB,CAAS,IAAC,EAAD,CAAC,KAAG,MAAM,EAgC7B;IA7BC;;;OAGG;IACH,0BAAyC;IAEzC;;;OAGG;IACH,qBAA+B;IAE/B;;;OAGG;IACH,kBAAmB;IAEnB;;;OAGG;IACH,oBAAqB;IAErB;;;OAGG;IACH,wBAAyB;IAG3B;;OAEG;IACH,cAIC;IAED;;;OAGG;IACH,WAFY,CAAC,CAiBZ;IAED;;;;OAIG;IACH,iBAHW,CAAC,GACA,OAAO,CAgBlB;IAED;;OAEG;IACH,YAFY,MAAM,CAIjB;IAED;;;;;OAKG;IACH,2BAEC;IAED;;;;;OAKG;IACH,4BAEC;IAED;;;;;OAKG;IACH,wBAEC;IAED;;;OAGG;IACH,iBAKC;IAED;;OAEG;IACH,WAFY,OAAO,CAIlB;IAED;;;OAGG;IACH,iBAHW,MAAM,GACL,OAAO,CAIlB;IAED;;;OAGG;IACH,kBAHW,CAAC,GACA,OAAO,CAIlB;IAED;;;OAGG;IACH,gBAyBC;IAED;;;;OAIG;IACH,kBAkBC;IAED;;OAEG;IACH,qBAoBC;CACF"}
|
package/structs/RBush.d.ts
CHANGED
|
@@ -1,55 +1,33 @@
|
|
|
1
1
|
export default RBush;
|
|
2
|
-
export type Entry = {
|
|
3
|
-
|
|
4
|
-
* MinX.
|
|
5
|
-
*/
|
|
6
|
-
minX: number;
|
|
7
|
-
/**
|
|
8
|
-
* MinY.
|
|
9
|
-
*/
|
|
10
|
-
minY: number;
|
|
11
|
-
/**
|
|
12
|
-
* MaxX.
|
|
13
|
-
*/
|
|
14
|
-
maxX: number;
|
|
15
|
-
/**
|
|
16
|
-
* MaxY.
|
|
17
|
-
*/
|
|
18
|
-
maxY: number;
|
|
19
|
-
/**
|
|
20
|
-
* Value.
|
|
21
|
-
*/
|
|
22
|
-
value?: any;
|
|
2
|
+
export type Entry<T> = import("rbush").BBox & {
|
|
3
|
+
value: T;
|
|
23
4
|
};
|
|
24
5
|
/**
|
|
25
|
-
* @typedef {
|
|
26
|
-
* @
|
|
27
|
-
* @property {number} minY MinY.
|
|
28
|
-
* @property {number} maxX MaxX.
|
|
29
|
-
* @property {number} maxY MaxY.
|
|
30
|
-
* @property {Object} [value] Value.
|
|
6
|
+
* @typedef {import("rbush").BBox & {value: T}} Entry
|
|
7
|
+
* @template T
|
|
31
8
|
*/
|
|
32
9
|
/**
|
|
33
10
|
* @classdesc
|
|
34
11
|
* Wrapper around the RBush by Vladimir Agafonkin.
|
|
35
12
|
* See https://github.com/mourner/rbush.
|
|
36
13
|
*
|
|
37
|
-
* @template T
|
|
14
|
+
* @template {Object} T
|
|
38
15
|
*/
|
|
39
|
-
declare class RBush<T> {
|
|
16
|
+
declare class RBush<T extends unknown> {
|
|
40
17
|
/**
|
|
41
18
|
* @param {number} [maxEntries] Max entries.
|
|
42
19
|
*/
|
|
43
20
|
constructor(maxEntries?: number | undefined);
|
|
44
21
|
/**
|
|
45
22
|
* @private
|
|
23
|
+
* @type {RBush_<Entry<T>>}
|
|
46
24
|
*/
|
|
47
25
|
private rbush_;
|
|
48
26
|
/**
|
|
49
27
|
* A mapping between the objects added to this rbush wrapper
|
|
50
28
|
* and the objects that are actually added to the internal rbush.
|
|
51
29
|
* @private
|
|
52
|
-
* @type {Object<string, Entry
|
|
30
|
+
* @type {Object<string, Entry<T>>}
|
|
53
31
|
*/
|
|
54
32
|
private items_;
|
|
55
33
|
/**
|
|
@@ -123,8 +101,8 @@ declare class RBush<T> {
|
|
|
123
101
|
*/
|
|
124
102
|
getExtent(extent?: import("../extent.js").Extent | undefined): import("../extent.js").Extent;
|
|
125
103
|
/**
|
|
126
|
-
* @param {RBush} rbush R-Tree.
|
|
104
|
+
* @param {RBush<T>} rbush R-Tree.
|
|
127
105
|
*/
|
|
128
|
-
concat(rbush: RBush<
|
|
106
|
+
concat(rbush: RBush<T>): void;
|
|
129
107
|
}
|
|
130
108
|
//# sourceMappingURL=RBush.d.ts.map
|
package/structs/RBush.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RBush.d.ts","sourceRoot":"","sources":["RBush.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RBush.d.ts","sourceRoot":"","sources":["RBush.js"],"names":[],"mappings":";kBAUa,CAAC,IADD,OAAO,OAAO,EAAE,IAAI,GAAG;IAAC,KAAK,EAAE,CAAC,CAAA;CAAC;AAD9C;;;GAGG;AAEH;;;;;;GAMG;AACH,oBAFsB,CAAC;IAGrB;;OAEG;IACH,6CAcC;IAbC;;;OAGG;IACH,eAAoC;IAEpC;;;;;OAKG;IACH,eAAgB;IAGlB;;;;OAIG;IACH,eAHW,OAAO,cAAc,EAAE,MAAM,SAC7B,CAAC,QAcX;IAED;;;;OAIG;IACH,cAHW,KAAK,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,UACpC,KAAK,CAAC,CAAC,CAAC,QAoBlB;IAED;;;;OAIG;IACH,cAHW,CAAC,GACA,OAAO,CAUlB;IAED;;;;OAIG;IACH,eAHW,OAAO,cAAc,EAAE,MAAM,SAC7B,CAAC,QASX;IAED;;;OAGG;IACH,UAFY,KAAK,CAAC,CAAC,CAAC,CAOnB;IAED;;;;OAIG;IACH,oBAHW,OAAO,cAAc,EAAE,MAAM,GAC5B,KAAK,CAAC,CAAC,CAAC,CAcnB;IAED;;;;;;OAMG;IACH,kBAHW,CAAS,IAAC,EAAD,CAAC,KAAG,GAAC,GACb,GAAC,CAIZ;IAED;;;;;OAKG;IACH,wBAJW,OAAO,cAAc,EAAE,MAAM,YAC7B,CAAS,IAAC,EAAD,CAAC,KAAG,GAAC,GACb,GAAC,CAIZ;IAED;;;;;OAKG;IACH,iBASC;IAED;;OAEG;IACH,WAFY,OAAO,CAIlB;IAED;;OAEG;IACH,cAGC;IAED;;;OAGG;IACH,+DAFY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;OAEG;IACH,cAFW,KAAK,CAAC,CAAC,CAAC,QAOlB;CACF"}
|
package/structs/RBush.js
CHANGED
|
@@ -7,12 +7,8 @@ import {getUid} from '../util.js';
|
|
|
7
7
|
import {isEmpty} from '../obj.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @typedef {
|
|
11
|
-
* @
|
|
12
|
-
* @property {number} minY MinY.
|
|
13
|
-
* @property {number} maxX MaxX.
|
|
14
|
-
* @property {number} maxY MaxY.
|
|
15
|
-
* @property {Object} [value] Value.
|
|
10
|
+
* @typedef {import("rbush").BBox & {value: T}} Entry
|
|
11
|
+
* @template T
|
|
16
12
|
*/
|
|
17
13
|
|
|
18
14
|
/**
|
|
@@ -20,7 +16,7 @@ import {isEmpty} from '../obj.js';
|
|
|
20
16
|
* Wrapper around the RBush by Vladimir Agafonkin.
|
|
21
17
|
* See https://github.com/mourner/rbush.
|
|
22
18
|
*
|
|
23
|
-
* @template T
|
|
19
|
+
* @template {Object} T
|
|
24
20
|
*/
|
|
25
21
|
class RBush {
|
|
26
22
|
/**
|
|
@@ -29,6 +25,7 @@ class RBush {
|
|
|
29
25
|
constructor(maxEntries) {
|
|
30
26
|
/**
|
|
31
27
|
* @private
|
|
28
|
+
* @type {RBush_<Entry<T>>}
|
|
32
29
|
*/
|
|
33
30
|
this.rbush_ = new RBush_(maxEntries);
|
|
34
31
|
|
|
@@ -36,7 +33,7 @@ class RBush {
|
|
|
36
33
|
* A mapping between the objects added to this rbush wrapper
|
|
37
34
|
* and the objects that are actually added to the internal rbush.
|
|
38
35
|
* @private
|
|
39
|
-
* @type {Object<string, Entry
|
|
36
|
+
* @type {Object<string, Entry<T>>}
|
|
40
37
|
*/
|
|
41
38
|
this.items_ = {};
|
|
42
39
|
}
|
|
@@ -47,7 +44,7 @@ class RBush {
|
|
|
47
44
|
* @param {T} value Value.
|
|
48
45
|
*/
|
|
49
46
|
insert(extent, value) {
|
|
50
|
-
/** @type {Entry} */
|
|
47
|
+
/** @type {Entry<T>} */
|
|
51
48
|
const item = {
|
|
52
49
|
minX: extent[0],
|
|
53
50
|
minY: extent[1],
|
|
@@ -71,7 +68,7 @@ class RBush {
|
|
|
71
68
|
const extent = extents[i];
|
|
72
69
|
const value = values[i];
|
|
73
70
|
|
|
74
|
-
/** @type {Entry} */
|
|
71
|
+
/** @type {Entry<T>} */
|
|
75
72
|
const item = {
|
|
76
73
|
minX: extent[0],
|
|
77
74
|
minY: extent[1],
|
|
@@ -131,7 +128,7 @@ class RBush {
|
|
|
131
128
|
* @return {Array<T>} All in extent.
|
|
132
129
|
*/
|
|
133
130
|
getInExtent(extent) {
|
|
134
|
-
/** @type {
|
|
131
|
+
/** @type {import("rbush").BBox} */
|
|
135
132
|
const bbox = {
|
|
136
133
|
minX: extent[0],
|
|
137
134
|
minY: extent[1],
|
|
@@ -207,7 +204,7 @@ class RBush {
|
|
|
207
204
|
}
|
|
208
205
|
|
|
209
206
|
/**
|
|
210
|
-
* @param {RBush} rbush R-Tree.
|
|
207
|
+
* @param {RBush<T>} rbush R-Tree.
|
|
211
208
|
*/
|
|
212
209
|
concat(rbush) {
|
|
213
210
|
this.rbush_.load(rbush.rbush_.all());
|
package/style/Circle.d.ts
CHANGED
package/style/Circle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["Circle.js"],"names":[],"mappings":";;;;;;;;;YASc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAHpB;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAgBC;IAED
|
|
1
|
+
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["Circle.js"],"names":[],"mappings":";;;;;;;;;YASc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAHpB;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAgBC;IAED;;;;;OAKG;IACH,kBAJY,WAAW,CAkBtB;IAED;;;;;OAKG;IACH,kBAHW,MAAM,QAMhB;CACF;yBA5EwB,mBAAmB"}
|
package/style/Circle.js
CHANGED
|
@@ -50,6 +50,7 @@ class CircleStyle extends RegularShape {
|
|
|
50
50
|
* Clones the style.
|
|
51
51
|
* @return {CircleStyle} The cloned style.
|
|
52
52
|
* @api
|
|
53
|
+
* @override
|
|
53
54
|
*/
|
|
54
55
|
clone() {
|
|
55
56
|
const scale = this.getScale();
|
|
@@ -74,7 +75,7 @@ class CircleStyle extends RegularShape {
|
|
|
74
75
|
* @api
|
|
75
76
|
*/
|
|
76
77
|
setRadius(radius) {
|
|
77
|
-
this.
|
|
78
|
+
this.radius = radius;
|
|
78
79
|
this.render();
|
|
79
80
|
}
|
|
80
81
|
}
|
package/style/Fill.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare class Fill {
|
|
|
38
38
|
*/
|
|
39
39
|
private color_;
|
|
40
40
|
/**
|
|
41
|
-
* Clones the style. The color is not cloned if it is
|
|
41
|
+
* Clones the style. The color is not cloned if it is a {@link module:ol/colorlike~ColorLike}.
|
|
42
42
|
* @return {Fill} The cloned style.
|
|
43
43
|
* @api
|
|
44
44
|
*/
|
|
@@ -48,14 +48,14 @@ declare class Fill {
|
|
|
48
48
|
* @return {import("../color.js").Color|import("../colorlike.js").ColorLike|import('../colorlike.js').PatternDescriptor|null} Color.
|
|
49
49
|
* @api
|
|
50
50
|
*/
|
|
51
|
-
getColor(): import("../color.js").Color | import("../colorlike.js").ColorLike | import(
|
|
51
|
+
getColor(): import("../color.js").Color | import("../colorlike.js").ColorLike | import("../colorlike.js").PatternDescriptor | null;
|
|
52
52
|
/**
|
|
53
53
|
* Set the color.
|
|
54
54
|
*
|
|
55
55
|
* @param {import("../color.js").Color|import("../colorlike.js").ColorLike|import('../colorlike.js').PatternDescriptor|null} color Color.
|
|
56
56
|
* @api
|
|
57
57
|
*/
|
|
58
|
-
setColor(color: import("../color.js").Color | import("../colorlike.js").ColorLike | import(
|
|
58
|
+
setColor(color: import("../color.js").Color | import("../colorlike.js").ColorLike | import("../colorlike.js").PatternDescriptor | null): void;
|
|
59
59
|
/**
|
|
60
60
|
* @return {boolean} The fill style is loading an image pattern.
|
|
61
61
|
*/
|
package/style/Fill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fill.d.ts","sourceRoot":"","sources":["Fill.js"],"names":[],"mappings":";;;;;;;;;;;AAOA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAiBC;IAdC;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,eAAkB;IAMpB;;;;OAIG;IACH,SAHY,IAAI,CAQf;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,GAAC,OAAO,iBAAiB,EAAE,SAAS,GAAC,OAAO,iBAAiB,EAAE,iBAAiB,GAAC,IAAI,CAK3H;IAED;;;;;OAKG;IACH,gBAHW,OAAO,aAAa,EAAE,KAAK,GAAC,OAAO,iBAAiB,EAAE,SAAS,GAAC,OAAO,iBAAiB,EAAE,iBAAiB,GAAC,IAAI,QAwB1H;IAED;;OAEG;IACH,WAFY,OAAO,CAIlB;IAED;;OAEG;IACH,SAFY,
|
|
1
|
+
{"version":3,"file":"Fill.d.ts","sourceRoot":"","sources":["Fill.js"],"names":[],"mappings":";;;;;;;;;;;AAOA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAiBC;IAdC;;;OAGG;IACH,sBAAyB;IAEzB;;;OAGG;IACH,eAAkB;IAMpB;;;;OAIG;IACH,SAHY,IAAI,CAQf;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,GAAC,OAAO,iBAAiB,EAAE,SAAS,GAAC,OAAO,iBAAiB,EAAE,iBAAiB,GAAC,IAAI,CAK3H;IAED;;;;;OAKG;IACH,gBAHW,OAAO,aAAa,EAAE,KAAK,GAAC,OAAO,iBAAiB,EAAE,SAAS,GAAC,OAAO,iBAAiB,EAAE,iBAAiB,GAAC,IAAI,QAwB1H;IAED;;OAEG;IACH,WAFY,OAAO,CAIlB;IAED;;OAEG;IACH,SAFY,OAAO,CAAC,IAAI,CAAC,CAIxB;CACF"}
|
package/style/Fill.js
CHANGED
|
@@ -43,7 +43,7 @@ class Fill {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Clones the style. The color is not cloned if it is
|
|
46
|
+
* Clones the style. The color is not cloned if it is a {@link module:ol/colorlike~ColorLike}.
|
|
47
47
|
* @return {Fill} The cloned style.
|
|
48
48
|
* @api
|
|
49
49
|
*/
|
package/style/Icon.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export default Icon;
|
|
|
2
2
|
/**
|
|
3
3
|
* Anchor unit can be either a fraction of the icon size or in pixels.
|
|
4
4
|
*/
|
|
5
|
-
export type IconAnchorUnits =
|
|
5
|
+
export type IconAnchorUnits = "fraction" | "pixels";
|
|
6
6
|
/**
|
|
7
7
|
* Icon origin. One of 'bottom-left', 'bottom-right', 'top-left', 'top-right'.
|
|
8
8
|
*/
|
|
9
|
-
export type IconOrigin =
|
|
9
|
+
export type IconOrigin = "bottom-left" | "bottom-right" | "top-left" | "top-right";
|
|
10
10
|
export type Options = {
|
|
11
11
|
/**
|
|
12
12
|
* Anchor. Default value is the icon center.
|
|
@@ -172,8 +172,9 @@ declare class Icon extends ImageStyle {
|
|
|
172
172
|
* Clones the style. The underlying Image/HTMLCanvasElement is not cloned.
|
|
173
173
|
* @return {Icon} The cloned style.
|
|
174
174
|
* @api
|
|
175
|
+
* @override
|
|
175
176
|
*/
|
|
176
|
-
clone(): Icon;
|
|
177
|
+
override clone(): Icon;
|
|
177
178
|
/**
|
|
178
179
|
* Set the anchor point. The anchor determines the center point for the
|
|
179
180
|
* symbolizer.
|
|
@@ -194,12 +195,14 @@ declare class Icon extends ImageStyle {
|
|
|
194
195
|
* @return {HTMLImageElement|HTMLCanvasElement|ImageBitmap} Image or Canvas element. If the Icon
|
|
195
196
|
* style was configured with `src` or with a not let loaded `img`, an `ImageBitmap` will be returned.
|
|
196
197
|
* @api
|
|
198
|
+
* @override
|
|
197
199
|
*/
|
|
198
|
-
getImage(pixelRatio: number): HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
200
|
+
override getImage(pixelRatio: number): HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
199
201
|
/**
|
|
200
202
|
* @return {HTMLImageElement|HTMLCanvasElement|ImageBitmap} Image element.
|
|
203
|
+
* @override
|
|
201
204
|
*/
|
|
202
|
-
getHitDetectionImage(): HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
205
|
+
override getHitDetectionImage(): HTMLImageElement | HTMLCanvasElement | ImageBitmap;
|
|
203
206
|
/**
|
|
204
207
|
* Get the image URL.
|
|
205
208
|
* @return {string|undefined} Image src.
|
package/style/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":";;;;8BAYa,UAAU,GAAG,QAAQ;;;;yBAKrB,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DtE;;;;GAIG;AACH;IACE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":";;;;8BAYa,UAAU,GAAG,QAAQ;;;;yBAKrB,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DtE;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAwMC;IAtKC;;;OAGG;IACH,gBAAyE;IAEzE;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,qBACgE;IA0ChE;;;OAGG;IACH,eAAyE;IAEzE;;;OAGG;IACH,mBAMC;IAED;;;OAGG;IACH,gBAAqE;IACrE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,cAA6D;IAoBvD,qCAA8B;IA4BtC;;;;;OAKG;IACH,kBAJY,IAAI,CAoCf;IA8DD;;;;;;OAMG;IACH,kBAHW,KAAK,CAAC,MAAM,CAAC,QAMvB;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,CAKtC;IAED;;;;;;;OAOG;IACH,8BANW,MAAM,GACL,gBAAgB,GAAC,iBAAiB,GAAC,WAAW,CAOzD;IA6BD;;;OAGG;IACH,iCAHY,gBAAgB,GAAC,iBAAiB,GAAC,WAAW,CAKzD;IAsCD;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAYD;;;;OAIG;IACH,YAHY,MAAM,CAYjB;IAED;;;;OAIG;IACH,aAHY,MAAM,CAYjB;CAgDF;uBAvkBsB,YAAY"}
|