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/DataTile.js
CHANGED
|
@@ -19,10 +19,22 @@ import {getUid} from '../util.js';
|
|
|
19
19
|
import {toPromise} from '../functions.js';
|
|
20
20
|
import {toSize} from '../size.js';
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {'anonymous'|'use-credentials'} CrossOriginAttribute
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @typedef {Object} LoaderOptions
|
|
28
|
+
* @property {AbortSignal} signal An abort controller signal.
|
|
29
|
+
* @property {CrossOriginAttribute} [crossOrigin] The cross-origin attribute for images.
|
|
30
|
+
* @property {number} [maxY] The maximum y coordinate at the given z level. Will be undefined if the
|
|
31
|
+
* underlying tile grid does not have a known extent.
|
|
32
|
+
*/
|
|
33
|
+
|
|
22
34
|
/**
|
|
23
35
|
* Data tile loading function. The function is called with z, x, and y tile coordinates and
|
|
24
36
|
* returns {@link import("../DataTile.js").Data data} for a tile or a promise for the same.
|
|
25
|
-
* @typedef {function(number, number, number) : (import("../DataTile.js").Data|Promise<import("../DataTile.js").Data>)} Loader
|
|
37
|
+
* @typedef {function(number, number, number, LoaderOptions) : (import("../DataTile.js").Data|Promise<import("../DataTile.js").Data>)} Loader
|
|
26
38
|
*/
|
|
27
39
|
|
|
28
40
|
/**
|
|
@@ -42,13 +54,14 @@ import {toSize} from '../size.js';
|
|
|
42
54
|
* @property {number} [maxResolution] Optional tile grid resolution at level zero. Not used if `tileGrid` is provided.
|
|
43
55
|
* @property {import("../proj.js").ProjectionLike} [projection='EPSG:3857'] Tile projection.
|
|
44
56
|
* @property {import("../tilegrid/TileGrid.js").default} [tileGrid] Tile grid.
|
|
45
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
46
57
|
* @property {import("./Source.js").State} [state] The source state.
|
|
47
58
|
* @property {boolean} [wrapX=false] Render tiles beyond the antimeridian.
|
|
48
59
|
* @property {number} [transition] Transition time when fading in new tiles (in milliseconds).
|
|
49
60
|
* @property {number} [bandCount=4] Number of bands represented in the data.
|
|
50
61
|
* @property {boolean} [interpolate=false] Use interpolated values when resampling. By default,
|
|
51
62
|
* the nearest neighbor is used when resampling.
|
|
63
|
+
* @property {CrossOriginAttribute} [crossOrigin='anonymous'] The crossOrigin property to pass to loaders for image data.
|
|
64
|
+
* @property {string} [key] Key for use in caching tiles.
|
|
52
65
|
*/
|
|
53
66
|
|
|
54
67
|
/**
|
|
@@ -56,6 +69,8 @@ import {toSize} from '../size.js';
|
|
|
56
69
|
* A source for typed array data tiles.
|
|
57
70
|
*
|
|
58
71
|
* @fires import("./Tile.js").TileSourceEvent
|
|
72
|
+
* @template {import("../Tile.js").default} [TileType=DataTile]
|
|
73
|
+
* @extends TileSource<TileType>
|
|
59
74
|
* @api
|
|
60
75
|
*/
|
|
61
76
|
class DataTileSource extends TileSource {
|
|
@@ -83,11 +98,11 @@ class DataTileSource extends TileSource {
|
|
|
83
98
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
84
99
|
projection: projection,
|
|
85
100
|
tileGrid: tileGrid,
|
|
86
|
-
opaque: options.opaque,
|
|
87
101
|
state: options.state,
|
|
88
102
|
wrapX: options.wrapX,
|
|
89
103
|
transition: options.transition,
|
|
90
104
|
interpolate: options.interpolate,
|
|
105
|
+
key: options.key,
|
|
91
106
|
});
|
|
92
107
|
|
|
93
108
|
/**
|
|
@@ -119,6 +134,9 @@ class DataTileSource extends TileSource {
|
|
|
119
134
|
*/
|
|
120
135
|
this.loader_ = options.loader;
|
|
121
136
|
|
|
137
|
+
/**
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
122
140
|
this.handleTileChange_ = this.handleTileChange_.bind(this);
|
|
123
141
|
|
|
124
142
|
/**
|
|
@@ -137,6 +155,12 @@ class DataTileSource extends TileSource {
|
|
|
137
155
|
* @type {!Object<string, import("../TileCache.js").default>}
|
|
138
156
|
*/
|
|
139
157
|
this.tileCacheForProjection_ = {};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* @private
|
|
161
|
+
* @type {CrossOriginAttribute}
|
|
162
|
+
*/
|
|
163
|
+
this.crossOrigin_ = options.crossOrigin || 'anonymous';
|
|
140
164
|
}
|
|
141
165
|
|
|
142
166
|
/**
|
|
@@ -170,6 +194,7 @@ class DataTileSource extends TileSource {
|
|
|
170
194
|
/**
|
|
171
195
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
172
196
|
* @return {number} Gutter.
|
|
197
|
+
* @override
|
|
173
198
|
*/
|
|
174
199
|
getGutterForProjection(projection) {
|
|
175
200
|
const thisProj = this.getProjection();
|
|
@@ -194,7 +219,7 @@ class DataTileSource extends TileSource {
|
|
|
194
219
|
* @param {number} y Tile coordinate y.
|
|
195
220
|
* @param {import("../proj/Projection.js").default} targetProj The output projection.
|
|
196
221
|
* @param {import("../proj/Projection.js").default} sourceProj The input projection.
|
|
197
|
-
* @return {!
|
|
222
|
+
* @return {!TileType} Tile.
|
|
198
223
|
*/
|
|
199
224
|
getReprojTile_(z, x, y, targetProj, sourceProj) {
|
|
200
225
|
const cache = this.getTileCacheForProjection(targetProj);
|
|
@@ -240,9 +265,11 @@ class DataTileSource extends TileSource {
|
|
|
240
265
|
getTileFunction: (z, x, y, pixelRatio) =>
|
|
241
266
|
this.getTile(z, x, y, pixelRatio, sourceProj),
|
|
242
267
|
},
|
|
243
|
-
this.tileOptions,
|
|
268
|
+
/** @type {import("../reproj/DataTile.js").Options} */ (this.tileOptions),
|
|
269
|
+
);
|
|
270
|
+
const newTile = /** @type {TileType} */ (
|
|
271
|
+
/** @type {*} */ (new ReprojDataTile(options))
|
|
244
272
|
);
|
|
245
|
-
const newTile = new ReprojDataTile(options);
|
|
246
273
|
newTile.key = this.getKey();
|
|
247
274
|
return newTile;
|
|
248
275
|
}
|
|
@@ -253,7 +280,8 @@ class DataTileSource extends TileSource {
|
|
|
253
280
|
* @param {number} y Tile coordinate y.
|
|
254
281
|
* @param {number} pixelRatio Pixel ratio.
|
|
255
282
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
256
|
-
* @return {
|
|
283
|
+
* @return {TileType|null} Tile (or null if outside source extent).
|
|
284
|
+
* @override
|
|
257
285
|
*/
|
|
258
286
|
getTile(z, x, y, pixelRatio, projection) {
|
|
259
287
|
const sourceProjection = this.getProjection();
|
|
@@ -273,22 +301,46 @@ class DataTileSource extends TileSource {
|
|
|
273
301
|
|
|
274
302
|
const sourceLoader = this.loader_;
|
|
275
303
|
|
|
304
|
+
const controller = new AbortController();
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @type {LoaderOptions}
|
|
308
|
+
*/
|
|
309
|
+
const loaderOptions = {
|
|
310
|
+
signal: controller.signal,
|
|
311
|
+
crossOrigin: this.crossOrigin_,
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
const tileCoord = this.getTileCoordForTileUrlFunction([z, x, y]);
|
|
315
|
+
if (!tileCoord) {
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
const requestZ = tileCoord[0];
|
|
320
|
+
const requestX = tileCoord[1];
|
|
321
|
+
const requestY = tileCoord[2];
|
|
276
322
|
function loader() {
|
|
277
323
|
return toPromise(function () {
|
|
278
|
-
return sourceLoader(
|
|
324
|
+
return sourceLoader(requestZ, requestX, requestY, loaderOptions);
|
|
279
325
|
});
|
|
280
326
|
}
|
|
281
327
|
|
|
328
|
+
/**
|
|
329
|
+
* @type {import("../DataTile.js").Options}
|
|
330
|
+
*/
|
|
282
331
|
const options = Object.assign(
|
|
283
332
|
{
|
|
284
333
|
tileCoord: [z, x, y],
|
|
285
334
|
loader: loader,
|
|
286
335
|
size: size,
|
|
336
|
+
controller: controller,
|
|
287
337
|
},
|
|
288
338
|
this.tileOptions,
|
|
289
339
|
);
|
|
290
340
|
|
|
291
|
-
const tile =
|
|
341
|
+
const tile = /** @type {TileType} */ (
|
|
342
|
+
/** @type {*} */ (new DataTile(options))
|
|
343
|
+
);
|
|
292
344
|
tile.key = this.getKey();
|
|
293
345
|
tile.addEventListener(EventType.CHANGE, this.handleTileChange_);
|
|
294
346
|
|
|
@@ -325,6 +377,7 @@ class DataTileSource extends TileSource {
|
|
|
325
377
|
/**
|
|
326
378
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
327
379
|
* @return {!import("../tilegrid/TileGrid.js").default} Tile grid.
|
|
380
|
+
* @override
|
|
328
381
|
*/
|
|
329
382
|
getTileGridForProjection(projection) {
|
|
330
383
|
const thisProj = this.getProjection();
|
|
@@ -365,6 +418,7 @@ class DataTileSource extends TileSource {
|
|
|
365
418
|
/**
|
|
366
419
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
367
420
|
* @return {import("../TileCache.js").default} Tile cache.
|
|
421
|
+
* @override
|
|
368
422
|
*/
|
|
369
423
|
getTileCacheForProjection(projection) {
|
|
370
424
|
const thisProj = this.getProjection();
|
|
@@ -382,6 +436,7 @@ class DataTileSource extends TileSource {
|
|
|
382
436
|
/**
|
|
383
437
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
384
438
|
* @param {!Object<string, boolean>} usedTiles Used tiles.
|
|
439
|
+
* @override
|
|
385
440
|
*/
|
|
386
441
|
expireCache(projection, usedTiles) {
|
|
387
442
|
const usedTileCache = this.getTileCacheForProjection(projection);
|
|
@@ -395,6 +450,9 @@ class DataTileSource extends TileSource {
|
|
|
395
450
|
}
|
|
396
451
|
}
|
|
397
452
|
|
|
453
|
+
/**
|
|
454
|
+
* @override
|
|
455
|
+
*/
|
|
398
456
|
clear() {
|
|
399
457
|
super.clear();
|
|
400
458
|
for (const id in this.tileCacheForProjection_) {
|
package/source/GeoTIFF.d.ts
CHANGED
|
@@ -152,10 +152,6 @@ export type Options = {
|
|
|
152
152
|
* to `false` will make it so any `min` and `max` properties on sources are ignored.
|
|
153
153
|
*/
|
|
154
154
|
normalize?: boolean | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* Whether the layer is opaque.
|
|
157
|
-
*/
|
|
158
|
-
opaque?: boolean | undefined;
|
|
159
155
|
/**
|
|
160
156
|
* Source projection. If not provided, the GeoTIFF metadata
|
|
161
157
|
* will be read for projection information.
|
|
@@ -208,7 +204,6 @@ export type Options = {
|
|
|
208
204
|
* 0 and 1 with scaling factors based on the raster statistics or `min` and `max` properties of each source.
|
|
209
205
|
* If instead you want to work with the raw values in a style expression, set this to `false`. Setting this option
|
|
210
206
|
* to `false` will make it so any `min` and `max` properties on sources are ignored.
|
|
211
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
212
207
|
* @property {import("../proj.js").ProjectionLike} [projection] Source projection. If not provided, the GeoTIFF metadata
|
|
213
208
|
* will be read for projection information.
|
|
214
209
|
* @property {number} [transition=250] Duration of the opacity transition for rendering.
|
|
@@ -225,7 +220,7 @@ export type Options = {
|
|
|
225
220
|
*
|
|
226
221
|
* @api
|
|
227
222
|
*/
|
|
228
|
-
declare class GeoTIFFSource extends DataTile {
|
|
223
|
+
declare class GeoTIFFSource extends DataTile<import("../DataTile.js").default> {
|
|
229
224
|
/**
|
|
230
225
|
* @param {Options} options Data tile options.
|
|
231
226
|
*/
|
|
@@ -287,8 +282,9 @@ declare class GeoTIFFSource extends DataTile {
|
|
|
287
282
|
private error_;
|
|
288
283
|
/**
|
|
289
284
|
* @type {true|false|'auto'}
|
|
285
|
+
* @private
|
|
290
286
|
*/
|
|
291
|
-
convertToRGB_
|
|
287
|
+
private convertToRGB_;
|
|
292
288
|
/**
|
|
293
289
|
* @return {Error} A source loading error. When the source state is `error`, use this function
|
|
294
290
|
* to get more information about the error. To debug a faulty configuration, you may want to use
|
|
@@ -324,6 +320,7 @@ declare class GeoTIFFSource extends DataTile {
|
|
|
324
320
|
* @param {number} z The z tile index.
|
|
325
321
|
* @param {number} x The x tile index.
|
|
326
322
|
* @param {number} y The y tile index.
|
|
323
|
+
* @param {import('./DataTile.js').LoaderOptions} options The loader options.
|
|
327
324
|
* @return {Promise} The composed tile data.
|
|
328
325
|
* @private
|
|
329
326
|
*/
|
package/source/GeoTIFF.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoTIFF.d.ts","sourceRoot":"","sources":["GeoTIFF.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoFc,MAAM;;;;wBACN,MAAM;;;;4BACN,MAAM;;;;6BACN,MAAM;;;;6BACN,MAAM;;;;0BACN,MAAM;;;;2BACN,MAAM;;;;2BACN,MAAM;;sBAIP,OAAO,SAAS,EAAE,OAAO;2BAIzB,OAAO,SAAS,EAAE,YAAY;;;;;wBAK7B,MAAM;;;;wBACN,MAAM;;2BASP,OAAO,SAAS,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqO7B,
|
|
1
|
+
{"version":3,"file":"GeoTIFF.d.ts","sourceRoot":"","sources":["GeoTIFF.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAoFc,MAAM;;;;wBACN,MAAM;;;;4BACN,MAAM;;;;6BACN,MAAM;;;;6BACN,MAAM;;;;0BACN,MAAM;;;;2BACN,MAAM;;;;2BACN,MAAM;;sBAIP,OAAO,SAAS,EAAE,OAAO;2BAIzB,OAAO,SAAS,EAAE,YAAY;;;;;wBAK7B,MAAM;;;;wBACN,MAAM;;2BASP,OAAO,SAAS,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAqO7B,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;iBAiBjB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;AAjCjD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyGjB;IA7FC;;;OAGG;IACH,oBAAkC;IAIlC;;;OAGG;IACH,uBAA2C;IAE3C;;;OAGG;IACH,uBAA2C;IAE3C;;;OAGG;IACH,qBAAyC;IAEzC;;;OAGG;IACH,2BAA+C;IAE/C;;;OAGG;IACH,yBAAqB;IAErB;;;OAGG;IACH,sBAAkB;IAElB;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,mBAA6C;IAE7C;;;OAGG;IACH,kBAAsB;IAEtB;;;OAGG;IACH,eAAkB;IAElB;;;OAGG;IACH,sBAAkD;IAuBpD;;;;;;;;;;;OAWG;IACH,YAXY,KAAK,CAahB;IAED;;;;;;;;OAQG;IACH,6BAHW,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,QAapC;IAED;;;;;;OAMG;IACH,mBAwOC;IAED;;;;;;;OAOG;IACH,kBA8EC;IAED;;;;;OAKG;IACH,qBA4GC;CACF;qBAp8BoB,eAAe"}
|
package/source/GeoTIFF.js
CHANGED
|
@@ -358,7 +358,6 @@ function getMaxForDataType(array) {
|
|
|
358
358
|
* 0 and 1 with scaling factors based on the raster statistics or `min` and `max` properties of each source.
|
|
359
359
|
* If instead you want to work with the raw values in a style expression, set this to `false`. Setting this option
|
|
360
360
|
* to `false` will make it so any `min` and `max` properties on sources are ignored.
|
|
361
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
362
361
|
* @property {import("../proj.js").ProjectionLike} [projection] Source projection. If not provided, the GeoTIFF metadata
|
|
363
362
|
* will be read for projection information.
|
|
364
363
|
* @property {number} [transition=250] Duration of the opacity transition for rendering.
|
|
@@ -385,7 +384,6 @@ class GeoTIFFSource extends DataTile {
|
|
|
385
384
|
state: 'loading',
|
|
386
385
|
tileGrid: null,
|
|
387
386
|
projection: options.projection || null,
|
|
388
|
-
opaque: options.opaque,
|
|
389
387
|
transition: options.transition,
|
|
390
388
|
interpolate: options.interpolate !== false,
|
|
391
389
|
wrapX: options.wrapX,
|
|
@@ -461,6 +459,7 @@ class GeoTIFFSource extends DataTile {
|
|
|
461
459
|
|
|
462
460
|
/**
|
|
463
461
|
* @type {true|false|'auto'}
|
|
462
|
+
* @private
|
|
464
463
|
*/
|
|
465
464
|
this.convertToRGB_ = options.convertToRGB || false;
|
|
466
465
|
|
|
@@ -767,10 +766,11 @@ class GeoTIFFSource extends DataTile {
|
|
|
767
766
|
* @param {number} z The z tile index.
|
|
768
767
|
* @param {number} x The x tile index.
|
|
769
768
|
* @param {number} y The y tile index.
|
|
769
|
+
* @param {import('./DataTile.js').LoaderOptions} options The loader options.
|
|
770
770
|
* @return {Promise} The composed tile data.
|
|
771
771
|
* @private
|
|
772
772
|
*/
|
|
773
|
-
loadTile_(z, x, y) {
|
|
773
|
+
loadTile_(z, x, y, options) {
|
|
774
774
|
const sourceTileSize = this.getTileSize(z);
|
|
775
775
|
const sourceCount = this.sourceImagery_.length;
|
|
776
776
|
const requests = new Array(sourceCount * 2);
|
|
@@ -816,6 +816,7 @@ class GeoTIFFSource extends DataTile {
|
|
|
816
816
|
fillValue: fillValue,
|
|
817
817
|
pool: pool,
|
|
818
818
|
interleave: false,
|
|
819
|
+
signal: options.signal,
|
|
819
820
|
};
|
|
820
821
|
if (readRGB(this.convertToRGB_, image)) {
|
|
821
822
|
requests[sourceIndex] = image.readRGB(readOptions);
|
package/source/Google.d.ts
CHANGED
package/source/Google.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["Google.js"],"names":[],"mappings":";;;;;SAiBc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiCN,MAAM;;;;cACN,MAAM;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM;;AArDpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,
|
|
1
|
+
{"version":3,"file":"Google.d.ts","sourceRoot":"","sources":["Google.js"],"names":[],"mappings":";;;;;SAiBc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiCN,MAAM;;;;cACN,MAAM;;;;YACN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAYN,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM;;AArDpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EA6FjB;IAzEC;;;OAGG;IACH,gBAA0B;IAE1B;;;OAGG;IACH,eAAkB;IAgClB;;;OAGG;IACH,6BAA+C;IAE/C;;;OAGG;IACH,2BAAuB;IAEvB;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,qCAAiC;IAEjC;;;OAGG;IACH,gCAA4B;IAK9B;;;;;;;;;;;OAWG;IACH,YAXY,KAAK,GAAC,IAAI,CAarB;IAED;;;;;OAKG;IACH,uBAJW,MAAM,UACN,WAAW,GACV,OAAO,CAAC,QAAQ,CAAC,CAI5B;IAED;;;OAGG;IACH,uBAyDC;IAED;;;;OAIG;IACH,2BAmCC;CASF;sBAtTqB,gBAAgB"}
|
package/source/Google.js
CHANGED
|
@@ -83,14 +83,12 @@ class Google extends TileImage {
|
|
|
83
83
|
*/
|
|
84
84
|
constructor(options) {
|
|
85
85
|
const highDpi = !!options.highDpi;
|
|
86
|
-
const opaque = !(options.overlay === true);
|
|
87
86
|
|
|
88
87
|
super({
|
|
89
88
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
90
89
|
cacheSize: options.cacheSize,
|
|
91
90
|
crossOrigin: 'anonymous',
|
|
92
91
|
interpolate: options.interpolate,
|
|
93
|
-
opaque: opaque,
|
|
94
92
|
projection: 'EPSG:3857',
|
|
95
93
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
96
94
|
state: 'loading',
|
|
@@ -109,6 +107,7 @@ class Google extends TileImage {
|
|
|
109
107
|
|
|
110
108
|
/**
|
|
111
109
|
* @type {Error|null}
|
|
110
|
+
* @private
|
|
112
111
|
*/
|
|
113
112
|
this.error_ = null;
|
|
114
113
|
|
|
@@ -306,6 +305,9 @@ class Google extends TileImage {
|
|
|
306
305
|
return this.previousViewportAttribution_;
|
|
307
306
|
}
|
|
308
307
|
|
|
308
|
+
/**
|
|
309
|
+
* @override
|
|
310
|
+
*/
|
|
309
311
|
disposeInternal() {
|
|
310
312
|
clearTimeout(this.sessionRefreshId_);
|
|
311
313
|
super.disposeInternal();
|
package/source/IIIF.d.ts
CHANGED
package/source/IIIF.js
CHANGED
|
@@ -15,7 +15,7 @@ import {toSize} from '../size.js';
|
|
|
15
15
|
* @typedef {Object} Options
|
|
16
16
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
17
17
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
18
|
-
* @property {number} [cacheSize]
|
|
18
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
19
19
|
* @property {null|string} [crossOrigin] The value for the crossOrigin option of the request.
|
|
20
20
|
* @property {import("../extent.js").Extent} [extent=[0, -height, width, 0]] The extent.
|
|
21
21
|
* @property {string} [format='jpg'] Requested image format.
|
package/source/Image.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export class ImageSourceEvent extends Event {
|
|
|
42
42
|
image: import("../Image.js").default;
|
|
43
43
|
}
|
|
44
44
|
export default ImageSource;
|
|
45
|
-
export type ImageSourceEventTypes =
|
|
45
|
+
export type ImageSourceEventTypes = "imageloadend" | "imageloaderror" | "imageloadstart";
|
|
46
46
|
/**
|
|
47
47
|
* *
|
|
48
48
|
*/
|
|
@@ -169,8 +169,9 @@ declare class ImageSource extends Source {
|
|
|
169
169
|
private wantedProjection_;
|
|
170
170
|
/**
|
|
171
171
|
* @return {Array<number>|null} Resolutions.
|
|
172
|
+
* @override
|
|
172
173
|
*/
|
|
173
|
-
getResolutions(): Array<number> | null;
|
|
174
|
+
override getResolutions(): Array<number> | null;
|
|
174
175
|
/**
|
|
175
176
|
* @param {Array<number>|null} resolutions Resolutions.
|
|
176
177
|
*/
|
package/source/Image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["Image.js"],"names":[],"mappings":"AAoVA;;;;;GAKG;AACH,gDAHW,OAAO,aAAa,EAAE,OAAO,OAC7B,MAAM,QAIhB;AAED;;;;;;;GAOG;AACH,yCANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,SACN,MAAM,GACL,OAAO,cAAc,EAAE,MAAM,CAexC;mCA3VS,MAAM;;;;;;AAyBhB;;GAEG;AAEH;;;;GAIG;AACH;IACE;;;OAGG;IACH,kBAHW,MAAM,SACN,OAAO,aAAa,EAAE,OAAO,EAWvC;IANC;;;;OAIG;IACH,OAHU,OAAO,aAAa,EAAE,OAAO,CAGrB;CAErB;;oCAvBY,cAAc,GAAC,gBAAgB,GAAC,gBAAgB;;;;mCA0BhD,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,WAAW,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,CAAC,GACxF,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GAC9G,qBAAqB,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;iBAYxB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;kBA1F/B,oBAAoB;AAwEtC;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgFjB;IArEC;;OAEG;IACH,IAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAEP;;OAEG;IACH,MAFU,sBAAsB,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAEtD;IAET;;OAEG;IACH,IAFU,sBAAsB,CAAC,IAAI,CAAC,CAE/B;IAEP;;;OAGG;IACH,kBAFU,OAAO,aAAa,EAAE,MAAM,CAEF;IAEpC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,6BAA6B;IAE7B;;;OAGG;IACH,iBAFU,OAAO,aAAa,EAAE,OAAO,CAEtB;IAEjB;;;OAGG;IACH,sBAAkB;IAElB;;;OAGG;IACH,0BAAsB;IAEtB;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,0BAA6B;IAG/B;;;OAGG;IACH,2BAHY,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI,CAK7B;IAED;;OAEG;IACH,4BAFW,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI,QAI5B;IAED;;;;OAIG;IACH,4CAHW,MAAM,GACL,MAAM,CASjB;IAED;;;;;;OAMG;IACH,iBANW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAyCxC;IAED;;;;;;;;OAQG;IACH,mCAPW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,aAAa,EAAE,OAAO,CAqCxC;IAED;;;;OAIG;IACH,mCAHW,OAAO,oBAAoB,EAAE,OAAO,QAyB9C;CACF;mBA1UkB,aAAa"}
|
package/source/Image.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,2CAmEC;IAzDC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAE/D;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;
|
|
1
|
+
{"version":3,"file":"ImageArcGISRest.d.ts","sourceRoot":"","sources":["ImageArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0Bc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;AAlBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,2CAmEC;IAzDC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,mBAAwB;IAExB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAE/D;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;IAmCD;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,UAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAM5C;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,SAAS,QAS1B;IAED;;;;OAIG;IACH,gCAGC;CASF;wBA3NmD,YAAY"}
|
|
@@ -136,6 +136,7 @@ class ImageArcGISRest extends ImageSource {
|
|
|
136
136
|
* @param {number} pixelRatio Pixel ratio.
|
|
137
137
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
138
138
|
* @return {import("../Image.js").default} Single image.
|
|
139
|
+
* @override
|
|
139
140
|
*/
|
|
140
141
|
getImageInternal(extent, resolution, pixelRatio, projection) {
|
|
141
142
|
if (this.url_ === undefined) {
|
|
@@ -213,6 +214,9 @@ class ImageArcGISRest extends ImageSource {
|
|
|
213
214
|
this.changed();
|
|
214
215
|
}
|
|
215
216
|
|
|
217
|
+
/**
|
|
218
|
+
* @override
|
|
219
|
+
*/
|
|
216
220
|
changed() {
|
|
217
221
|
this.image = null;
|
|
218
222
|
super.changed();
|
package/source/ImageCanvas.d.ts
CHANGED
|
@@ -119,8 +119,9 @@ declare class ImageCanvasSource extends ImageSource {
|
|
|
119
119
|
* @param {number} pixelRatio Pixel ratio.
|
|
120
120
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
121
121
|
* @return {import("../ImageCanvas.js").default} Single image.
|
|
122
|
+
* @override
|
|
122
123
|
*/
|
|
123
|
-
getImageInternal(extent: import("../extent.js").Extent, resolution: number, pixelRatio: number, projection: import("../proj/Projection.js").default): import("../ImageCanvas.js").default;
|
|
124
|
+
override getImageInternal(extent: import("../extent.js").Extent, resolution: number, pixelRatio: number, projection: import("../proj/Projection.js").default): import("../ImageCanvas.js").default;
|
|
124
125
|
}
|
|
125
126
|
import ImageSource from './Image.js';
|
|
126
127
|
//# sourceMappingURL=ImageCanvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;;;;2BAsBa,CAAS,IAAwC,EAAnC,OAAO,mBAAmB,EAAE,OAAO,EAAE,IAA6B,EAA7B,OAAO,cAAc,EAAE,MAAM,EAAE,IAAM,EAAN,MAAM,EACpG,IAAY,EAAZ,MAAY,EAAE,IAAyB,EAAzB,OAAO,YAAY,EAAE,IAAI,EAAE,IAAuC,EAAvC,OAAO,uBAAuB,EAAE,OAAO,KAAG,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiBvF,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;AA3BjD;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CAkCC;IAvBC;;;OAGG;IACH,wBAA6C;IAE7C;;;OAGG;IACH,gBAAmB;IAEnB;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,eAA+D;IAGjE;;;;;;;OAOG;IACH,kCAPW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,OAAO,mBAAmB,EAAE,OAAO,CAsC9C;CACF;wBApIuB,YAAY"}
|
package/source/ImageCanvas.js
CHANGED
|
@@ -97,6 +97,7 @@ class ImageCanvasSource extends ImageSource {
|
|
|
97
97
|
* @param {number} pixelRatio Pixel ratio.
|
|
98
98
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
99
99
|
* @return {import("../ImageCanvas.js").default} Single image.
|
|
100
|
+
* @override
|
|
100
101
|
*/
|
|
101
102
|
getImageInternal(extent, resolution, pixelRatio, projection) {
|
|
102
103
|
resolution = this.findNearestResolution(resolution);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAiFjB;IAxEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,oBAC4D;IAE5D;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,uBACiE;IAEjE;;;OAGG;IACH,eAA6D;IAE7D;;;OAGG;IACH,oBAC+D;IAE/D;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;
|
|
1
|
+
{"version":3,"file":"ImageMapGuide.d.ts","sourceRoot":"","sources":["ImageMapGuide.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAiFjB;IAxEC;;;OAGG;IACH,qBACgE;IAEhE;;;OAGG;IACH,oBAC4D;IAE5D;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,2BAG8B;IAE9B;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,uBACiE;IAEjE;;;OAGG;IACH,eAA6D;IAE7D;;;OAGG;IACH,oBAC+D;IAE/D;;;OAGG;IACH,0BAA0B;IAE1B;;;OAGG;IACH,0BAA6B;IAG/B;;;;;OAKG;IACH,iBAEC;IAoCD;;;;OAIG;IACH,wBAHY,OAAO,aAAa,EAAE,YAAY,CAK7C;IAED;;;;OAIG;IACH,gCAGC;IAED;;;;OAIG;IACH,wCAHW,OAAO,aAAa,EAAE,YAAY,QAM5C;CASF;wBAtMmD,YAAY"}
|
package/source/ImageMapGuide.js
CHANGED
|
@@ -136,6 +136,7 @@ class ImageMapGuide extends ImageSource {
|
|
|
136
136
|
* @param {number} pixelRatio Pixel ratio.
|
|
137
137
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
138
138
|
* @return {import("../Image.js").default} Single image.
|
|
139
|
+
* @override
|
|
139
140
|
*/
|
|
140
141
|
getImageInternal(extent, resolution, pixelRatio, projection) {
|
|
141
142
|
if (this.url_ === undefined) {
|
|
@@ -192,6 +193,9 @@ class ImageMapGuide extends ImageSource {
|
|
|
192
193
|
this.changed();
|
|
193
194
|
}
|
|
194
195
|
|
|
196
|
+
/**
|
|
197
|
+
* @override
|
|
198
|
+
*/
|
|
195
199
|
changed() {
|
|
196
200
|
this.image = null;
|
|
197
201
|
super.changed();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;iBAiBc,OAAO,cAAc,EAAE,MAAM;;;;;;;;;;;;;iBAK7B,OAAO,YAAY,EAAE,cAAc;;;;SACnC,MAAM;;AAZpB;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAuDjB;IAtCC;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,qBAAuC;IA8BzC;;;;OAIG;IACH,kBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;
|
|
1
|
+
{"version":3,"file":"ImageStatic.d.ts","sourceRoot":"","sources":["ImageStatic.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;iBAiBc,OAAO,cAAc,EAAE,MAAM;;;;;;;;;;;;;iBAK7B,OAAO,YAAY,EAAE,cAAc;;;;SACnC,MAAM;;AAZpB;;;;;;;;;;;;;GAaG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAuDjB;IAtCC;;;OAGG;IACH,aAAuB;IAEvB;;;OAGG;IACH,qBAAuC;IA8BzC;;;;OAIG;IACH,kBAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAiBD;;;;OAIG;IACH,UAHY,MAAM,CAKjB;CACF;wBArHmD,YAAY"}
|
package/source/ImageStatic.js
CHANGED
|
@@ -103,6 +103,7 @@ class Static extends ImageSource {
|
|
|
103
103
|
* @param {number} pixelRatio Pixel ratio.
|
|
104
104
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
105
105
|
* @return {import("../Image.js").default} Single image.
|
|
106
|
+
* @override
|
|
106
107
|
*/
|
|
107
108
|
getImageInternal(extent, resolution, pixelRatio, projection) {
|
|
108
109
|
if (intersects(extent, this.image.getExtent())) {
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export default ImageTileSource;
|
|
2
|
+
/**
|
|
3
|
+
* Image tile loading function. The function is called with z, x, and y tile coordinates and
|
|
4
|
+
* returns an {@link import ("../DataTile.js").ImageLike image} or a promise for the same.
|
|
5
|
+
*/
|
|
6
|
+
export type Loader = (arg0: number, arg1: number, arg2: number, arg3: import("./DataTile.js").LoaderOptions) => (import("../DataTile.js").ImageLike | Promise<import("../DataTile.js").ImageLike>);
|
|
7
|
+
export type UrlGetter = (arg0: number, arg1: number, arg2: number, arg3: import("./DataTile.js").LoaderOptions) => string;
|
|
8
|
+
export type UrlLike = string | Array<string> | UrlGetter;
|
|
9
|
+
export type Options = {
|
|
10
|
+
/**
|
|
11
|
+
* The image URL template. In addition to a single URL template, an array of URL templates or a function
|
|
12
|
+
* can be provided. If a function is provided, it will be called with z, x, y tile coordinates and loader options and should
|
|
13
|
+
* return a URL.
|
|
14
|
+
*/
|
|
15
|
+
url?: UrlLike | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Data loader. Called with z, x, and y tile coordinates.
|
|
18
|
+
* Returns an {@link import ("../DataTile.js").ImageLike image} for a tile or a promise for the same.
|
|
19
|
+
* The promise should not resolve until the image is loaded. If the `url` option is provided, a loader will be created.
|
|
20
|
+
*/
|
|
21
|
+
loader?: Loader | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Attributions.
|
|
24
|
+
*/
|
|
25
|
+
attributions?: import("./Source.js").AttributionLike | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Attributions are collapsible.
|
|
28
|
+
*/
|
|
29
|
+
attributionsCollapsible?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Optional max zoom level. Not used if `tileGrid` is provided.
|
|
32
|
+
*/
|
|
33
|
+
maxZoom?: number | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Optional min zoom level. Not used if `tileGrid` is provided.
|
|
36
|
+
*/
|
|
37
|
+
minZoom?: number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The pixel width and height of the source tiles.
|
|
40
|
+
* This may be different than the rendered pixel size if a `tileGrid` is provided.
|
|
41
|
+
*/
|
|
42
|
+
tileSize?: number | import("../size.js").Size | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The size in pixels of the gutter around data tiles to ignore.
|
|
45
|
+
* This allows artifacts of rendering at tile edges to be ignored.
|
|
46
|
+
* Supported data should be wider and taller than the tile size by a value of `2 x gutter`.
|
|
47
|
+
*/
|
|
48
|
+
gutter?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Optional tile grid resolution at level zero. Not used if `tileGrid` is provided.
|
|
51
|
+
*/
|
|
52
|
+
maxResolution?: number | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Tile projection.
|
|
55
|
+
*/
|
|
56
|
+
projection?: import("../proj.js").ProjectionLike;
|
|
57
|
+
/**
|
|
58
|
+
* Tile grid.
|
|
59
|
+
*/
|
|
60
|
+
tileGrid?: import("../tilegrid/TileGrid.js").default | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The source state.
|
|
63
|
+
*/
|
|
64
|
+
state?: import("./Source.js").State | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Render tiles beyond the antimeridian.
|
|
67
|
+
*/
|
|
68
|
+
wrapX?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Transition time when fading in new tiles (in miliseconds).
|
|
71
|
+
*/
|
|
72
|
+
transition?: number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Use interpolated values when resampling.
|
|
75
|
+
*/
|
|
76
|
+
interpolate?: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The crossOrigin property to pass to loaders for image data.
|
|
79
|
+
*/
|
|
80
|
+
crossOrigin?: import("./DataTile.js").CrossOriginAttribute | undefined;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* @classdesc
|
|
84
|
+
* A source for typed array data tiles.
|
|
85
|
+
*
|
|
86
|
+
* @extends DataTileSource<import("../ImageTile.js").default>
|
|
87
|
+
* @fires import("./Tile.js").TileSourceEvent
|
|
88
|
+
* @api
|
|
89
|
+
*/
|
|
90
|
+
declare class ImageTileSource extends DataTileSource<import("../ImageTile.js").default> {
|
|
91
|
+
/**
|
|
92
|
+
* @param {Options} [options] DataTile source options.
|
|
93
|
+
*/
|
|
94
|
+
constructor(options?: Options | undefined);
|
|
95
|
+
/**
|
|
96
|
+
* @param {UrlLike} url The new URL.
|
|
97
|
+
* @api
|
|
98
|
+
*/
|
|
99
|
+
setUrl(url: UrlLike): void;
|
|
100
|
+
}
|
|
101
|
+
import DataTileSource from './DataTile.js';
|
|
102
|
+
//# sourceMappingURL=ImageTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageTile.d.ts","sourceRoot":"","sources":["ImageTile.js"],"names":[],"mappings":";;;;;qBAUa,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,CAAC,OAAO,gBAAgB,EAAE,SAAS,GAAC,OAAO,CAAC,OAAO,gBAAgB,EAAE,SAAS,CAAC,CAAC;wBAIxJ,CAAS,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAM,EAAN,MAAM,EAAE,IAAqC,EAArC,OAAO,eAAe,EAAE,aAAa,KAAE,MAAM;sBAI9E,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBjC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FjD;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CA2CC;IAED;;;OAGG;IACH,YAHW,OAAO,QAUjB;CACF;2BAxM0B,eAAe"}
|