ol 9.2.5-sh.1 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Collection.d.ts +1 -1
- package/Collection.d.ts.map +1 -1
- package/DataTile.d.ts +15 -1
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +26 -1
- package/Feature.d.ts +1 -1
- package/Feature.d.ts.map +1 -1
- package/Geolocation.d.ts +2 -2
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +1 -0
- package/Image.d.ts +4 -4
- package/Image.d.ts.map +1 -1
- package/ImageCanvas.d.ts +2 -1
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +2 -0
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +1 -1
- package/Map.d.ts +5 -4
- package/Map.d.ts.map +1 -1
- package/Map.js +15 -14
- package/MapBrowserEvent.d.ts +4 -2
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +4 -0
- package/MapBrowserEventHandler.d.ts +4 -1
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +4 -0
- package/MapBrowserEventType.d.ts +1 -1
- package/MapEvent.d.ts.map +1 -1
- package/MapEventType.d.ts +1 -1
- package/Object.d.ts.map +1 -1
- package/ObjectEventType.d.ts +1 -1
- package/Observable.d.ts +2 -2
- package/Observable.d.ts.map +1 -1
- package/Overlay.d.ts +2 -2
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +2 -2
- package/README.md +1 -1
- package/Tile.d.ts +10 -30
- package/Tile.d.ts.map +1 -1
- package/Tile.js +6 -79
- package/TileCache.d.ts +2 -1
- package/TileCache.d.ts.map +1 -1
- package/TileCache.js +4 -0
- package/TileQueue.d.ts +3 -2
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +7 -4
- package/VectorRenderTile.d.ts +11 -16
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorRenderTile.js +19 -24
- package/VectorTile.d.ts +20 -17
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +14 -10
- package/View.d.ts +1 -1
- package/View.d.ts.map +1 -1
- package/array.d.ts +2 -2
- package/array.d.ts.map +1 -1
- package/asserts.d.ts.map +1 -1
- package/centerconstraint.d.ts.map +1 -1
- package/color.d.ts.map +1 -1
- package/color.js +2 -2
- package/console.d.ts +1 -1
- package/console.d.ts.map +1 -1
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +5 -12
- package/control/Control.d.ts.map +1 -1
- package/control/Control.js +4 -6
- package/control/FullScreen.d.ts +1 -1
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +1 -0
- package/control/MousePosition.d.ts +1 -1
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +1 -0
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +16 -13
- package/control/Rotate.d.ts +4 -1
- package/control/Rotate.d.ts.map +1 -1
- package/control/Rotate.js +3 -0
- package/control/ScaleLine.d.ts +3 -3
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +1 -0
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/defaults.d.ts.map +1 -1
- package/coordinate.d.ts +1 -1
- package/coordinate.d.ts.map +1 -1
- package/css.d.ts.map +1 -1
- package/dist/ol.d.ts +10 -8
- package/dist/ol.d.ts.map +1 -1
- package/dist/ol.js +1 -3
- package/dist/ol.js.map +1 -1
- package/dom.d.ts +0 -5
- package/dom.d.ts.map +1 -1
- package/dom.js +1 -9
- package/events/SnapEvent.d.ts.map +1 -1
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +1 -0
- package/events/condition.d.ts +2 -2
- package/events/condition.d.ts.map +1 -1
- package/events/condition.js +1 -1
- package/events.d.ts.map +1 -1
- package/events.js +6 -4
- package/expr/cpu.d.ts +1 -1
- package/expr/cpu.d.ts.map +1 -1
- package/expr/cpu.js +2 -16
- package/expr/expression.d.ts +8 -15
- package/expr/expression.d.ts.map +1 -1
- package/expr/expression.js +388 -508
- package/expr/gpu.d.ts +3 -3
- package/expr/gpu.d.ts.map +1 -1
- package/expr/gpu.js +1 -14
- package/extent.d.ts +2 -2
- package/extent.d.ts.map +1 -1
- package/featureloader.d.ts +10 -10
- package/featureloader.d.ts.map +1 -1
- package/featureloader.js +6 -6
- package/format/EsriJSON.d.ts +9 -12
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +7 -0
- package/format/Feature.d.ts +14 -14
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +8 -6
- package/format/GML2.d.ts.map +1 -1
- package/format/GML2.js +7 -9
- package/format/GML3.d.ts +2 -1
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +23 -31
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +1 -0
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +3 -0
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +3 -0
- package/format/GeoJSON.d.ts +17 -13
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +25 -17
- package/format/IGC.d.ts +1 -1
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +2 -0
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/JSONFeature.d.ts +15 -31
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +20 -16
- package/format/KML.d.ts +6 -6
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +5 -1
- package/format/MVT.d.ts +15 -13
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +19 -20
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +1 -0
- package/format/OWS.d.ts.map +1 -1
- package/format/OWS.js +1 -0
- package/format/Polyline.d.ts +6 -3
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +6 -0
- package/format/TextFeature.d.ts +9 -14
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +8 -0
- package/format/TopoJSON.d.ts +1 -8
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +2 -0
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +3 -0
- package/format/WKB.d.ts +9 -5
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +8 -0
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +6 -0
- package/format/WMSCapabilities.d.ts.map +1 -1
- package/format/WMSCapabilities.js +1 -0
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +1 -0
- package/format/WMTSCapabilities.d.ts.map +1 -1
- package/format/WMTSCapabilities.js +1 -0
- package/format/XMLFeature.d.ts +11 -15
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +8 -0
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Comparison.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/During.d.ts.map +1 -1
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/Filter.d.ts.map +1 -1
- package/format/filter/GreaterThan.d.ts.map +1 -1
- package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/IsBetween.d.ts.map +1 -1
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsNull.d.ts.map +1 -1
- package/format/filter/LessThan.d.ts.map +1 -1
- package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/LogicalNary.d.ts.map +1 -1
- package/format/filter/Not.d.ts.map +1 -1
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/ResourceId.d.ts.map +1 -1
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter.d.ts.map +1 -1
- package/functions.d.ts +2 -2
- package/functions.d.ts.map +1 -1
- package/functions.js +6 -5
- package/geom/Circle.d.ts +10 -3
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +13 -0
- package/geom/Geometry.d.ts +2 -2
- package/geom/GeometryCollection.d.ts +6 -3
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +13 -0
- package/geom/LineString.d.ts +9 -5
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +7 -0
- package/geom/LinearRing.d.ts +8 -4
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +7 -0
- package/geom/MultiLineString.d.ts +8 -4
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +7 -0
- package/geom/MultiPoint.d.ts +6 -3
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +6 -0
- package/geom/MultiPolygon.d.ts +8 -4
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +8 -0
- package/geom/Point.d.ts +4 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +7 -0
- package/geom/Polygon.d.ts +8 -4
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +8 -0
- package/geom/SimpleGeometry.d.ts +2 -1
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +6 -0
- package/geom/flat/area.d.ts.map +1 -1
- package/geom/flat/area.js +9 -7
- package/geom/flat/center.d.ts.map +1 -1
- package/geom/flat/closest.d.ts.map +1 -1
- package/geom/flat/contains.d.ts.map +1 -1
- package/geom/flat/deflate.d.ts.map +1 -1
- package/geom/flat/flip.d.ts.map +1 -1
- package/geom/flat/geodesic.d.ts.map +1 -1
- package/geom/flat/inflate.d.ts.map +1 -1
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/intersectsextent.d.ts.map +1 -1
- package/geom/flat/length.d.ts.map +1 -1
- package/geom/flat/linechunk.d.ts.map +1 -1
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/reverse.d.ts.map +1 -1
- package/geom/flat/segments.d.ts +1 -1
- package/geom/flat/segments.d.ts.map +1 -1
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/straightchunk.d.ts.map +1 -1
- package/geom/flat/textpath.d.ts.map +1 -1
- package/geom/flat/topology.d.ts.map +1 -1
- package/geom/flat/transform.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.d.ts.map +1 -1
- package/interaction/DblClickDragZoom.js +1 -0
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +1 -0
- package/interaction/DragAndDrop.d.ts +4 -3
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +2 -0
- package/interaction/DragBox.d.ts +3 -3
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +6 -2
- package/interaction/DragPan.d.ts +6 -4
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +6 -1
- package/interaction/DragRotate.d.ts +3 -3
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +5 -2
- package/interaction/DragRotateAndZoom.d.ts +2 -2
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +4 -1
- package/interaction/DragZoom.d.ts +3 -3
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +3 -2
- package/interaction/Draw.d.ts +9 -8
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +9 -5
- package/interaction/Extent.d.ts +4 -3
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +6 -1
- package/interaction/Interaction.d.ts +1 -1
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/KeyboardPan.d.ts +2 -2
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +2 -1
- package/interaction/KeyboardZoom.d.ts +2 -2
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +2 -1
- package/interaction/Link.d.ts +1 -1
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +4 -0
- package/interaction/Modify.d.ts +15 -12
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +11 -3
- package/interaction/MouseWheelZoom.d.ts +3 -3
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +2 -1
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -0
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -0
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +1 -0
- package/interaction/Select.d.ts +14 -15
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +8 -6
- package/interaction/Snap.d.ts +3 -2
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +3 -0
- package/interaction/Translate.d.ts +11 -10
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +9 -4
- package/interaction/defaults.d.ts.map +1 -1
- package/layer/Base.d.ts +1 -1
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +1 -0
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseTile.d.ts +22 -5
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +23 -3
- package/layer/BaseVector.d.ts +7 -6
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +9 -4
- package/layer/Graticule.d.ts +5 -3
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +2 -1
- package/layer/Group.d.ts +2 -2
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +3 -0
- package/layer/Heatmap.d.ts +16 -10
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +25 -12
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +4 -0
- package/layer/Layer.d.ts +4 -4
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +7 -8
- package/layer/Tile.d.ts +6 -3
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +7 -2
- package/layer/Vector.d.ts +19 -9
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +15 -5
- package/layer/VectorImage.d.ts +9 -7
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +9 -4
- package/layer/VectorTile.d.ts +50 -15
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +51 -12
- package/layer/WebGLPoints.d.ts +1 -2
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +3 -0
- package/layer/WebGLTile.d.ts +9 -12
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +20 -21
- package/loadingstrategy.d.ts.map +1 -1
- package/math.d.ts.map +1 -1
- package/net.d.ts.map +1 -1
- package/obj.d.ts.map +1 -1
- package/ol.css +4 -0
- package/package.json +4 -4
- package/pixel.d.ts.map +1 -1
- package/proj/Projection.d.ts +1 -1
- package/proj/Projection.d.ts.map +1 -1
- package/proj/Units.d.ts +1 -1
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg4326.d.ts.map +1 -1
- package/proj/proj4.d.ts.map +1 -1
- package/proj.d.ts.map +1 -1
- package/render/Box.d.ts.map +1 -1
- package/render/Box.js +1 -0
- package/render/Event.d.ts.map +1 -1
- package/render/EventType.d.ts +2 -2
- package/render/Feature.d.ts +6 -4
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +2 -0
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/Builder.js +2 -0
- package/render/canvas/BuilderGroup.d.ts.map +1 -1
- package/render/canvas/Executor.d.ts +6 -27
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +7 -13
- package/render/canvas/ExecutorGroup.d.ts +4 -5
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +2 -1
- package/render/canvas/ImageBuilder.d.ts +2 -1
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +4 -0
- package/render/canvas/Immediate.d.ts +24 -12
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +14 -0
- package/render/canvas/Instruction.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/LineStringBuilder.js +4 -0
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.js +4 -0
- package/render/canvas/TextBuilder.d.ts +4 -2
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +4 -0
- package/render/canvas/ZIndexContext.d.ts +2 -1
- package/render/canvas/ZIndexContext.d.ts.map +1 -1
- package/render/canvas/ZIndexContext.js +1 -0
- package/render/canvas/hitdetect.d.ts +1 -1
- package/render/canvas/hitdetect.d.ts.map +1 -1
- package/render/canvas/style.d.ts +3 -3
- package/render/canvas/style.d.ts.map +1 -1
- package/render/canvas/style.js +6 -5
- package/render/canvas.d.ts +1 -1
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +2 -1
- package/render/webgl/MixedGeometryBatch.d.ts +4 -1
- package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
- package/render/webgl/MixedGeometryBatch.js +4 -0
- package/render/webgl/VectorStyleRenderer.d.ts +56 -30
- package/render/webgl/VectorStyleRenderer.d.ts.map +1 -1
- package/render/webgl/VectorStyleRenderer.js +39 -0
- package/render/webgl/renderinstructions.d.ts +4 -4
- package/render/webgl/utils.d.ts +1 -1
- package/render/webgl/utils.d.ts.map +1 -1
- package/render.d.ts.map +1 -1
- package/renderer/Composite.d.ts +3 -2
- package/renderer/Composite.d.ts.map +1 -1
- package/renderer/Composite.js +10 -4
- package/renderer/Layer.d.ts +22 -29
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +33 -37
- package/renderer/Map.d.ts +1 -1
- package/renderer/Map.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.d.ts +6 -4
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +12 -9
- package/renderer/canvas/Layer.d.ts +4 -9
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +1 -6
- package/renderer/canvas/TileLayer.d.ts +106 -42
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +546 -330
- package/renderer/canvas/VectorImageLayer.d.ts +7 -4
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +10 -3
- package/renderer/canvas/VectorLayer.d.ts +7 -4
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +8 -0
- package/renderer/canvas/VectorTileLayer.d.ts +18 -16
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +79 -54
- package/renderer/vector.d.ts.map +1 -1
- package/renderer/webgl/Layer.d.ts +1 -6
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +2 -6
- package/renderer/webgl/PointsLayer.d.ts +23 -8
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +22 -1
- package/renderer/webgl/TileLayer.d.ts +16 -5
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +18 -0
- package/renderer/webgl/TileLayerBase.d.ts +7 -16
- package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
- package/renderer/webgl/TileLayerBase.js +69 -84
- package/renderer/webgl/VectorLayer.d.ts +32 -8
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +53 -0
- package/renderer/webgl/VectorTileLayer.d.ts +34 -29
- package/renderer/webgl/VectorTileLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorTileLayer.js +27 -0
- package/renderer/webgl/worldUtil.d.ts.map +1 -1
- package/reproj/DataTile.d.ts.map +1 -1
- package/reproj/DataTile.js +121 -119
- package/reproj/Image.d.ts +2 -1
- package/reproj/Image.d.ts.map +1 -1
- package/reproj/Image.js +4 -2
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +16 -19
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj.d.ts +1 -1
- package/reproj.d.ts.map +1 -1
- package/resolution.d.ts.map +1 -1
- package/resolutionconstraint.d.ts.map +1 -1
- package/rotationconstraint.d.ts.map +1 -1
- package/size.d.ts.map +1 -1
- package/source/BingMaps.d.ts +3 -3
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +1 -2
- package/source/CartoDB.d.ts +2 -2
- package/source/CartoDB.d.ts.map +1 -1
- package/source/CartoDB.js +1 -1
- package/source/Cluster.d.ts +5 -5
- package/source/Cluster.d.ts.map +1 -1
- package/source/Cluster.js +5 -2
- package/source/DataTile.d.ts +51 -22
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +67 -9
- package/source/GeoTIFF.d.ts +4 -7
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/GeoTIFF.js +4 -3
- package/source/Google.d.ts +2 -1
- package/source/Google.d.ts.map +1 -1
- package/source/Google.js +4 -2
- package/source/IIIF.d.ts +1 -1
- package/source/IIIF.js +1 -1
- package/source/Image.d.ts +3 -2
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +1 -0
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +4 -0
- package/source/ImageCanvas.d.ts +2 -1
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +1 -0
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +4 -0
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +1 -0
- package/source/ImageTile.d.ts +102 -0
- package/source/ImageTile.d.ts.map +1 -0
- package/source/ImageTile.js +206 -0
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +4 -0
- package/source/OGCMapTile.d.ts +2 -2
- package/source/OGCMapTile.js +1 -1
- package/source/OGCVectorTile.d.ts +9 -9
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OGCVectorTile.js +4 -4
- package/source/OSM.d.ts +2 -7
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +1 -3
- package/source/Raster.d.ts +41 -26
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +83 -102
- package/source/Source.d.ts +1 -1
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +5 -14
- package/source/StadiaMaps.d.ts +2 -2
- package/source/StadiaMaps.d.ts.map +1 -1
- package/source/StadiaMaps.js +2 -18
- package/source/Tile.d.ts +7 -36
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +9 -69
- package/source/TileArcGISRest.d.ts +2 -2
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +2 -1
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +0 -1
- package/source/TileEventType.d.ts +1 -1
- package/source/TileImage.d.ts +9 -12
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +21 -43
- package/source/TileJSON.d.ts +2 -2
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileJSON.js +1 -1
- package/source/TileWMS.d.ts +2 -2
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +3 -4
- package/source/UTFGrid.d.ts +5 -3
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +7 -8
- package/source/UrlTile.d.ts +16 -13
- package/source/UrlTile.d.ts.map +1 -1
- package/source/UrlTile.js +13 -7
- package/source/Vector.d.ts +21 -21
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +16 -13
- package/source/VectorEventType.d.ts +1 -1
- package/source/VectorTile.d.ts +13 -24
- package/source/VectorTile.d.ts.map +1 -1
- package/source/VectorTile.js +19 -87
- package/source/WMTS.d.ts +3 -3
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +5 -4
- package/source/XYZ.d.ts +14 -17
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +8 -8
- package/source/Zoomify.d.ts +5 -4
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +5 -2
- package/source/arcgisRest.d.ts +4 -4
- package/source/arcgisRest.d.ts.map +1 -1
- package/source/arcgisRest.js +5 -5
- package/source/mapguide.d.ts +3 -3
- package/source/mapguide.d.ts.map +1 -1
- package/source/mapguide.js +11 -8
- package/source/ogcTileUtil.d.ts +2 -2
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +7 -7
- package/source/static.d.ts +3 -3
- package/source/static.d.ts.map +1 -1
- package/source/static.js +7 -7
- package/source/wms.d.ts +2 -2
- package/source/wms.d.ts.map +1 -1
- package/source/wms.js +16 -19
- package/source.d.ts +1 -0
- package/source.d.ts.map +1 -1
- package/source.js +1 -0
- package/sphere.d.ts +1 -1
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/PriorityQueue.d.ts.map +1 -1
- package/structs/RBush.d.ts +10 -32
- package/structs/RBush.d.ts.map +1 -1
- package/structs/RBush.js +9 -12
- package/style/Circle.d.ts +2 -1
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +2 -1
- package/style/Fill.d.ts +3 -3
- package/style/Fill.d.ts.map +1 -1
- package/style/Fill.js +1 -1
- package/style/Icon.d.ts +8 -5
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +21 -0
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +3 -2
- package/style/IconImageCache.d.ts.map +1 -1
- package/style/Image.d.ts +3 -3
- package/style/Image.d.ts.map +1 -1
- package/style/RegularShape.d.ts +11 -5
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +23 -5
- package/style/Stroke.d.ts.map +1 -1
- package/style/Style.d.ts +5 -5
- package/style/Style.d.ts.map +1 -1
- package/style/Style.js +2 -2
- package/style/Text.d.ts +2 -2
- package/style/Text.d.ts.map +1 -1
- package/style/flat.d.ts.map +1 -1
- package/style/webgl.d.ts.map +1 -1
- package/tilecoord.d.ts +7 -0
- package/tilecoord.d.ts.map +1 -1
- package/tilecoord.js +11 -1
- package/tilegrid/TileGrid.d.ts +1 -1
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid/WMTS.js +1 -1
- package/tileurlfunction.d.ts +3 -7
- package/tileurlfunction.d.ts.map +1 -1
- package/tileurlfunction.js +14 -47
- package/transform.d.ts +15 -15
- package/transform.d.ts.map +1 -1
- package/uri.d.ts +23 -3
- package/uri.d.ts.map +1 -1
- package/uri.js +75 -0
- package/util.d.ts.map +1 -1
- package/util.js +1 -1
- package/vec/mat4.d.ts.map +1 -1
- package/webgl/BaseTileRepresentation.d.ts +3 -3
- package/webgl/BaseTileRepresentation.d.ts.map +1 -1
- package/webgl/BaseTileRepresentation.js +9 -2
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +1 -0
- package/webgl/PostProcessingPass.d.ts +48 -12
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +42 -6
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/ShaderBuilder.d.ts +1 -1
- package/webgl/TileGeometry.d.ts.map +1 -1
- package/webgl/TileGeometry.js +4 -1
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +14 -8
- package/webgl/styleparser.d.ts.map +1 -1
- package/webgl/styleparser.js +54 -66
- package/webgl.d.ts.map +1 -1
- package/worker/webgl.js +1 -1
- package/xml.d.ts.map +1 -1
- package/xml.js +27 -39
- package/source/SentinelHub.d.ts +0 -507
- package/source/SentinelHub.d.ts.map +0 -1
- package/source/SentinelHub.js +0 -616
- package/structs/LinkedList.d.ts +0 -130
- package/structs/LinkedList.d.ts.map +0 -1
- package/structs/LinkedList.js +0 -259
package/source/Tile.js
CHANGED
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
import Event from '../events/Event.js';
|
|
5
5
|
import Source from './Source.js';
|
|
6
6
|
import TileCache from '../TileCache.js';
|
|
7
|
-
import TileState from '../TileState.js';
|
|
8
7
|
import {abstract} from '../util.js';
|
|
9
8
|
import {assert} from '../asserts.js';
|
|
10
9
|
import {equivalent} from '../proj.js';
|
|
11
|
-
import {getKeyZXY, withinExtentAndZ} from '../tilecoord.js';
|
|
12
10
|
import {
|
|
13
11
|
getForProjection as getTileGridForProjection,
|
|
14
12
|
wrapX,
|
|
15
13
|
} from '../tilegrid.js';
|
|
16
14
|
import {scale as scaleSize, toSize} from '../size.js';
|
|
15
|
+
import {withinExtentAndZ} from '../tilecoord.js';
|
|
17
16
|
|
|
18
17
|
/***
|
|
19
18
|
* @template Return
|
|
@@ -28,8 +27,7 @@ import {scale as scaleSize, toSize} from '../size.js';
|
|
|
28
27
|
* @typedef {Object} Options
|
|
29
28
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
30
29
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
31
|
-
* @property {number} [cacheSize]
|
|
32
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
30
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
33
31
|
* @property {number} [tilePixelRatio] TilePixelRatio.
|
|
34
32
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection.
|
|
35
33
|
* @property {import("./Source.js").State} [state] State.
|
|
@@ -47,6 +45,8 @@ import {scale as scaleSize, toSize} from '../size.js';
|
|
|
47
45
|
* Abstract base class; normally only used for creating subclasses and not
|
|
48
46
|
* instantiated in apps.
|
|
49
47
|
* Base class for sources providing images divided into a tile grid.
|
|
48
|
+
*
|
|
49
|
+
* @template {import("../Tile.js").default} [TileType=import("../Tile.js").default]
|
|
50
50
|
* @abstract
|
|
51
51
|
* @api
|
|
52
52
|
*/
|
|
@@ -79,12 +79,6 @@ class TileSource extends Source {
|
|
|
79
79
|
*/
|
|
80
80
|
this.un;
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* @private
|
|
84
|
-
* @type {boolean}
|
|
85
|
-
*/
|
|
86
|
-
this.opaque_ = options.opaque !== undefined ? options.opaque : false;
|
|
87
|
-
|
|
88
82
|
/**
|
|
89
83
|
* @private
|
|
90
84
|
* @type {number}
|
|
@@ -157,44 +151,6 @@ class TileSource extends Source {
|
|
|
157
151
|
}
|
|
158
152
|
}
|
|
159
153
|
|
|
160
|
-
/**
|
|
161
|
-
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
162
|
-
* @param {number} z Zoom level.
|
|
163
|
-
* @param {import("../TileRange.js").default} tileRange Tile range.
|
|
164
|
-
* @param {function(import("../Tile.js").default):(boolean|void)} callback Called with each
|
|
165
|
-
* loaded tile. If the callback returns `false`, the tile will not be
|
|
166
|
-
* considered loaded.
|
|
167
|
-
* @return {boolean} The tile range is fully covered with loaded tiles.
|
|
168
|
-
*/
|
|
169
|
-
forEachLoadedTile(projection, z, tileRange, callback) {
|
|
170
|
-
const tileCache = this.getTileCacheForProjection(projection);
|
|
171
|
-
if (!tileCache) {
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
let covered = true;
|
|
176
|
-
let tile, tileCoordKey, loaded;
|
|
177
|
-
for (let x = tileRange.minX; x <= tileRange.maxX; ++x) {
|
|
178
|
-
for (let y = tileRange.minY; y <= tileRange.maxY; ++y) {
|
|
179
|
-
tileCoordKey = getKeyZXY(z, x, y);
|
|
180
|
-
loaded = false;
|
|
181
|
-
if (tileCache.containsKey(tileCoordKey)) {
|
|
182
|
-
tile = /** @type {!import("../Tile.js").default} */ (
|
|
183
|
-
tileCache.get(tileCoordKey)
|
|
184
|
-
);
|
|
185
|
-
loaded = tile.getState() === TileState.LOADED;
|
|
186
|
-
if (loaded) {
|
|
187
|
-
loaded = callback(tile) !== false;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
if (!loaded) {
|
|
191
|
-
covered = false;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return covered;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
154
|
/**
|
|
199
155
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
200
156
|
* @return {number} Gutter.
|
|
@@ -223,17 +179,10 @@ class TileSource extends Source {
|
|
|
223
179
|
}
|
|
224
180
|
}
|
|
225
181
|
|
|
226
|
-
/**
|
|
227
|
-
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
228
|
-
* @return {boolean} Opaque.
|
|
229
|
-
*/
|
|
230
|
-
getOpaque(projection) {
|
|
231
|
-
return this.opaque_;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
182
|
/**
|
|
235
183
|
* @param {import("../proj/Projection").default} [projection] Projection.
|
|
236
184
|
* @return {Array<number>|null} Resolutions.
|
|
185
|
+
* @override
|
|
237
186
|
*/
|
|
238
187
|
getResolutions(projection) {
|
|
239
188
|
const tileGrid = projection
|
|
@@ -252,7 +201,7 @@ class TileSource extends Source {
|
|
|
252
201
|
* @param {number} y Tile coordinate y.
|
|
253
202
|
* @param {number} pixelRatio Pixel ratio.
|
|
254
203
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
255
|
-
* @return {
|
|
204
|
+
* @return {TileType|null} Tile.
|
|
256
205
|
*/
|
|
257
206
|
getTile(z, x, y, pixelRatio, projection) {
|
|
258
207
|
return abstract();
|
|
@@ -345,23 +294,14 @@ class TileSource extends Source {
|
|
|
345
294
|
this.tileCache.clear();
|
|
346
295
|
}
|
|
347
296
|
|
|
297
|
+
/**
|
|
298
|
+
* @override
|
|
299
|
+
*/
|
|
348
300
|
refresh() {
|
|
349
301
|
this.clear();
|
|
350
302
|
super.refresh();
|
|
351
303
|
}
|
|
352
304
|
|
|
353
|
-
/**
|
|
354
|
-
* Increases the cache size if needed
|
|
355
|
-
* @param {number} tileCount Minimum number of tiles needed.
|
|
356
|
-
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
357
|
-
*/
|
|
358
|
-
updateCacheSize(tileCount, projection) {
|
|
359
|
-
const tileCache = this.getTileCacheForProjection(projection);
|
|
360
|
-
if (tileCount > tileCache.highWaterMark) {
|
|
361
|
-
tileCache.highWaterMark = tileCount;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
|
|
365
305
|
/**
|
|
366
306
|
* Marks a tile coord as being used, without triggering a load.
|
|
367
307
|
* @abstract
|
|
@@ -5,7 +5,7 @@ export type Options = {
|
|
|
5
5
|
*/
|
|
6
6
|
attributions?: import("./Source.js").AttributionLike | undefined;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Deprecated. Use the cacheSize option on the layer instead.
|
|
9
9
|
*/
|
|
10
10
|
cacheSize?: number | undefined;
|
|
11
11
|
/**
|
|
@@ -93,7 +93,7 @@ export type Options = {
|
|
|
93
93
|
/**
|
|
94
94
|
* @typedef {Object} Options
|
|
95
95
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
96
|
-
* @property {number} [cacheSize]
|
|
96
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
97
97
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
98
98
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
99
99
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAsCC;IAnBC;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBA8BC;
|
|
1
|
+
{"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAsCC;IAnBC;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBA8BC;IAYD;;;;OAIG;IACH,gCAGC;CA+CF;sBA7OqB,gBAAgB"}
|
package/source/TileArcGISRest.js
CHANGED
|
@@ -12,7 +12,7 @@ import {hash as tileCoordHash} from '../tilecoord.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* @typedef {Object} Options
|
|
14
14
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
15
|
-
* @property {number} [cacheSize]
|
|
15
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
16
16
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
17
17
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
18
18
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
@@ -178,6 +178,7 @@ class TileArcGISRest extends TileImage {
|
|
|
178
178
|
* Get the tile pixel ratio for this source.
|
|
179
179
|
* @param {number} pixelRatio Pixel ratio.
|
|
180
180
|
* @return {number} Tile pixel ratio.
|
|
181
|
+
* @override
|
|
181
182
|
*/
|
|
182
183
|
getTilePixelRatio(pixelRatio) {
|
|
183
184
|
return this.hidpi_ ? pixelRatio : 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileDebug.d.ts","sourceRoot":"","sources":["TileDebug.js"],"names":[],"mappings":";;;;;iBAUc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;AAFjD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"TileDebug.d.ts","sourceRoot":"","sources":["TileDebug.js"],"names":[],"mappings":";;;;;iBAUc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;AAFjD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAkCC;CACF;gBA/De,UAAU"}
|
package/source/TileDebug.js
CHANGED
|
@@ -4,5 +4,5 @@ declare namespace _default {
|
|
|
4
4
|
let TILELOADERROR: string;
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
|
-
export type TileSourceEventTypes =
|
|
7
|
+
export type TileSourceEventTypes = "tileloadstart" | "tileloadend" | "tileloaderror";
|
|
8
8
|
//# sourceMappingURL=TileEventType.d.ts.map
|
package/source/TileImage.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type Options = {
|
|
|
9
9
|
*/
|
|
10
10
|
attributionsCollapsible?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Deprecated. Use the cacheSize option on the layer instead.
|
|
13
13
|
*/
|
|
14
14
|
cacheSize?: number | undefined;
|
|
15
15
|
/**
|
|
@@ -23,10 +23,6 @@ export type Options = {
|
|
|
23
23
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
24
24
|
*/
|
|
25
25
|
interpolate?: boolean | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the layer is opaque.
|
|
28
|
-
*/
|
|
29
|
-
opaque?: boolean | undefined;
|
|
30
26
|
/**
|
|
31
27
|
* Projection. Default is the view projection.
|
|
32
28
|
*/
|
|
@@ -66,7 +62,8 @@ export type Options = {
|
|
|
66
62
|
*/
|
|
67
63
|
tilePixelRatio?: number | undefined;
|
|
68
64
|
/**
|
|
69
|
-
*
|
|
65
|
+
* Deprecated. Use an ImageTile source and provide a function
|
|
66
|
+
* for the url option instead.
|
|
70
67
|
*/
|
|
71
68
|
tileUrlFunction?: import("../Tile.js").UrlFunction | undefined;
|
|
72
69
|
/**
|
|
@@ -105,13 +102,12 @@ export type Options = {
|
|
|
105
102
|
* @typedef {Object} Options
|
|
106
103
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
107
104
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
108
|
-
* @property {number} [cacheSize]
|
|
105
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
109
106
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
110
107
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
111
108
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
112
109
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
113
110
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
114
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
115
111
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
116
112
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
117
113
|
* Higher values can increase reprojection performance, but decrease precision.
|
|
@@ -129,7 +125,8 @@ export type Options = {
|
|
|
129
125
|
* service advertizes 256px by 256px tiles but actually sends 512px
|
|
130
126
|
* by 512px images (for retina/hidpi devices) then `tilePixelRatio`
|
|
131
127
|
* should be set to `2`.
|
|
132
|
-
* @property {import("../Tile.js").UrlFunction} [tileUrlFunction]
|
|
128
|
+
* @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
|
|
129
|
+
* for the url option instead.
|
|
133
130
|
* @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders.
|
|
134
131
|
* A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be
|
|
135
132
|
* used instead of defining each one separately in the `urls` option.
|
|
@@ -146,8 +143,7 @@ export type Options = {
|
|
|
146
143
|
* zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
|
|
147
144
|
*/
|
|
148
145
|
/**
|
|
149
|
-
* @
|
|
150
|
-
* Base class for sources providing images divided into a tile grid.
|
|
146
|
+
* @deprecated Use the ol/source/ImageTile.js instead.
|
|
151
147
|
*
|
|
152
148
|
* @fires import("./Tile.js").TileSourceEvent
|
|
153
149
|
* @api
|
|
@@ -213,8 +209,9 @@ declare class TileImage extends UrlTile {
|
|
|
213
209
|
* @param {number} pixelRatio Pixel ratio.
|
|
214
210
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
215
211
|
* @return {!(ImageTile|ReprojTile)} Tile.
|
|
212
|
+
* @override
|
|
216
213
|
*/
|
|
217
|
-
getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): (ImageTile | ReprojTile);
|
|
214
|
+
override getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): (ImageTile | ReprojTile);
|
|
218
215
|
/**
|
|
219
216
|
* @param {number} z Tile coordinate z.
|
|
220
217
|
* @param {number} x Tile coordinate x.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileImage.d.ts","sourceRoot":"","sources":["TileImage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileImage.d.ts","sourceRoot":"","sources":["TileImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAVjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFY,OAAO,EA8DlB;IArCC;;;OAGG;IACH,uBAFW,MAAM,OAAA,CAG+C;IAEhE;;;OAGG;IACH,qBAFU,OAAO,SAAS,CAGuC;IAEjE;;;OAGG;IACH,kCAFU;YAAQ,MAAM,GAAE,SAAS;KAAC,CAEJ;IAEhC;;;OAGG;IACH,iCAFU;YAAQ,MAAM,GAAE,OAAO,yBAAyB,EAAE,OAAO;KAAC,CAErC;IAE/B;;;OAGG;IACH,oCAAqE;IAErE;;;OAGG;IACH,iCAAqC;IAqDvC;;OAEG;IACH,aAFY,MAAM,CAIjB;IAoDD;;;;;;;;;OASG;IACH,oBAoBC;IAED;;;;;;;;OAQG;IACH,oBARW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,CAAE,SAAS,GAAC,UAAU,CAAC,CA0DlC;IAED;;;;;;;;OAQG;IACH,6BARW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAQ,uBAAuB,EAAE,OAAO,GACtC,SAAS,CAkBrB;IAED;;;;OAIG;IACH,mCAHW,OAAO,QAYjB;IAED;;;;;;;;;;;OAWG;IACH,qCAJW,OAAO,YAAY,EAAE,cAAc,YACnC,OAAO,yBAAyB,EAAE,OAAO,QAWnD;CAWF;sBArZqB,iBAAiB;oBAInB,cAAc;sBAFZ,iBAAiB;uBADhB,mBAAmB"}
|
package/source/TileImage.js
CHANGED
|
@@ -16,13 +16,12 @@ import {getUid} from '../util.js';
|
|
|
16
16
|
* @typedef {Object} Options
|
|
17
17
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
18
18
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
19
|
-
* @property {number} [cacheSize]
|
|
19
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
20
20
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
21
21
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
22
22
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
23
23
|
* @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
|
|
24
24
|
* linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
|
|
25
|
-
* @property {boolean} [opaque=false] Whether the layer is opaque.
|
|
26
25
|
* @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
|
|
27
26
|
* @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
|
|
28
27
|
* Higher values can increase reprojection performance, but decrease precision.
|
|
@@ -40,7 +39,8 @@ import {getUid} from '../util.js';
|
|
|
40
39
|
* service advertizes 256px by 256px tiles but actually sends 512px
|
|
41
40
|
* by 512px images (for retina/hidpi devices) then `tilePixelRatio`
|
|
42
41
|
* should be set to `2`.
|
|
43
|
-
* @property {import("../Tile.js").UrlFunction} [tileUrlFunction]
|
|
42
|
+
* @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
|
|
43
|
+
* for the url option instead.
|
|
44
44
|
* @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders.
|
|
45
45
|
* A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be
|
|
46
46
|
* used instead of defining each one separately in the `urls` option.
|
|
@@ -58,8 +58,7 @@ import {getUid} from '../util.js';
|
|
|
58
58
|
*/
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* @
|
|
62
|
-
* Base class for sources providing images divided into a tile grid.
|
|
61
|
+
* @deprecated Use the ol/source/ImageTile.js instead.
|
|
63
62
|
*
|
|
64
63
|
* @fires import("./Tile.js").TileSourceEvent
|
|
65
64
|
* @api
|
|
@@ -72,7 +71,6 @@ class TileImage extends UrlTile {
|
|
|
72
71
|
super({
|
|
73
72
|
attributions: options.attributions,
|
|
74
73
|
cacheSize: options.cacheSize,
|
|
75
|
-
opaque: options.opaque,
|
|
76
74
|
projection: options.projection,
|
|
77
75
|
state: options.state,
|
|
78
76
|
tileGrid: options.tileGrid,
|
|
@@ -133,6 +131,7 @@ class TileImage extends UrlTile {
|
|
|
133
131
|
|
|
134
132
|
/**
|
|
135
133
|
* @return {boolean} Can expire cache.
|
|
134
|
+
* @override
|
|
136
135
|
*/
|
|
137
136
|
canExpireCache() {
|
|
138
137
|
if (this.tileCache.canExpireCache()) {
|
|
@@ -150,6 +149,7 @@ class TileImage extends UrlTile {
|
|
|
150
149
|
/**
|
|
151
150
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
152
151
|
* @param {!Object<string, boolean>} usedTiles Used tiles.
|
|
152
|
+
* @override
|
|
153
153
|
*/
|
|
154
154
|
expireCache(projection, usedTiles) {
|
|
155
155
|
const usedTileCache = this.getTileCacheForProjection(projection);
|
|
@@ -166,6 +166,7 @@ class TileImage extends UrlTile {
|
|
|
166
166
|
/**
|
|
167
167
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
168
168
|
* @return {number} Gutter.
|
|
169
|
+
* @override
|
|
169
170
|
*/
|
|
170
171
|
getGutterForProjection(projection) {
|
|
171
172
|
if (
|
|
@@ -188,6 +189,7 @@ class TileImage extends UrlTile {
|
|
|
188
189
|
/**
|
|
189
190
|
* Return the key to be used for all tiles in the source.
|
|
190
191
|
* @return {string} The key for all tiles.
|
|
192
|
+
* @override
|
|
191
193
|
*/
|
|
192
194
|
getKey() {
|
|
193
195
|
let key = super.getKey();
|
|
@@ -197,24 +199,10 @@ class TileImage extends UrlTile {
|
|
|
197
199
|
return key;
|
|
198
200
|
}
|
|
199
201
|
|
|
200
|
-
/**
|
|
201
|
-
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
202
|
-
* @return {boolean} Opaque.
|
|
203
|
-
*/
|
|
204
|
-
getOpaque(projection) {
|
|
205
|
-
if (
|
|
206
|
-
this.getProjection() &&
|
|
207
|
-
projection &&
|
|
208
|
-
!equivalent(this.getProjection(), projection)
|
|
209
|
-
) {
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
return super.getOpaque(projection);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
202
|
/**
|
|
216
203
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
217
204
|
* @return {!import("../tilegrid/TileGrid.js").default} Tile grid.
|
|
205
|
+
* @override
|
|
218
206
|
*/
|
|
219
207
|
getTileGridForProjection(projection) {
|
|
220
208
|
const thisProj = this.getProjection();
|
|
@@ -232,6 +220,7 @@ class TileImage extends UrlTile {
|
|
|
232
220
|
/**
|
|
233
221
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
234
222
|
* @return {import("../TileCache.js").default} Tile cache.
|
|
223
|
+
* @override
|
|
235
224
|
*/
|
|
236
225
|
getTileCacheForProjection(projection) {
|
|
237
226
|
const thisProj = this.getProjection();
|
|
@@ -286,6 +275,7 @@ class TileImage extends UrlTile {
|
|
|
286
275
|
* @param {number} pixelRatio Pixel ratio.
|
|
287
276
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
288
277
|
* @return {!(ImageTile|ReprojTile)} Tile.
|
|
278
|
+
* @override
|
|
289
279
|
*/
|
|
290
280
|
getTile(z, x, y, pixelRatio, projection) {
|
|
291
281
|
const sourceProjection = this.getProjection();
|
|
@@ -337,8 +327,6 @@ class TileImage extends UrlTile {
|
|
|
337
327
|
newTile.key = key;
|
|
338
328
|
|
|
339
329
|
if (tile) {
|
|
340
|
-
newTile.interimTile = tile;
|
|
341
|
-
newTile.refreshInterimChain();
|
|
342
330
|
cache.replace(tileCoordKey, newTile);
|
|
343
331
|
} else {
|
|
344
332
|
cache.set(tileCoordKey, newTile);
|
|
@@ -356,31 +344,18 @@ class TileImage extends UrlTile {
|
|
|
356
344
|
* @protected
|
|
357
345
|
*/
|
|
358
346
|
getTileInternal(z, x, y, pixelRatio, projection) {
|
|
359
|
-
let tile = null;
|
|
360
347
|
const tileCoordKey = getKeyZXY(z, x, y);
|
|
361
348
|
const key = this.getKey();
|
|
362
349
|
if (!this.tileCache.containsKey(tileCoordKey)) {
|
|
363
|
-
tile = this.createTile_(z, x, y, pixelRatio, projection, key);
|
|
350
|
+
const tile = this.createTile_(z, x, y, pixelRatio, projection, key);
|
|
364
351
|
this.tileCache.set(tileCoordKey, tile);
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if (tile.key != key) {
|
|
368
|
-
// The source's params changed. If the tile has an interim tile and if we
|
|
369
|
-
// can use it then we use it. Otherwise we create a new tile. In both
|
|
370
|
-
// cases we attempt to assign an interim tile to the new tile.
|
|
371
|
-
const interimTile = tile;
|
|
372
|
-
tile = this.createTile_(z, x, y, pixelRatio, projection, key);
|
|
352
|
+
return tile;
|
|
353
|
+
}
|
|
373
354
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
} else {
|
|
379
|
-
tile.interimTile = interimTile;
|
|
380
|
-
}
|
|
381
|
-
tile.refreshInterimChain();
|
|
382
|
-
this.tileCache.replace(tileCoordKey, tile);
|
|
383
|
-
}
|
|
355
|
+
let tile = this.tileCache.get(tileCoordKey);
|
|
356
|
+
if (tile.key != key) {
|
|
357
|
+
tile = this.createTile_(z, x, y, pixelRatio, projection, key);
|
|
358
|
+
this.tileCache.replace(tileCoordKey, tile);
|
|
384
359
|
}
|
|
385
360
|
return tile;
|
|
386
361
|
}
|
|
@@ -423,6 +398,9 @@ class TileImage extends UrlTile {
|
|
|
423
398
|
}
|
|
424
399
|
}
|
|
425
400
|
|
|
401
|
+
/**
|
|
402
|
+
* @override
|
|
403
|
+
*/
|
|
426
404
|
clear() {
|
|
427
405
|
super.clear();
|
|
428
406
|
for (const id in this.tileCacheForProjection) {
|
package/source/TileJSON.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export type Options = {
|
|
|
59
59
|
*/
|
|
60
60
|
attributions?: import("./Source.js").AttributionLike | undefined;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Deprecated. Use the cacheSize option on the layer instead.
|
|
63
63
|
*/
|
|
64
64
|
cacheSize?: number | undefined;
|
|
65
65
|
/**
|
|
@@ -140,7 +140,7 @@ export type Options = {
|
|
|
140
140
|
/**
|
|
141
141
|
* @typedef {Object} Options
|
|
142
142
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
143
|
-
* @property {number} [cacheSize]
|
|
143
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
144
144
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
145
145
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
146
146
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
package/source/TileJSON.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyBc,
|
|
1
|
+
{"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyBc,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT3B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgDjB;IA/BC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,kBAAiC;IAuBnC;;;OAGG;IACH,mBAeC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,eAHY,MAAM,CAKjB;IAED;;;OAGG;IACH,2CAFW,MAAM,QAuChB;IAED;;OAEG;IACH,sCAEC;CACF;sBAvMqB,gBAAgB"}
|
package/source/TileJSON.js
CHANGED
|
@@ -34,7 +34,7 @@ import {jsonp as requestJSONP} from '../net.js';
|
|
|
34
34
|
/**
|
|
35
35
|
* @typedef {Object} Options
|
|
36
36
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
37
|
-
* @property {number} [cacheSize]
|
|
37
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
38
38
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
39
39
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
40
40
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
package/source/TileWMS.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export type Options = {
|
|
|
9
9
|
*/
|
|
10
10
|
attributionsCollapsible?: boolean | undefined;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Deprecated. Use the cacheSize option on the layer instead.
|
|
13
13
|
*/
|
|
14
14
|
cacheSize?: number | undefined;
|
|
15
15
|
/**
|
|
@@ -116,7 +116,7 @@ export type Options = {
|
|
|
116
116
|
* @typedef {Object} Options
|
|
117
117
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
118
118
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
119
|
-
* @property {number} [cacheSize]
|
|
119
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
120
120
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
121
121
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
122
122
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
package/source/TileWMS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileWMS.d.ts","sourceRoot":"","sources":["TileWMS.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TileWMS.d.ts","sourceRoot":"","sources":["TileWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBc;YAAO,MAAM,GAAC,GAAC;KAAC;;;;;;;;;;;;;;;;;;;;iBAehB,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAzBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,2CA6DC;IAtCC;;;OAGG;IACH,gBAAgE;IAEhE;;;OAGG;IACH,gBAAqB;IAErB;;;OAGG;IACH,aAAgB;IAEhB;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAMjC;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,UACnC,GAAO,GAIN,MAAM,GAAC,SAAS,CA6D3B;IAED;;;;;;;;;;;;;OAaG;IACH,6DAHY,MAAM,GAAC,SAAS,CAmC3B;IAUD;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;OAQG;IACH,uBAwBC;IAYD;;;OAGG;IACH,yBAOC;IAED;;;;OAIG;IACH,gCAIC;IAED;;OAEG;IACH,mBAGC;CA4CF;sBA/YqB,gBAAgB"}
|
package/source/TileWMS.js
CHANGED
|
@@ -16,7 +16,7 @@ import {hash as tileCoordHash} from '../tilecoord.js';
|
|
|
16
16
|
* @typedef {Object} Options
|
|
17
17
|
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
|
|
18
18
|
* @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
|
|
19
|
-
* @property {number} [cacheSize]
|
|
19
|
+
* @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
|
|
20
20
|
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
|
|
21
21
|
* you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
|
|
22
22
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
@@ -84,15 +84,12 @@ class TileWMS extends TileImage {
|
|
|
84
84
|
|
|
85
85
|
const params = Object.assign({}, options.params);
|
|
86
86
|
|
|
87
|
-
const transparent = 'TRANSPARENT' in params ? params['TRANSPARENT'] : true;
|
|
88
|
-
|
|
89
87
|
super({
|
|
90
88
|
attributions: options.attributions,
|
|
91
89
|
attributionsCollapsible: options.attributionsCollapsible,
|
|
92
90
|
cacheSize: options.cacheSize,
|
|
93
91
|
crossOrigin: options.crossOrigin,
|
|
94
92
|
interpolate: options.interpolate,
|
|
95
|
-
opaque: !transparent,
|
|
96
93
|
projection: options.projection,
|
|
97
94
|
reprojectionErrorThreshold: options.reprojectionErrorThreshold,
|
|
98
95
|
tileClass: options.tileClass,
|
|
@@ -269,6 +266,7 @@ class TileWMS extends TileImage {
|
|
|
269
266
|
|
|
270
267
|
/**
|
|
271
268
|
* @return {number} Gutter.
|
|
269
|
+
* @override
|
|
272
270
|
*/
|
|
273
271
|
getGutter() {
|
|
274
272
|
return this.gutter_;
|
|
@@ -323,6 +321,7 @@ class TileWMS extends TileImage {
|
|
|
323
321
|
* Get the tile pixel ratio for this source.
|
|
324
322
|
* @param {number} pixelRatio Pixel ratio.
|
|
325
323
|
* @return {number} Tile pixel ratio.
|
|
324
|
+
* @override
|
|
326
325
|
*/
|
|
327
326
|
getTilePixelRatio(pixelRatio) {
|
|
328
327
|
return !this.hidpi_ || this.serverType_ === undefined ? 1 : pixelRatio;
|
package/source/UTFGrid.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ import Tile from '../Tile.js';
|
|
|
169
169
|
* Layer source for UTFGrid interaction data loaded from TileJSON format.
|
|
170
170
|
* @api
|
|
171
171
|
*/
|
|
172
|
-
declare class UTFGrid extends TileSource {
|
|
172
|
+
declare class UTFGrid extends TileSource<Tile> {
|
|
173
173
|
/**
|
|
174
174
|
* @param {Options} options Source options.
|
|
175
175
|
*/
|
|
@@ -239,15 +239,17 @@ declare class UTFGrid extends TileSource {
|
|
|
239
239
|
* @param {number} pixelRatio Pixel ratio.
|
|
240
240
|
* @param {import("../proj/Projection.js").default} projection Projection.
|
|
241
241
|
* @return {!CustomTile} Tile.
|
|
242
|
+
* @override
|
|
242
243
|
*/
|
|
243
|
-
getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): CustomTile;
|
|
244
|
+
override getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): CustomTile;
|
|
244
245
|
/**
|
|
245
246
|
* Marks a tile coord as being used, without triggering a load.
|
|
246
247
|
* @param {number} z Tile coordinate z.
|
|
247
248
|
* @param {number} x Tile coordinate x.
|
|
248
249
|
* @param {number} y Tile coordinate y.
|
|
250
|
+
* @override
|
|
249
251
|
*/
|
|
250
|
-
useTile(z: number, x: number, y: number): void;
|
|
252
|
+
override useTile(z: number, x: number, y: number): void;
|
|
251
253
|
}
|
|
252
254
|
import TileSource from './Tile.js';
|
|
253
255
|
//# sourceMappingURL=UTFGrid.d.ts.map
|
package/source/UTFGrid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UTFGrid.d.ts","sourceRoot":"","sources":["UTFGrid.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAEH;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,iBAAiB,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"UTFGrid.d.ts","sourceRoot":"","sources":["UTFGrid.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAEH;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,iBAAiB,EAAE,SAAS,SACnC,GAAiC,OACjC,MAAM,UACN,OAAO,cAAc,EAAE,MAAM,cAC7B,OAAO,SACP,OAAO,EA8CjB;IAzCC;;;OAGG;IACH,aAAe;IAEf;;;OAGG;IACH,gBAAqB;IAErB;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,cAAiB;IAEjB;;;OAGG;IACH,cAAiB;IAEjB;;;OAGG;IACH,cAAiB;IAEjB;;;OAGG;IACH,eAAmB;IAGrB;;;OAGG;IACH,YAFY,gBAAgB,CAI3B;IAED;;;;OAIG;IACH,oBAHW,OAAO,kBAAkB,EAAE,UAAU,GACpC,GAAC,CAoCZ;IAED;;;;;;;OAOG;IACH,gCALW,OAAO,kBAAkB,EAAE,UAAU,YACrC,CAAS,IAAC,EAAD,GAAC,KAAG,IAAI,uCAoB3B;IAWD;;OAEG;IACH,qBAGC;IAED;;;OAGG;IACH,oBAOC;IAED;;OAEG;IACH,sBAiBC;IAED;;;OAGG;IACH,mBAiBC;IAED;;;OAGG;IACH,oBAEC;CAYF;;;;;;UApOa,KAAK,CAAC,MAAM,CAAC;;;;UACb,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAdV,YAAY;AAmP7B;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAsDjB;IA5CC;;;OAGG;IACH,oBAC8D;IAE9D;;;OAGG;IACH,yBAA2C;IAE3C;;;OAGG;IACH,kBAA0B;IAE1B;;;OAGG;IACH,eAAoC;IAuBtC;;;OAGG;IACH,mBAiBC;IAED;;;OAGG;IACH,oBAEC;IAED;;;;OAIG;IACH,eAHY,MAAM,GAAC,SAAS,CAK3B;IAED;;;;;;;;;;OAUG;IACH,6CAPW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,YACN,CAAS,IAAC,EAAD,GAAC,KAAG,IAAI,uCA4B3B;IAED;;OAEG;IACH,sCAEC;IAED;;;;OAIG;IACH,2CAFW,OAAO,eAAe,EAAE,MAAM,QA8CxC;IAED;;;;;;;;OAQG;IACH,oBARW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACrC,UAAU,CAwBtB;IAED;;;;;;OAMG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,QAQhB;CACF;uBAxfsB,WAAW"}
|