ol 7.0.0-pr.13891.1 → 7.0.1-dev.1660997354563
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 +20 -18
- package/Collection.d.ts.map +1 -1
- package/Collection.js +49 -35
- package/Feature.d.ts +8 -8
- package/Feature.d.ts.map +1 -1
- package/Feature.js +14 -16
- package/Geolocation.d.ts +3 -3
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +4 -4
- package/ImageCanvas.d.ts +2 -2
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageCanvas.js +4 -5
- package/ImageTile.d.ts +2 -2
- package/ImageTile.d.ts.map +1 -1
- package/ImageTile.js +3 -10
- package/Map.d.ts +794 -8
- package/Map.d.ts.map +1 -1
- package/Map.js +1759 -20
- package/MapBrowserEvent.d.ts +6 -6
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +9 -16
- package/MapBrowserEventHandler.d.ts +3 -3
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapBrowserEventHandler.js +2 -2
- package/MapEvent.d.ts +8 -8
- package/MapEvent.d.ts.map +1 -1
- package/MapEvent.js +7 -7
- package/Object.d.ts +8 -8
- package/Object.d.ts.map +1 -1
- package/Object.js +16 -16
- package/Overlay.d.ts +9 -8
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +9 -8
- package/README.md +1 -18
- package/Tile.d.ts +6 -6
- package/Tile.d.ts.map +1 -1
- package/Tile.js +5 -5
- package/TileCache.d.ts +1 -1
- package/TileCache.d.ts.map +1 -1
- package/TileQueue.d.ts +2 -2
- package/TileQueue.d.ts.map +1 -1
- package/TileQueue.js +1 -1
- package/VectorTile.d.ts +2 -2
- package/VectorTile.d.ts.map +1 -1
- package/VectorTile.js +3 -3
- package/View.d.ts +55 -55
- package/View.d.ts.map +1 -1
- package/View.js +101 -110
- package/array.d.ts +5 -12
- package/array.d.ts.map +1 -1
- package/array.js +8 -18
- package/centerconstraint.js +6 -6
- package/color.d.ts.map +1 -1
- package/color.js +3 -5
- package/control/Attribution.d.ts +4 -4
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +5 -5
- package/control/Control.d.ts +6 -6
- package/control/Control.d.ts.map +1 -1
- package/control/Control.js +4 -4
- package/control/FullScreen.d.ts +2 -2
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +5 -14
- package/control/MousePosition.d.ts +16 -23
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +12 -39
- package/control/OverviewMap.d.ts +7 -6
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +15 -18
- package/control/Rotate.d.ts +2 -2
- package/control/Rotate.d.ts.map +1 -1
- package/control/Rotate.js +3 -3
- package/control/ScaleLine.d.ts +8 -7
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +52 -94
- package/control/Zoom.d.ts +2 -2
- package/control/Zoom.d.ts.map +1 -1
- package/control/Zoom.js +3 -3
- package/control/ZoomSlider.d.ts +2 -2
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomSlider.js +4 -4
- package/control/ZoomToExtent.d.ts +2 -2
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/ZoomToExtent.js +3 -3
- package/control/defaults.d.ts +60 -0
- package/control/defaults.d.ts.map +1 -0
- package/control/defaults.js +60 -0
- package/control.d.ts +1 -61
- package/control.d.ts.map +1 -1
- package/control.js +1 -59
- package/coordinate.d.ts +37 -37
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +59 -61
- package/dom.d.ts +5 -5
- package/dom.d.ts.map +1 -1
- package/dom.js +13 -18
- package/events/Target.d.ts +4 -4
- package/events/Target.d.ts.map +1 -1
- package/events/Target.js +8 -8
- package/events.d.ts +5 -5
- package/events.d.ts.map +1 -1
- package/events.js +9 -9
- package/extent.d.ts +25 -25
- package/extent.d.ts.map +1 -1
- package/extent.js +66 -72
- package/format/EsriJSON.d.ts +11 -11
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/EsriJSON.js +48 -53
- package/format/Feature.d.ts +18 -18
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +35 -45
- package/format/GML.d.ts +1 -1
- package/format/GML.js +3 -3
- package/format/GML2.d.ts +5 -5
- package/format/GML2.d.ts.map +1 -1
- package/format/GML2.js +17 -21
- package/format/GML3.d.ts +7 -7
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +29 -33
- package/format/GML32.d.ts.map +1 -1
- package/format/GML32.js +3 -5
- package/format/GMLBase.d.ts +6 -6
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GMLBase.js +20 -26
- package/format/GPX.d.ts +2 -2
- package/format/GPX.d.ts.map +1 -1
- package/format/GPX.js +15 -17
- package/format/GeoJSON.d.ts +10 -10
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/GeoJSON.js +61 -66
- package/format/IGC.d.ts +2 -2
- package/format/IGC.d.ts.map +1 -1
- package/format/IGC.js +9 -9
- package/format/IIIFInfo.d.ts +2 -2
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/IIIFInfo.js +3 -3
- package/format/JSONFeature.d.ts +22 -22
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +30 -30
- package/format/KML.d.ts +2 -5
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +28 -30
- package/format/MVT.d.ts +5 -5
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +9 -12
- package/format/OSMXML.js +3 -3
- package/format/Polyline.d.ts +16 -16
- package/format/Polyline.d.ts.map +1 -1
- package/format/Polyline.js +33 -37
- package/format/TextFeature.d.ts +22 -22
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TextFeature.js +30 -30
- package/format/TopoJSON.d.ts +2 -2
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/TopoJSON.js +14 -14
- package/format/WFS.d.ts +7 -7
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +27 -28
- package/format/WKB.d.ts +8 -8
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +26 -27
- package/format/WKT.d.ts +2 -2
- package/format/WKT.d.ts.map +1 -1
- package/format/WKT.js +25 -25
- package/format/WMSGetFeatureInfo.d.ts +2 -2
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.js +9 -10
- package/format/XMLFeature.d.ts +28 -28
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +44 -47
- package/format/filter/Bbox.d.ts +2 -2
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Bbox.js +3 -3
- package/format/filter/ComparisonBinary.d.ts +2 -2
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.js +3 -3
- package/format/filter/Contains.d.ts +2 -2
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/Contains.js +3 -3
- package/format/filter/DWithin.d.ts +2 -2
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/DWithin.js +3 -3
- package/format/filter/Disjoint.d.ts +2 -2
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/Disjoint.js +3 -3
- package/format/filter/EqualTo.d.ts +2 -2
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/EqualTo.js +3 -3
- package/format/filter/Intersects.d.ts +2 -2
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/Intersects.js +3 -3
- package/format/filter/IsLike.d.ts +5 -5
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsLike.js +12 -12
- package/format/filter/NotEqualTo.d.ts +2 -2
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/NotEqualTo.js +3 -3
- package/format/filter/Spatial.d.ts +2 -2
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Spatial.js +3 -3
- package/format/filter/Within.d.ts +2 -2
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter/Within.js +3 -3
- package/format/filter.d.ts +21 -21
- package/format/filter.d.ts.map +1 -1
- package/format/filter.js +36 -36
- package/format/readme.md +2 -3
- package/geom/Circle.d.ts +8 -8
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +13 -13
- package/geom/Geometry.d.ts +10 -10
- package/geom/Geometry.d.ts.map +1 -1
- package/geom/Geometry.js +17 -18
- package/geom/GeometryCollection.d.ts +2 -2
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/GeometryCollection.js +7 -8
- package/geom/LineString.d.ts +11 -11
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LineString.js +17 -17
- package/geom/LinearRing.d.ts +5 -5
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/LinearRing.js +9 -9
- package/geom/MultiLineString.d.ts +14 -14
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiLineString.js +21 -21
- package/geom/MultiPoint.d.ts +5 -5
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPoint.js +9 -9
- package/geom/MultiPolygon.d.ts +8 -8
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/MultiPolygon.js +22 -22
- package/geom/Point.d.ts +2 -2
- package/geom/Point.d.ts.map +1 -1
- package/geom/Point.js +6 -6
- package/geom/Polygon.d.ts +16 -16
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/Polygon.js +28 -28
- package/geom/SimpleGeometry.d.ts +4 -4
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/SimpleGeometry.js +8 -10
- package/geom/flat/closest.d.ts +6 -6
- package/geom/flat/closest.d.ts.map +1 -1
- package/geom/flat/closest.js +9 -9
- package/geom/flat/deflate.d.ts +4 -4
- package/geom/flat/deflate.d.ts.map +1 -1
- package/geom/flat/deflate.js +6 -6
- package/geom/flat/flip.d.ts +3 -3
- package/geom/flat/flip.d.ts.map +1 -1
- package/geom/flat/flip.js +6 -14
- package/geom/flat/inflate.d.ts +6 -6
- package/geom/flat/inflate.d.ts.map +1 -1
- package/geom/flat/inflate.js +9 -10
- package/geom/flat/interiorpoint.d.ts +2 -2
- package/geom/flat/interiorpoint.d.ts.map +1 -1
- package/geom/flat/interiorpoint.js +5 -5
- package/geom/flat/interpolate.d.ts +3 -3
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/interpolate.js +6 -6
- package/geom/flat/orient.d.ts +12 -12
- package/geom/flat/orient.d.ts.map +1 -1
- package/geom/flat/orient.js +16 -18
- package/geom/flat/simplify.d.ts +2 -2
- package/geom/flat/simplify.d.ts.map +1 -1
- package/geom/flat/simplify.js +4 -6
- package/geom/flat/transform.d.ts +8 -8
- package/geom/flat/transform.d.ts.map +1 -1
- package/geom/flat/transform.js +16 -16
- package/has.d.ts.map +1 -1
- package/has.js +6 -8
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/interaction/DoubleClickZoom.d.ts +2 -2
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DoubleClickZoom.js +3 -3
- package/interaction/DragAndDrop.d.ts +7 -11
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +15 -16
- package/interaction/DragBox.d.ts +2 -2
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragBox.js +3 -3
- package/interaction/DragPan.d.ts +2 -2
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragPan.js +3 -3
- package/interaction/DragRotate.d.ts +2 -2
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotate.js +3 -3
- package/interaction/DragRotateAndZoom.d.ts +2 -2
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.js +3 -3
- package/interaction/DragZoom.d.ts +2 -2
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/DragZoom.js +3 -3
- package/interaction/Draw.d.ts +5 -5
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +16 -14
- package/interaction/Extent.d.ts +5 -5
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +15 -15
- package/interaction/Interaction.d.ts +12 -12
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Interaction.js +15 -15
- package/interaction/KeyboardPan.d.ts +2 -2
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +3 -3
- package/interaction/KeyboardZoom.d.ts +2 -2
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/KeyboardZoom.js +3 -3
- package/interaction/Link.d.ts +4 -4
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +8 -9
- package/interaction/Modify.d.ts +6 -6
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +13 -13
- package/interaction/MouseWheelZoom.d.ts +7 -8
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +7 -11
- package/interaction/PinchRotate.d.ts +2 -2
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchRotate.js +3 -3
- package/interaction/PinchZoom.d.ts +2 -2
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/PinchZoom.js +3 -3
- package/interaction/Pointer.d.ts +2 -2
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Pointer.js +3 -3
- package/interaction/Select.d.ts +11 -11
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +15 -16
- package/interaction/Snap.d.ts +12 -12
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +21 -18
- package/interaction/Translate.d.ts +6 -6
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +6 -6
- package/interaction/defaults.d.ts +101 -0
- package/interaction/defaults.d.ts.map +1 -0
- package/interaction/defaults.js +148 -0
- package/interaction.d.ts +2 -99
- package/interaction.d.ts.map +1 -1
- package/interaction.js +2 -145
- package/layer/Base.d.ts +8 -8
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +12 -13
- package/layer/BaseImage.d.ts +6 -6
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseImage.js +5 -5
- package/layer/BaseTile.d.ts +6 -6
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +6 -7
- package/layer/BaseVector.d.ts +15 -10
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +56 -17
- package/layer/Graticule.d.ts +3 -3
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +28 -14
- package/layer/Group.d.ts +8 -8
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +21 -25
- package/layer/Heatmap.d.ts +2 -2
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +4 -5
- package/layer/Image.d.ts +2 -2
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +3 -3
- package/layer/Layer.d.ts +15 -15
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +16 -17
- package/layer/MapboxVector.d.ts +11 -11
- package/layer/MapboxVector.d.ts.map +1 -1
- package/layer/MapboxVector.js +8 -8
- package/layer/Tile.d.ts +2 -2
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Tile.js +3 -3
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/Vector.js +3 -3
- package/layer/VectorImage.d.ts +6 -6
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +6 -7
- package/layer/VectorTile.d.ts +17 -13
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +20 -27
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +2 -3
- package/layer/WebGLTile.d.ts +5 -5
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +7 -8
- package/net.d.ts +3 -3
- package/net.d.ts.map +1 -1
- package/net.js +8 -8
- package/obj.d.ts +3 -1
- package/obj.d.ts.map +1 -1
- package/obj.js +0 -31
- package/ol.css +97 -43
- package/package.json +7 -2
- package/proj/Projection.d.ts +11 -11
- package/proj/Projection.d.ts.map +1 -1
- package/proj/Projection.js +7 -7
- package/proj/Units.d.ts +34 -15
- package/proj/Units.d.ts.map +1 -1
- package/proj/Units.js +25 -55
- package/proj/epsg3857.d.ts +6 -6
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg3857.js +9 -12
- package/proj/epsg4326.d.ts.map +1 -1
- package/proj/epsg4326.js +4 -5
- package/proj/proj4.d.ts.map +1 -1
- package/proj/proj4.js +1 -2
- package/proj.d.ts +16 -16
- package/proj.d.ts.map +1 -1
- package/proj.js +39 -40
- package/render/Box.d.ts +3 -3
- package/render/Box.d.ts.map +1 -1
- package/render/Box.js +2 -2
- package/render/Event.d.ts +6 -6
- package/render/Event.d.ts.map +1 -1
- package/render/Event.js +8 -8
- package/render/Feature.d.ts +4 -4
- package/render/Feature.d.ts.map +1 -1
- package/render/Feature.js +6 -6
- package/render/VectorContext.d.ts +4 -4
- package/render/VectorContext.d.ts.map +1 -1
- package/render/VectorContext.js +4 -4
- package/render/canvas/Executor.d.ts +8 -8
- package/render/canvas/Executor.d.ts.map +1 -1
- package/render/canvas/Executor.js +36 -45
- package/render/canvas/ExecutorGroup.d.ts +5 -5
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +11 -11
- package/render/canvas/ImageBuilder.d.ts +2 -2
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.js +3 -3
- package/render/canvas/Immediate.d.ts +5 -5
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +38 -52
- package/render/canvas/TextBuilder.d.ts +2 -2
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.js +3 -3
- package/render/canvas.d.ts +11 -11
- package/render/canvas.d.ts.map +1 -1
- package/render/canvas.js +6 -6
- package/render/webgl/BatchRenderer.d.ts +4 -4
- package/render/webgl/BatchRenderer.d.ts.map +1 -1
- package/render/webgl/BatchRenderer.js +2 -2
- package/render/webgl/utils.d.ts +2 -2
- package/render/webgl/utils.d.ts.map +1 -1
- package/render/webgl/utils.js +3 -3
- package/render.d.ts +9 -6
- package/render.d.ts.map +1 -1
- package/render.js +10 -7
- package/renderer/Composite.js +3 -3
- package/renderer/Layer.d.ts +6 -6
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Layer.js +3 -3
- package/renderer/Map.d.ts +17 -17
- package/renderer/Map.d.ts.map +1 -1
- package/renderer/Map.js +11 -11
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.js +5 -14
- package/renderer/canvas/Layer.d.ts +13 -13
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +12 -12
- package/renderer/canvas/TileLayer.d.ts +9 -9
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +16 -18
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.js +17 -19
- package/renderer/canvas/VectorLayer.d.ts +8 -8
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +16 -16
- package/renderer/canvas/VectorTileLayer.d.ts +5 -5
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +18 -22
- package/renderer/vector.d.ts +3 -3
- package/renderer/vector.d.ts.map +1 -1
- package/renderer/vector.js +42 -42
- package/renderer/webgl/Layer.d.ts +13 -13
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.js +10 -10
- package/renderer/webgl/PointsLayer.d.ts +5 -5
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +5 -5
- package/renderer/webgl/TileLayer.d.ts +5 -5
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +8 -7
- package/renderer/webgl/VectorLayer.d.ts +2 -2
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +3 -3
- package/reproj/Tile.d.ts +4 -4
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Tile.js +9 -9
- package/reproj/Triangulation.d.ts +2 -2
- package/reproj/Triangulation.d.ts.map +1 -1
- package/reproj/Triangulation.js +4 -7
- package/reproj/common.d.ts +0 -6
- package/reproj/common.d.ts.map +1 -1
- package/reproj/common.js +0 -7
- package/reproj.d.ts +3 -3
- package/reproj.d.ts.map +1 -1
- package/reproj.js +11 -13
- package/resolutionconstraint.d.ts +13 -13
- package/resolutionconstraint.d.ts.map +1 -1
- package/resolutionconstraint.js +44 -43
- package/rotationconstraint.d.ts +2 -2
- package/rotationconstraint.d.ts.map +1 -1
- package/rotationconstraint.js +9 -9
- package/size.d.ts +6 -6
- package/size.d.ts.map +1 -1
- package/size.js +21 -21
- package/source/BingMaps.d.ts +0 -5
- package/source/BingMaps.d.ts.map +1 -1
- package/source/BingMaps.js +1 -8
- package/source/CartoDB.d.ts.map +1 -1
- package/source/CartoDB.js +1 -2
- package/source/Cluster.js +3 -3
- package/source/DataTile.d.ts +0 -7
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +1 -12
- package/source/IIIF.d.ts +2 -6
- package/source/IIIF.d.ts.map +1 -1
- package/source/IIIF.js +26 -33
- package/source/Image.d.ts +0 -5
- package/source/Image.d.ts.map +1 -1
- package/source/Image.js +2 -10
- package/source/ImageArcGISRest.d.ts +2 -7
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +6 -14
- package/source/ImageCanvas.d.ts +2 -7
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +4 -11
- package/source/ImageMapGuide.d.ts +0 -5
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageMapGuide.js +3 -11
- package/source/ImageStatic.d.ts +0 -5
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageStatic.js +2 -11
- package/source/ImageWMS.d.ts +7 -12
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +10 -18
- package/source/OGCMapTile.d.ts +0 -5
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCMapTile.js +1 -8
- package/source/OSM.d.ts +2 -7
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +4 -11
- package/source/Raster.d.ts +17 -9
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +18 -25
- package/source/Source.d.ts +4 -4
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +2 -2
- package/source/Stamen.d.ts +0 -5
- package/source/Stamen.d.ts.map +1 -1
- package/source/Stamen.js +1 -8
- package/source/Tile.d.ts +2 -2
- package/source/Tile.d.ts.map +1 -1
- package/source/Tile.js +3 -4
- package/source/TileArcGISRest.d.ts +2 -7
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +6 -14
- package/source/TileDebug.d.ts +2 -2
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +3 -3
- package/source/TileImage.d.ts +0 -5
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileImage.js +15 -36
- package/source/TileJSON.d.ts +0 -5
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileJSON.js +2 -9
- package/source/TileWMS.d.ts +2 -7
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +8 -16
- package/source/UTFGrid.d.ts +6 -6
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UTFGrid.js +9 -14
- package/source/Vector.d.ts +31 -30
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +40 -51
- package/source/WMTS.d.ts +0 -5
- package/source/WMTS.d.ts.map +1 -1
- package/source/WMTS.js +4 -12
- package/source/XYZ.d.ts +2 -7
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +4 -11
- package/source/Zoomify.d.ts +4 -9
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +7 -20
- package/source/ogcTileUtil.d.ts.map +1 -1
- package/source/ogcTileUtil.js +2 -3
- package/sphere.d.ts +8 -8
- package/sphere.d.ts.map +1 -1
- package/sphere.js +14 -14
- package/string.d.ts +2 -2
- package/string.d.ts.map +1 -1
- package/string.js +3 -3
- package/structs/LRUCache.d.ts +4 -4
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/LRUCache.js +5 -6
- package/structs/LinkedList.d.ts +2 -2
- package/structs/LinkedList.d.ts.map +1 -1
- package/structs/LinkedList.js +3 -3
- package/structs/RBush.d.ts +4 -4
- package/structs/RBush.d.ts.map +1 -1
- package/structs/RBush.js +6 -12
- package/style/Circle.d.ts +2 -2
- package/style/Circle.d.ts.map +1 -1
- package/style/Circle.js +3 -3
- package/style/Fill.d.ts +2 -2
- package/style/Fill.d.ts.map +1 -1
- package/style/Fill.js +3 -3
- package/style/Icon.d.ts +30 -28
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +21 -14
- package/style/IconImage.d.ts +9 -0
- package/style/IconImage.d.ts.map +1 -1
- package/style/IconImage.js +50 -46
- package/style/RegularShape.d.ts +10 -8
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +13 -6
- package/style/Stroke.d.ts +7 -17
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +6 -14
- package/style/Style.d.ts +2 -2
- package/style/Style.d.ts.map +1 -1
- package/style/Style.js +3 -3
- package/style/Text.d.ts +34 -33
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +23 -19
- package/style/expressions.js +10 -10
- package/style/flat.d.ts +597 -0
- package/style/flat.d.ts.map +1 -0
- package/style/flat.js +341 -0
- package/tilecoord.d.ts +2 -2
- package/tilecoord.d.ts.map +1 -1
- package/tilecoord.js +7 -7
- package/tilegrid/TileGrid.d.ts +14 -14
- package/tilegrid/TileGrid.js +28 -28
- package/tilegrid/WMTS.d.ts +3 -3
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid/WMTS.js +7 -7
- package/tilegrid.d.ts +10 -10
- package/tilegrid.d.ts.map +1 -1
- package/tilegrid.js +25 -38
- package/uri.js +1 -1
- package/util.d.ts +2 -2
- package/util.d.ts.map +1 -1
- package/util.js +3 -7
- package/webgl/Buffer.d.ts +3 -3
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +5 -8
- package/webgl/Helper.d.ts +25 -25
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +26 -39
- package/webgl/PostProcessingPass.d.ts +7 -7
- package/webgl/PostProcessingPass.d.ts.map +1 -1
- package/webgl/PostProcessingPass.js +5 -5
- package/webgl/RenderTarget.d.ts +2 -2
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/RenderTarget.js +3 -3
- package/webgl/ShaderBuilder.js +1 -1
- package/webgl/TileTexture.js +1 -1
- package/webgl.d.ts +2 -2
- package/webgl.d.ts.map +1 -1
- package/webgl.js +4 -5
- package/worker/webgl.js +1 -1
- package/xml.d.ts +37 -37
- package/xml.d.ts.map +1 -1
- package/xml.js +63 -82
- package/PluggableMap.d.ts +0 -800
- package/PluggableMap.d.ts.map +0 -1
- package/PluggableMap.js +0 -1770
- package/layer/VectorTileRenderType.d.ts +0 -7
- package/layer/VectorTileRenderType.d.ts.map +0 -1
- package/layer/VectorTileRenderType.js +0 -34
- package/renderer/canvas/common.d.ts +0 -14
- package/renderer/canvas/common.d.ts.map +0 -1
- package/renderer/canvas/common.js +0 -21
package/Collection.d.ts
CHANGED
|
@@ -2,20 +2,21 @@
|
|
|
2
2
|
* @classdesc
|
|
3
3
|
* Events emitted by {@link module:ol/Collection~Collection} instances are instances of this
|
|
4
4
|
* type.
|
|
5
|
+
* @template T
|
|
5
6
|
*/
|
|
6
|
-
export class CollectionEvent extends Event {
|
|
7
|
+
export class CollectionEvent<T> extends Event {
|
|
7
8
|
/**
|
|
8
9
|
* @param {import("./CollectionEventType.js").default} type Type.
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {number}
|
|
10
|
+
* @param {T} element Element.
|
|
11
|
+
* @param {number} index The index of the added or removed element.
|
|
11
12
|
*/
|
|
12
|
-
constructor(type: any,
|
|
13
|
+
constructor(type: any, element: T, index: number);
|
|
13
14
|
/**
|
|
14
15
|
* The element that is added to or removed from the collection.
|
|
15
|
-
* @type {
|
|
16
|
+
* @type {T}
|
|
16
17
|
* @api
|
|
17
18
|
*/
|
|
18
|
-
element:
|
|
19
|
+
element: T;
|
|
19
20
|
/**
|
|
20
21
|
* The index of the added or removed element.
|
|
21
22
|
* @type {number}
|
|
@@ -27,7 +28,7 @@ export default Collection;
|
|
|
27
28
|
/**
|
|
28
29
|
* *
|
|
29
30
|
*/
|
|
30
|
-
export type CollectionOnSignature<Return> = import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default, Return> & import("./Observable").OnSignature<import("./ObjectEventType").Types | 'change:length', import("./Object").ObjectEvent, Return> & import("./Observable").OnSignature<'add' | 'remove', CollectionEvent
|
|
31
|
+
export type CollectionOnSignature<T, Return> = import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default, Return> & import("./Observable").OnSignature<import("./ObjectEventType").Types | 'change:length', import("./Object").ObjectEvent, Return> & import("./Observable").OnSignature<'add' | 'remove', CollectionEvent<T>, Return> & import("./Observable").CombinedOnSignature<import("./Observable").EventTypes | import("./ObjectEventType").Types | 'change:length' | 'add' | 'remove', Return>;
|
|
31
32
|
export type Options = {
|
|
32
33
|
/**
|
|
33
34
|
* Disallow the same item from being added to
|
|
@@ -37,10 +38,11 @@ export type Options = {
|
|
|
37
38
|
};
|
|
38
39
|
import Event from "./events/Event.js";
|
|
39
40
|
/***
|
|
41
|
+
* @template T
|
|
40
42
|
* @template Return
|
|
41
43
|
* @typedef {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default, Return> &
|
|
42
44
|
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:length', import("./Object").ObjectEvent, Return> &
|
|
43
|
-
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent
|
|
45
|
+
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent<T>, Return> &
|
|
44
46
|
* import("./Observable").CombinedOnSignature<import("./Observable").EventTypes|import("./ObjectEventType").Types|
|
|
45
47
|
* 'change:length'|'add'|'remove',Return>} CollectionOnSignature
|
|
46
48
|
*/
|
|
@@ -64,22 +66,22 @@ import Event from "./events/Event.js";
|
|
|
64
66
|
*/
|
|
65
67
|
declare class Collection<T> extends BaseObject {
|
|
66
68
|
/**
|
|
67
|
-
* @param {Array<T>} [
|
|
68
|
-
* @param {Options} [
|
|
69
|
+
* @param {Array<T>} [array] Array.
|
|
70
|
+
* @param {Options} [options] Collection options.
|
|
69
71
|
*/
|
|
70
|
-
constructor(
|
|
72
|
+
constructor(array?: T[] | undefined, options?: Options | undefined);
|
|
71
73
|
/***
|
|
72
|
-
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
74
|
+
* @type {CollectionOnSignature<T, import("./events").EventsKey>}
|
|
73
75
|
*/
|
|
74
|
-
on: CollectionOnSignature<import("./events").EventsKey>;
|
|
76
|
+
on: CollectionOnSignature<T, import("./events").EventsKey>;
|
|
75
77
|
/***
|
|
76
|
-
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
78
|
+
* @type {CollectionOnSignature<T, import("./events").EventsKey>}
|
|
77
79
|
*/
|
|
78
|
-
once: CollectionOnSignature<import("./events").EventsKey>;
|
|
80
|
+
once: CollectionOnSignature<T, import("./events").EventsKey>;
|
|
79
81
|
/***
|
|
80
|
-
* @type {CollectionOnSignature<void>}
|
|
82
|
+
* @type {CollectionOnSignature<T, void>}
|
|
81
83
|
*/
|
|
82
|
-
un: CollectionOnSignature<void>;
|
|
84
|
+
un: CollectionOnSignature<T, void>;
|
|
83
85
|
/**
|
|
84
86
|
* @private
|
|
85
87
|
* @type {boolean}
|
|
@@ -184,7 +186,7 @@ declare class Collection<T> extends BaseObject {
|
|
|
184
186
|
/**
|
|
185
187
|
* @private
|
|
186
188
|
* @param {T} elem Element.
|
|
187
|
-
* @param {number} [
|
|
189
|
+
* @param {number} [except] Optional index to ignore.
|
|
188
190
|
*/
|
|
189
191
|
private assertUnique_;
|
|
190
192
|
}
|
package/Collection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["Collection.js"],"names":[],"mappings":"AAgBA
|
|
1
|
+
{"version":3,"file":"Collection.d.ts","sourceRoot":"","sources":["Collection.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,gCAHW,CAAC,SACD,MAAM,EAkBhB;IAbC;;;;OAIG;IACH,SAHU,CAAC,CAGW;IAEtB;;;;OAIG;IACH,OAHU,MAAM,CAGE;CAErB;;;;;+CAKY,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,KAAK,GAAC,eAAe,EAAE,OAAO,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,GACjI,OAAW,cAAc,EAAE,WAAW,CAAC,KAAK,GAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,GAClF,OAAW,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,OAAO,mBAAmB,EAAE,KAAK,GAClH,eAAqB,GAAC,KAAK,GAAC,QAAQ,EAAC,MAAM,CAAC;;;;;;;;;AAP7C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;;OAGG;IACH,oEAuCC;IApCC;;OAEG;IACH,IAFU,sBAAsB,CAAC,EAAE,OAAO,UAAU,EAAE,SAAS,CAAC,CAEzD;IAEP;;OAEG;IACH,MAFU,sBAAsB,CAAC,EAAE,OAAO,UAAU,EAAE,SAAS,CAAC,CAEvD;IAET;;OAEG;IACH,IAFU,sBAAsB,CAAC,EAAE,IAAI,CAAC,CAEjC;IAIP;;;OAGG;IACH,gBAA+B;IAE/B;;;OAGG;IACH,eAAgC;IAWlC;;;OAGG;IACH,cAIC;IAED;;;;;;OAMG;IACH,YAJY,MAAM,CAAC,CAAC,GACR,WAAW,CAAC,CAAC,CAQxB;IAED;;;;;;OAMG;IACH,kBALoB,CAAC,QAAE,MAAM,QAAE,MAAM,CAAC,CAAC,gBAUtC;IAED;;;;;;;OAOG;IACH,YAHa,MAAM,CAAC,CAAC,CAKpB;IAED;;;;;OAKG;IACH,YAJW,MAAM,GACL,CAAC,CAKZ;IAED;;;;;OAKG;IACH,aAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,QACN,CAAC,QAeX;IAED;;;;;OAKG;IACH,OAHY,CAAC,GAAC,SAAS,CAKtB;IAED;;;;;OAKG;IACH,WAJW,CAAC,GACA,MAAM,CAUjB;IAED;;;;;OAKG;IACH,aAJW,CAAC,GACA,CAAC,GAAC,SAAS,CAWtB;IAED;;;;;;OAMG;IACH,gBAJW,MAAM,GACL,CAAC,GAAC,SAAS,CAgBtB;IAED;;;;;OAKG;IACH,aAJW,MAAM,QACN,CAAC,QA2BX;IAED;;OAEG;IACH,sBAEC;IAED;;;;OAIG;IACH,sBAMC;CACF"}
|
package/Collection.js
CHANGED
|
@@ -18,37 +18,39 @@ const Property = {
|
|
|
18
18
|
* @classdesc
|
|
19
19
|
* Events emitted by {@link module:ol/Collection~Collection} instances are instances of this
|
|
20
20
|
* type.
|
|
21
|
+
* @template T
|
|
21
22
|
*/
|
|
22
23
|
export class CollectionEvent extends Event {
|
|
23
24
|
/**
|
|
24
25
|
* @param {import("./CollectionEventType.js").default} type Type.
|
|
25
|
-
* @param {
|
|
26
|
-
* @param {number}
|
|
26
|
+
* @param {T} element Element.
|
|
27
|
+
* @param {number} index The index of the added or removed element.
|
|
27
28
|
*/
|
|
28
|
-
constructor(type,
|
|
29
|
+
constructor(type, element, index) {
|
|
29
30
|
super(type);
|
|
30
31
|
|
|
31
32
|
/**
|
|
32
33
|
* The element that is added to or removed from the collection.
|
|
33
|
-
* @type {
|
|
34
|
+
* @type {T}
|
|
34
35
|
* @api
|
|
35
36
|
*/
|
|
36
|
-
this.element =
|
|
37
|
+
this.element = element;
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
40
|
* The index of the added or removed element.
|
|
40
41
|
* @type {number}
|
|
41
42
|
* @api
|
|
42
43
|
*/
|
|
43
|
-
this.index =
|
|
44
|
+
this.index = index;
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/***
|
|
49
|
+
* @template T
|
|
48
50
|
* @template Return
|
|
49
51
|
* @typedef {import("./Observable").OnSignature<import("./Observable").EventTypes, import("./events/Event.js").default, Return> &
|
|
50
52
|
* import("./Observable").OnSignature<import("./ObjectEventType").Types|'change:length', import("./Object").ObjectEvent, Return> &
|
|
51
|
-
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent
|
|
53
|
+
* import("./Observable").OnSignature<'add'|'remove', CollectionEvent<T>, Return> &
|
|
52
54
|
* import("./Observable").CombinedOnSignature<import("./Observable").EventTypes|import("./ObjectEventType").Types|
|
|
53
55
|
* 'change:length'|'add'|'remove',Return>} CollectionOnSignature
|
|
54
56
|
*/
|
|
@@ -74,28 +76,28 @@ export class CollectionEvent extends Event {
|
|
|
74
76
|
*/
|
|
75
77
|
class Collection extends BaseObject {
|
|
76
78
|
/**
|
|
77
|
-
* @param {Array<T>} [
|
|
78
|
-
* @param {Options} [
|
|
79
|
+
* @param {Array<T>} [array] Array.
|
|
80
|
+
* @param {Options} [options] Collection options.
|
|
79
81
|
*/
|
|
80
|
-
constructor(
|
|
82
|
+
constructor(array, options) {
|
|
81
83
|
super();
|
|
82
84
|
|
|
83
85
|
/***
|
|
84
|
-
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
86
|
+
* @type {CollectionOnSignature<T, import("./events").EventsKey>}
|
|
85
87
|
*/
|
|
86
88
|
this.on;
|
|
87
89
|
|
|
88
90
|
/***
|
|
89
|
-
* @type {CollectionOnSignature<import("./events").EventsKey>}
|
|
91
|
+
* @type {CollectionOnSignature<T, import("./events").EventsKey>}
|
|
90
92
|
*/
|
|
91
93
|
this.once;
|
|
92
94
|
|
|
93
95
|
/***
|
|
94
|
-
* @type {CollectionOnSignature<void>}
|
|
96
|
+
* @type {CollectionOnSignature<T, void>}
|
|
95
97
|
*/
|
|
96
98
|
this.un;
|
|
97
99
|
|
|
98
|
-
|
|
100
|
+
options = options || {};
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
103
|
* @private
|
|
@@ -107,7 +109,7 @@ class Collection extends BaseObject {
|
|
|
107
109
|
* @private
|
|
108
110
|
* @type {!Array<T>}
|
|
109
111
|
*/
|
|
110
|
-
this.array_ =
|
|
112
|
+
this.array_ = array ? array : [];
|
|
111
113
|
|
|
112
114
|
if (this.unique_) {
|
|
113
115
|
for (let i = 0, ii = this.array_.length; i < ii; ++i) {
|
|
@@ -195,6 +197,9 @@ class Collection extends BaseObject {
|
|
|
195
197
|
* @api
|
|
196
198
|
*/
|
|
197
199
|
insertAt(index, elem) {
|
|
200
|
+
if (index < 0 || index > this.getLength()) {
|
|
201
|
+
throw new Error('Index out of bounds: ' + index);
|
|
202
|
+
}
|
|
198
203
|
if (this.unique_) {
|
|
199
204
|
this.assertUnique_(elem);
|
|
200
205
|
}
|
|
@@ -254,11 +259,16 @@ class Collection extends BaseObject {
|
|
|
254
259
|
* @api
|
|
255
260
|
*/
|
|
256
261
|
removeAt(index) {
|
|
262
|
+
if (index < 0 || index >= this.getLength()) {
|
|
263
|
+
return undefined;
|
|
264
|
+
}
|
|
257
265
|
const prev = this.array_[index];
|
|
258
266
|
this.array_.splice(index, 1);
|
|
259
267
|
this.updateLength_();
|
|
260
268
|
this.dispatchEvent(
|
|
261
|
-
|
|
269
|
+
/** @type {CollectionEvent<T>} */ (
|
|
270
|
+
new CollectionEvent(CollectionEventType.REMOVE, prev, index)
|
|
271
|
+
)
|
|
262
272
|
);
|
|
263
273
|
return prev;
|
|
264
274
|
}
|
|
@@ -271,24 +281,28 @@ class Collection extends BaseObject {
|
|
|
271
281
|
*/
|
|
272
282
|
setAt(index, elem) {
|
|
273
283
|
const n = this.getLength();
|
|
274
|
-
if (index
|
|
275
|
-
if (this.unique_) {
|
|
276
|
-
this.assertUnique_(elem, index);
|
|
277
|
-
}
|
|
278
|
-
const prev = this.array_[index];
|
|
279
|
-
this.array_[index] = elem;
|
|
280
|
-
this.dispatchEvent(
|
|
281
|
-
new CollectionEvent(CollectionEventType.REMOVE, prev, index)
|
|
282
|
-
);
|
|
283
|
-
this.dispatchEvent(
|
|
284
|
-
new CollectionEvent(CollectionEventType.ADD, elem, index)
|
|
285
|
-
);
|
|
286
|
-
} else {
|
|
287
|
-
for (let j = n; j < index; ++j) {
|
|
288
|
-
this.insertAt(j, undefined);
|
|
289
|
-
}
|
|
284
|
+
if (index >= n) {
|
|
290
285
|
this.insertAt(index, elem);
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
if (index < 0) {
|
|
289
|
+
throw new Error('Index out of bounds: ' + index);
|
|
291
290
|
}
|
|
291
|
+
if (this.unique_) {
|
|
292
|
+
this.assertUnique_(elem, index);
|
|
293
|
+
}
|
|
294
|
+
const prev = this.array_[index];
|
|
295
|
+
this.array_[index] = elem;
|
|
296
|
+
this.dispatchEvent(
|
|
297
|
+
/** @type {CollectionEvent<T>} */ (
|
|
298
|
+
new CollectionEvent(CollectionEventType.REMOVE, prev, index)
|
|
299
|
+
)
|
|
300
|
+
);
|
|
301
|
+
this.dispatchEvent(
|
|
302
|
+
/** @type {CollectionEvent<T>} */ (
|
|
303
|
+
new CollectionEvent(CollectionEventType.ADD, elem, index)
|
|
304
|
+
)
|
|
305
|
+
);
|
|
292
306
|
}
|
|
293
307
|
|
|
294
308
|
/**
|
|
@@ -301,11 +315,11 @@ class Collection extends BaseObject {
|
|
|
301
315
|
/**
|
|
302
316
|
* @private
|
|
303
317
|
* @param {T} elem Element.
|
|
304
|
-
* @param {number} [
|
|
318
|
+
* @param {number} [except] Optional index to ignore.
|
|
305
319
|
*/
|
|
306
|
-
assertUnique_(elem,
|
|
320
|
+
assertUnique_(elem, except) {
|
|
307
321
|
for (let i = 0, ii = this.array_.length; i < ii; ++i) {
|
|
308
|
-
if (this.array_[i] === elem && i !==
|
|
322
|
+
if (this.array_[i] === elem && i !== except) {
|
|
309
323
|
throw new AssertionError(58);
|
|
310
324
|
}
|
|
311
325
|
}
|
package/Feature.d.ts
CHANGED
|
@@ -65,20 +65,20 @@ export type ObjectWithGeometry<Geometry> = {
|
|
|
65
65
|
* import Polygon from 'ol/geom/Polygon';
|
|
66
66
|
* import Point from 'ol/geom/Point';
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
* const feature = new Feature({
|
|
69
69
|
* geometry: new Polygon(polyCoords),
|
|
70
70
|
* labelPoint: new Point(labelCoords),
|
|
71
|
-
* name: 'My Polygon'
|
|
71
|
+
* name: 'My Polygon',
|
|
72
72
|
* });
|
|
73
73
|
*
|
|
74
74
|
* // get the polygon geometry
|
|
75
|
-
*
|
|
75
|
+
* const poly = feature.getGeometry();
|
|
76
76
|
*
|
|
77
77
|
* // Render the feature as a point using the coordinates from labelPoint
|
|
78
78
|
* feature.setGeometryName('labelPoint');
|
|
79
79
|
*
|
|
80
80
|
* // get the point geometry
|
|
81
|
-
*
|
|
81
|
+
* const point = feature.getGeometry();
|
|
82
82
|
* ```
|
|
83
83
|
*
|
|
84
84
|
* @api
|
|
@@ -86,12 +86,12 @@ export type ObjectWithGeometry<Geometry> = {
|
|
|
86
86
|
*/
|
|
87
87
|
declare class Feature<Geometry extends import("./geom/Geometry.js").default = import("./geom/Geometry.js").default> extends BaseObject {
|
|
88
88
|
/**
|
|
89
|
-
* @param {Geometry|ObjectWithGeometry<Geometry>} [
|
|
89
|
+
* @param {Geometry|ObjectWithGeometry<Geometry>} [geometryOrProperties]
|
|
90
90
|
* You may pass a Geometry object directly, or an object literal containing
|
|
91
91
|
* properties. If you pass an object literal, you may include a Geometry
|
|
92
92
|
* associated with a `geometry` key.
|
|
93
93
|
*/
|
|
94
|
-
constructor(
|
|
94
|
+
constructor(geometryOrProperties?: Geometry | ObjectWithGeometry<Geometry> | undefined);
|
|
95
95
|
/***
|
|
96
96
|
* @type {FeatureOnSignature<import("./events").EventsKey>}
|
|
97
97
|
*/
|
|
@@ -197,11 +197,11 @@ declare class Feature<Geometry extends import("./geom/Geometry.js").default = im
|
|
|
197
197
|
* single style object, an array of styles, or a function that takes a
|
|
198
198
|
* resolution and returns an array of styles. To unset the feature style, call
|
|
199
199
|
* `setStyle()` without arguments or a falsey value.
|
|
200
|
-
* @param {import("./style/Style.js").StyleLike} [
|
|
200
|
+
* @param {import("./style/Style.js").StyleLike} [style] Style for this feature.
|
|
201
201
|
* @api
|
|
202
202
|
* @fires module:ol/events/Event~BaseEvent#event:change
|
|
203
203
|
*/
|
|
204
|
-
setStyle(
|
|
204
|
+
setStyle(style?: import("./style/Style.js").StyleLike | undefined): void;
|
|
205
205
|
/**
|
|
206
206
|
* Set the feature id. The feature id is considered stable and may be used when
|
|
207
207
|
* requesting features or comparing identifiers returned from a remote source.
|
package/Feature.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"AAkTA;;;;;;;GAOG;AACH,yCAJY,OAAO,kBAAkB,EAAE,aAAa,GAAE,MAAM,OAAO,kBAAkB,EAAE,OAAO,CAAC,GAAE,OAAO,kBAAkB,EAAE,OAAO,GAEvH,OAAO,kBAAkB,EAAE,aAAa,CAqBnD;;2BApUY,cAAc,GAAC,cAAc,qBAAqB,EAAE,OAAO;0BAI3D,OAAO,GAAC,OAAO,qBAAqB,EAAE,OAAO;;;;yCAK7C,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,KAAK,GAAC,iBAAiB,EAAE,OAAO,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,GACnI,OAAW,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,OAAO,mBAAmB,EAAE,KAAK,GAC3G,iBAAiB,EAAE,MAAM,CAAC;;;;2CAKrB;QAAO,MAAM;IAAO;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE;AAlBxD;;GAEG;AAEH;;GAEG;AAEH;;;;;;GAMG;AAEH;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH;IACE;;;;;OAKG;IACH,wFAiEC;IA9DC;;OAEG;IACH,IAFU,mBAAmB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEnD;IAEP;;OAEG;IACH,MAFU,mBAAmB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEjD;IAET;;OAEG;IACH,IAFU,mBAAmB,IAAI,CAAC,CAE3B;IAEP;;;OAGG;IACH,YAAoB;IAEpB;;;OAGG;IACH,sBAA+B;IAE/B;;;;OAIG;IACH,eAAkB;IAElB;;;OAGG;IACH,uBAA+B;IAE/B;;;OAGG;IACH,2BAA8B;IAoBhC;;;;;OAKG;IACH,SAHY,QAAQ,QAAQ,CAAC,CAiB5B;IAED;;;;;;;OAOG;IACH,eAJY,QAAQ,GAAC,SAAS,CAM7B;IAED;;;;;;OAMG;IACH,SAHY,MAAM,GAAC,MAAM,GAAC,SAAS,CAKlC;IAED;;;;;;OAMG;IACH,mBAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,YAHY,OAAO,kBAAkB,EAAE,SAAS,GAAC,SAAS,CAKzD;IAED;;;;;OAKG;IACH,oBAJY,OAAO,kBAAkB,EAAE,aAAa,GAAC,SAAS,CAM7D;IAED;;OAEG;IACH,8BAEC;IAED;;OAEG;IACH,+BAeC;IAED;;;;;;OAMG;IACH,sBAJW,QAAQ,GAAC,SAAS,QAM5B;IAED;;;;;;;;OAQG;IACH,yEAIC;IAED;;;;;;;;OAQG;IACH,UAJW,MAAM,GAAC,MAAM,GAAC,SAAS,QAOjC;IAED;;;;;;OAMG;IACH,sBAHW,MAAM,QAQhB;CACF"}
|
package/Feature.js
CHANGED
|
@@ -53,20 +53,20 @@ import {listen, unlistenByKey} from './events.js';
|
|
|
53
53
|
* import Polygon from 'ol/geom/Polygon';
|
|
54
54
|
* import Point from 'ol/geom/Point';
|
|
55
55
|
*
|
|
56
|
-
*
|
|
56
|
+
* const feature = new Feature({
|
|
57
57
|
* geometry: new Polygon(polyCoords),
|
|
58
58
|
* labelPoint: new Point(labelCoords),
|
|
59
|
-
* name: 'My Polygon'
|
|
59
|
+
* name: 'My Polygon',
|
|
60
60
|
* });
|
|
61
61
|
*
|
|
62
62
|
* // get the polygon geometry
|
|
63
|
-
*
|
|
63
|
+
* const poly = feature.getGeometry();
|
|
64
64
|
*
|
|
65
65
|
* // Render the feature as a point using the coordinates from labelPoint
|
|
66
66
|
* feature.setGeometryName('labelPoint');
|
|
67
67
|
*
|
|
68
68
|
* // get the point geometry
|
|
69
|
-
*
|
|
69
|
+
* const point = feature.getGeometry();
|
|
70
70
|
* ```
|
|
71
71
|
*
|
|
72
72
|
* @api
|
|
@@ -74,12 +74,12 @@ import {listen, unlistenByKey} from './events.js';
|
|
|
74
74
|
*/
|
|
75
75
|
class Feature extends BaseObject {
|
|
76
76
|
/**
|
|
77
|
-
* @param {Geometry|ObjectWithGeometry<Geometry>} [
|
|
77
|
+
* @param {Geometry|ObjectWithGeometry<Geometry>} [geometryOrProperties]
|
|
78
78
|
* You may pass a Geometry object directly, or an object literal containing
|
|
79
79
|
* properties. If you pass an object literal, you may include a Geometry
|
|
80
80
|
* associated with a `geometry` key.
|
|
81
81
|
*/
|
|
82
|
-
constructor(
|
|
82
|
+
constructor(geometryOrProperties) {
|
|
83
83
|
super();
|
|
84
84
|
|
|
85
85
|
/***
|
|
@@ -130,17 +130,17 @@ class Feature extends BaseObject {
|
|
|
130
130
|
|
|
131
131
|
this.addChangeListener(this.geometryName_, this.handleGeometryChanged_);
|
|
132
132
|
|
|
133
|
-
if (
|
|
133
|
+
if (geometryOrProperties) {
|
|
134
134
|
if (
|
|
135
135
|
typeof (
|
|
136
|
-
/** @type {?} */ (
|
|
136
|
+
/** @type {?} */ (geometryOrProperties).getSimplifiedGeometry
|
|
137
137
|
) === 'function'
|
|
138
138
|
) {
|
|
139
|
-
const geometry = /** @type {Geometry} */ (
|
|
139
|
+
const geometry = /** @type {Geometry} */ (geometryOrProperties);
|
|
140
140
|
this.setGeometry(geometry);
|
|
141
141
|
} else {
|
|
142
142
|
/** @type {Object<string, *>} */
|
|
143
|
-
const properties =
|
|
143
|
+
const properties = geometryOrProperties;
|
|
144
144
|
this.setProperties(properties);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -265,15 +265,13 @@ class Feature extends BaseObject {
|
|
|
265
265
|
* single style object, an array of styles, or a function that takes a
|
|
266
266
|
* resolution and returns an array of styles. To unset the feature style, call
|
|
267
267
|
* `setStyle()` without arguments or a falsey value.
|
|
268
|
-
* @param {import("./style/Style.js").StyleLike} [
|
|
268
|
+
* @param {import("./style/Style.js").StyleLike} [style] Style for this feature.
|
|
269
269
|
* @api
|
|
270
270
|
* @fires module:ol/events/Event~BaseEvent#event:change
|
|
271
271
|
*/
|
|
272
|
-
setStyle(
|
|
273
|
-
this.style_ =
|
|
274
|
-
this.styleFunction_ = !
|
|
275
|
-
? undefined
|
|
276
|
-
: createStyleFunction(opt_style);
|
|
272
|
+
setStyle(style) {
|
|
273
|
+
this.style_ = style;
|
|
274
|
+
this.styleFunction_ = !style ? undefined : createStyleFunction(style);
|
|
277
275
|
this.changed();
|
|
278
276
|
}
|
|
279
277
|
|
package/Geolocation.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export type GeolocationOnSignature<Return> = import("./Observable").OnSignature<
|
|
|
54
54
|
*
|
|
55
55
|
* Example:
|
|
56
56
|
*
|
|
57
|
-
*
|
|
57
|
+
* const geolocation = new Geolocation({
|
|
58
58
|
* // take the projection to use from the map's view
|
|
59
59
|
* projection: view.getProjection()
|
|
60
60
|
* });
|
|
@@ -68,9 +68,9 @@ export type GeolocationOnSignature<Return> = import("./Observable").OnSignature<
|
|
|
68
68
|
*/
|
|
69
69
|
declare class Geolocation extends BaseObject {
|
|
70
70
|
/**
|
|
71
|
-
* @param {Options} [
|
|
71
|
+
* @param {Options} [options] Options.
|
|
72
72
|
*/
|
|
73
|
-
constructor(
|
|
73
|
+
constructor(options?: Options | undefined);
|
|
74
74
|
/***
|
|
75
75
|
* @type {GeolocationOnSignature<import("./events").EventsKey>}
|
|
76
76
|
*/
|
package/Geolocation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Geolocation.d.ts","sourceRoot":"","sources":["Geolocation.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;iBA2Dc,OAAO,WAAW,EAAE,cAAc;;0CAKnC,OAAO,mBAAmB,EAAE,KAAK,GAAC,iBAAiB,GAAC,yBAAyB,GAAC,iBAAiB,GAC3G,yBAA8B,GAAC,gBAAgB,GAAC,iBAAiB,GAAC,mBAAmB,GAAC,cAAc,GAAC,iBAAiB,GACtH,wBAA6B;;;;6CAKjB,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,2BAA2B,EAAE,OAAO,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,GAC3G,OAAW,cAAc,EAAE,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,GACzE,OAAW,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,2BAA2B,GAC5G,OAAa,EAAE,MAAM,CAAC;AAtBvB;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"Geolocation.d.ts","sourceRoot":"","sources":["Geolocation.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;iBA2Dc,OAAO,WAAW,EAAE,cAAc;;0CAKnC,OAAO,mBAAmB,EAAE,KAAK,GAAC,iBAAiB,GAAC,yBAAyB,GAAC,iBAAiB,GAC3G,yBAA8B,GAAC,gBAAgB,GAAC,iBAAiB,GAAC,mBAAmB,GAAC,cAAc,GAAC,iBAAiB,GACtH,wBAA6B;;;;6CAKjB,OAAO,cAAc,EAAE,WAAW,CAAC,OAAO,cAAc,EAAE,UAAU,EAAE,OAAO,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,GAC9H,OAAW,cAAc,EAAE,WAAW,CAAC,2BAA2B,EAAE,OAAO,UAAU,EAAE,WAAW,EAAE,MAAM,CAAC,GAC3G,OAAW,cAAc,EAAE,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,GACzE,OAAW,cAAc,EAAE,mBAAmB,CAAC,OAAO,cAAc,EAAE,UAAU,GAAC,2BAA2B,GAC5G,OAAa,EAAE,MAAM,CAAC;AAtBvB;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH;IACE;;OAEG;IACH,2CAkDC;IA/CC;;OAEG;IACH,IAFU,uBAAuB,OAAO,UAAU,EAAE,SAAS,CAAC,CAEvD;IAEP;;OAEG;IACH,MAFU,uBAAuB,OAAO,UAAU,EAAE,SAAS,CAAC,CAErD;IAET;;OAEG;IACH,IAFU,uBAAuB,IAAI,CAAC,CAE/B;IAIP;;;;OAIG;IACH,kBAAqB;IAErB;;;OAGG;IACH,mBAAmC;IAEnC;;;OAGG;IACH,iBAAyB;IAuB3B;;OAEG;IACH,iCAWC;IAED;;OAEG;IACH,+BAcC;IAED;;;OAGG;IACH,wBA4BC;IAED;;;OAGG;IACH,uBAEC;IAED;;;;;;OAMG;IACH,eALY,MAAM,GAAC,SAAS,CAO3B;IAED;;;;;OAKG;IACH,uBAJa,OAAO,mBAAmB,EAAE,OAAO,QAQ/C;IAED;;;;;;OAMG;IACH,eALY,MAAM,GAAC,SAAS,CAO3B;IAED;;;;;;OAMG;IACH,uBALY,MAAM,GAAC,SAAS,CAS3B;IAED;;;;;;;OAOG;IACH,cAJY,MAAM,GAAC,SAAS,CAM3B;IAED;;;;;;OAMG;IACH,eALY,OAAO,iBAAiB,EAAE,UAAU,GAAC,SAAS,CASzD;IAED;;;;;;OAMG;IACH,iBALY,OAAO,sBAAsB,EAAE,OAAO,GAAC,SAAS,CAS3D;IAED;;;;;;OAMG;IACH,YALY,MAAM,GAAC,SAAS,CAO3B;IAED;;;;;OAKG;IACH,eAJY,OAAO,CAMlB;IAED;;;;;;;;OAQG;IACH,sBANY,eAAe,GAAC,SAAS,CAUpC;IAED;;;;;;OAMG;IACH,0BALW,OAAO,WAAW,EAAE,cAAc,QAO5C;IAED;;;;;OAKG;IACH,sBAJW,OAAO,QAMjB;IAED;;;;;;;;OAQG;IACH,4BANW,eAAe,QAQzB;CACF;AA9WD;;;GAGG;AACH;IACE;;OAEG;IACH,mBAFW,wBAAwB,EAclC;IATC;;OAEG;IACH,MAFU,MAAM,CAEM;IAEtB;;OAEG;IACH,SAFU,MAAM,CAEY;CAE/B"}
|
package/Geolocation.js
CHANGED
|
@@ -87,7 +87,7 @@ class GeolocationError extends BaseEvent {
|
|
|
87
87
|
*
|
|
88
88
|
* Example:
|
|
89
89
|
*
|
|
90
|
-
*
|
|
90
|
+
* const geolocation = new Geolocation({
|
|
91
91
|
* // take the projection to use from the map's view
|
|
92
92
|
* projection: view.getProjection()
|
|
93
93
|
* });
|
|
@@ -101,9 +101,9 @@ class GeolocationError extends BaseEvent {
|
|
|
101
101
|
*/
|
|
102
102
|
class Geolocation extends BaseObject {
|
|
103
103
|
/**
|
|
104
|
-
* @param {Options} [
|
|
104
|
+
* @param {Options} [options] Options.
|
|
105
105
|
*/
|
|
106
|
-
constructor(
|
|
106
|
+
constructor(options) {
|
|
107
107
|
super();
|
|
108
108
|
|
|
109
109
|
/***
|
|
@@ -121,7 +121,7 @@ class Geolocation extends BaseObject {
|
|
|
121
121
|
*/
|
|
122
122
|
this.un;
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
options = options || {};
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* The unprojected (EPSG:4326) device position.
|
package/ImageCanvas.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ declare class ImageCanvas extends ImageBase {
|
|
|
20
20
|
* @param {number} resolution Resolution.
|
|
21
21
|
* @param {number} pixelRatio Pixel ratio.
|
|
22
22
|
* @param {HTMLCanvasElement} canvas Canvas.
|
|
23
|
-
* @param {Loader} [
|
|
23
|
+
* @param {Loader} [loader] Optional loader function to
|
|
24
24
|
* support asynchronous canvas drawing.
|
|
25
25
|
*/
|
|
26
|
-
constructor(extent: import("./extent.js").Extent, resolution: number, pixelRatio: number, canvas: HTMLCanvasElement,
|
|
26
|
+
constructor(extent: import("./extent.js").Extent, resolution: number, pixelRatio: number, canvas: HTMLCanvasElement, loader?: Loader | undefined);
|
|
27
27
|
/**
|
|
28
28
|
* Optional canvas loader function.
|
|
29
29
|
* @type {?Loader}
|
package/ImageCanvas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;mCAY+B,KAAK,iBAAI,IAAI,KAAG,IAAI;AANnD;;;;;;;GAOG;AAEH;IACE;;;;;;;OAOG;IACH,oBAPW,OAAO,aAAa,EAAE,MAAM,cAC5B,MAAM,cACN,MAAM,UACN,iBAAiB
|
|
1
|
+
{"version":3,"file":"ImageCanvas.d.ts","sourceRoot":"","sources":["ImageCanvas.js"],"names":[],"mappings":";;;;;;;mCAY+B,KAAK,iBAAI,IAAI,KAAG,IAAI;AANnD;;;;;;;GAOG;AAEH;IACE;;;;;;;OAOG;IACH,oBAPW,OAAO,aAAa,EAAE,MAAM,cAC5B,MAAM,cACN,MAAM,UACN,iBAAiB,+BA2B3B;IAlBC;;;;OAIG;IACH,gBAAmD;IAEnD;;;OAGG;IACH,gBAAqB;IAErB;;;OAGG;IACH,eAAkB;IAGpB;;;OAGG;IACH,YAFa,KAAK,QAIjB;IAED;;;;OAIG;IACH,oBAQC;IAaD;;OAEG;IACH,YAFY,iBAAiB,CAI5B;CACF"}
|
package/ImageCanvas.js
CHANGED
|
@@ -19,12 +19,11 @@ class ImageCanvas extends ImageBase {
|
|
|
19
19
|
* @param {number} resolution Resolution.
|
|
20
20
|
* @param {number} pixelRatio Pixel ratio.
|
|
21
21
|
* @param {HTMLCanvasElement} canvas Canvas.
|
|
22
|
-
* @param {Loader} [
|
|
22
|
+
* @param {Loader} [loader] Optional loader function to
|
|
23
23
|
* support asynchronous canvas drawing.
|
|
24
24
|
*/
|
|
25
|
-
constructor(extent, resolution, pixelRatio, canvas,
|
|
26
|
-
const state =
|
|
27
|
-
opt_loader !== undefined ? ImageState.IDLE : ImageState.LOADED;
|
|
25
|
+
constructor(extent, resolution, pixelRatio, canvas, loader) {
|
|
26
|
+
const state = loader !== undefined ? ImageState.IDLE : ImageState.LOADED;
|
|
28
27
|
|
|
29
28
|
super(extent, resolution, pixelRatio, state);
|
|
30
29
|
|
|
@@ -33,7 +32,7 @@ class ImageCanvas extends ImageBase {
|
|
|
33
32
|
* @type {?Loader}
|
|
34
33
|
* @private
|
|
35
34
|
*/
|
|
36
|
-
this.loader_ =
|
|
35
|
+
this.loader_ = loader !== undefined ? loader : null;
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* @private
|
package/ImageTile.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ declare class ImageTile extends Tile {
|
|
|
6
6
|
* @param {string} src Image source URI.
|
|
7
7
|
* @param {?string} crossOrigin Cross origin.
|
|
8
8
|
* @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
|
|
9
|
-
* @param {import("./Tile.js").Options} [
|
|
9
|
+
* @param {import("./Tile.js").Options} [options] Tile options.
|
|
10
10
|
*/
|
|
11
|
-
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, src: string, crossOrigin: string | null, tileLoadFunction: import("./Tile.js").LoadFunction,
|
|
11
|
+
constructor(tileCoord: import("./tilecoord.js").TileCoord, state: any, src: string, crossOrigin: string | null, tileLoadFunction: import("./Tile.js").LoadFunction, options?: import("./Tile.js").Options | undefined);
|
|
12
12
|
/**
|
|
13
13
|
* @private
|
|
14
14
|
* @type {?string}
|
package/ImageTile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTile.d.ts","sourceRoot":"","sources":["ImageTile.js"],"names":[],"mappings":";AAQA;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,gBAAgB,EAAE,SAAS,mBAElC,MAAM,eACL,MAAM,2BACP,OAAO,WAAW,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ImageTile.d.ts","sourceRoot":"","sources":["ImageTile.js"],"names":[],"mappings":";AAQA;IACE;;;;;;;OAOG;IACH,uBAPW,OAAO,gBAAgB,EAAE,SAAS,mBAElC,MAAM,eACL,MAAM,2BACP,OAAO,WAAW,EAAE,YAAY,qDA0C1C;IApCC;;;OAGG;IACH,qBAA+B;IAE/B;;;;;OAKG;IACH,aAAe;IAIf;;;OAGG;IACH,eAAyB;IAKzB;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,0BAAyC;IAG3C;;;;OAIG;IACH,YAHY,iBAAiB,GAAC,gBAAgB,GAAC,gBAAgB,CAK9D;IAED;;;OAGG;IACH,kBAFW,iBAAiB,GAAC,gBAAgB,QAO5C;IAED;;;;OAIG;IACH,0BAKC;IAED;;;;OAIG;IACH,yBASC;IA2DD;;;;OAIG;IACH,uBAKC;CACF"}
|
package/ImageTile.js
CHANGED
|
@@ -13,17 +13,10 @@ class ImageTile extends Tile {
|
|
|
13
13
|
* @param {string} src Image source URI.
|
|
14
14
|
* @param {?string} crossOrigin Cross origin.
|
|
15
15
|
* @param {import("./Tile.js").LoadFunction} tileLoadFunction Tile load function.
|
|
16
|
-
* @param {import("./Tile.js").Options} [
|
|
16
|
+
* @param {import("./Tile.js").Options} [options] Tile options.
|
|
17
17
|
*/
|
|
18
|
-
constructor(
|
|
19
|
-
tileCoord,
|
|
20
|
-
state,
|
|
21
|
-
src,
|
|
22
|
-
crossOrigin,
|
|
23
|
-
tileLoadFunction,
|
|
24
|
-
opt_options
|
|
25
|
-
) {
|
|
26
|
-
super(tileCoord, state, opt_options);
|
|
18
|
+
constructor(tileCoord, state, src, crossOrigin, tileLoadFunction, options) {
|
|
19
|
+
super(tileCoord, state, options);
|
|
27
20
|
|
|
28
21
|
/**
|
|
29
22
|
* @private
|