ol 7.0.0-dev.1660306204497 → 7.0.0-dev.1660487589130
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 +4 -4
- package/Collection.d.ts.map +1 -1
- package/Collection.js +8 -8
- package/Feature.d.ts +4 -4
- package/Feature.d.ts.map +1 -1
- package/Feature.js +10 -12
- package/Geolocation.d.ts +2 -2
- package/Geolocation.d.ts.map +1 -1
- package/Geolocation.js +3 -3
- 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 +12 -12
- package/Map.d.ts.map +1 -1
- package/Map.js +23 -23
- package/MapBrowserEvent.d.ts +4 -4
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEvent.js +7 -14
- package/MapEvent.d.ts +2 -2
- package/MapEvent.d.ts.map +1 -1
- package/MapEvent.js +3 -3
- package/Object.d.ts +8 -8
- package/Object.d.ts.map +1 -1
- package/Object.js +13 -13
- package/Overlay.d.ts +2 -2
- package/Overlay.d.ts.map +1 -1
- package/Overlay.js +3 -3
- package/Tile.d.ts +2 -2
- package/Tile.d.ts.map +1 -1
- package/Tile.js +3 -3
- package/TileCache.d.ts +1 -1
- package/TileCache.d.ts.map +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 +96 -103
- package/array.d.ts +5 -5
- package/array.d.ts.map +1 -1
- package/array.js +8 -8
- package/centerconstraint.js +6 -6
- package/control/Attribution.d.ts +2 -2
- package/control/Attribution.d.ts.map +1 -1
- package/control/Attribution.js +3 -3
- package/control/FullScreen.d.ts +2 -2
- package/control/FullScreen.d.ts.map +1 -1
- package/control/FullScreen.js +3 -3
- package/control/MousePosition.d.ts +2 -2
- package/control/MousePosition.d.ts.map +1 -1
- package/control/MousePosition.js +3 -3
- package/control/OverviewMap.d.ts +2 -2
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/OverviewMap.js +3 -3
- 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 +2 -2
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/ScaleLine.js +3 -3
- 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 +3 -3
- 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 +2 -2
- package/control/defaults.d.ts.map +1 -1
- package/control/defaults.js +3 -3
- package/coordinate.d.ts +12 -12
- package/coordinate.d.ts.map +1 -1
- package/coordinate.js +20 -21
- 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 +7 -7
- 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 +45 -50
- package/format/Feature.d.ts +18 -18
- package/format/Feature.d.ts.map +1 -1
- package/format/Feature.js +33 -41
- 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 +15 -18
- package/format/GML3.d.ts +7 -7
- package/format/GML3.d.ts.map +1 -1
- package/format/GML3.js +26 -29
- 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 +14 -14
- 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 +60 -65
- 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 -2
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +22 -22
- package/format/MVT.d.ts +5 -5
- package/format/MVT.d.ts.map +1 -1
- package/format/MVT.js +7 -9
- 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 +13 -13
- package/format/WFS.d.ts +7 -7
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +15 -18
- package/format/WKB.d.ts +8 -8
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +21 -21
- 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 -9
- 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/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 +16 -16
- 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/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 +5 -5
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragAndDrop.js +8 -8
- 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 +3 -3
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Draw.js +15 -13
- package/interaction/Extent.d.ts +2 -2
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +13 -13
- package/interaction/Interaction.d.ts +7 -7
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/Interaction.js +12 -12
- 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 +2 -2
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Link.js +4 -4
- package/interaction/Modify.d.ts +1 -1
- package/interaction/Modify.js +3 -3
- package/interaction/MouseWheelZoom.d.ts +2 -2
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/MouseWheelZoom.js +3 -3
- 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 +2 -2
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Select.js +3 -3
- package/interaction/Snap.d.ts +6 -6
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +9 -9
- package/interaction/Translate.d.ts +2 -2
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +3 -3
- package/interaction/defaults.d.ts +2 -2
- package/interaction/defaults.d.ts.map +1 -1
- package/interaction/defaults.js +3 -3
- package/layer/Base.d.ts +8 -8
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +10 -10
- package/layer/BaseImage.d.ts +2 -2
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseImage.js +3 -3
- package/layer/BaseTile.d.ts +2 -2
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseTile.js +3 -3
- package/layer/BaseVector.d.ts +4 -4
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +21 -21
- package/layer/Graticule.d.ts +2 -2
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Graticule.js +6 -10
- package/layer/Group.d.ts +2 -2
- package/layer/Group.d.ts.map +1 -1
- package/layer/Group.js +11 -11
- package/layer/Heatmap.d.ts +2 -2
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Heatmap.js +3 -3
- package/layer/Image.d.ts +2 -2
- package/layer/Image.d.ts.map +1 -1
- package/layer/Image.js +3 -3
- package/layer/Layer.js +6 -6
- 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 +2 -2
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorImage.js +3 -3
- package/layer/VectorTile.d.ts +3 -3
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/VectorTile.js +4 -4
- package/layer/WebGLTile.d.ts +2 -2
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +3 -3
- package/net.d.ts +3 -3
- package/net.d.ts.map +1 -1
- package/net.js +6 -6
- package/package.json +1 -1
- package/proj/epsg3857.d.ts +6 -6
- package/proj/epsg3857.d.ts.map +1 -1
- package/proj/epsg3857.js +8 -10
- package/proj/epsg4326.js +3 -3
- package/proj.d.ts +16 -16
- package/proj.d.ts.map +1 -1
- package/proj.js +38 -39
- package/render/Event.d.ts +4 -4
- package/render/Event.d.ts.map +1 -1
- package/render/Event.js +7 -7
- 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 +31 -33
- package/render/canvas/ExecutorGroup.d.ts +5 -5
- package/render/canvas/ExecutorGroup.d.ts.map +1 -1
- package/render/canvas/ExecutorGroup.js +10 -10
- 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 +3 -3
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +6 -6
- 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/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 +2 -2
- package/render.d.ts.map +1 -1
- package/render.js +3 -3
- package/renderer/canvas/Layer.d.ts +2 -2
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/Layer.js +6 -6
- package/renderer/canvas/TileLayer.d.ts +2 -2
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.js +4 -4
- package/renderer/canvas/VectorLayer.d.ts +5 -5
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.js +11 -11
- package/renderer/canvas/VectorTileLayer.d.ts +2 -2
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.js +4 -4
- 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 +2 -2
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/Layer.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.d.ts +3 -3
- package/reproj.d.ts.map +1 -1
- package/reproj.js +8 -8
- 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/Cluster.js +3 -3
- package/source/IIIF.d.ts +2 -2
- package/source/IIIF.d.ts.map +1 -1
- package/source/IIIF.js +26 -26
- package/source/ImageArcGISRest.d.ts +2 -2
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageArcGISRest.js +3 -3
- package/source/ImageCanvas.d.ts +2 -2
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageCanvas.js +3 -3
- package/source/ImageWMS.d.ts +7 -7
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/ImageWMS.js +5 -5
- package/source/OSM.d.ts +2 -2
- package/source/OSM.d.ts.map +1 -1
- package/source/OSM.js +3 -3
- package/source/Raster.d.ts +2 -2
- package/source/Raster.d.ts.map +1 -1
- package/source/Raster.js +3 -3
- 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 -2
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileArcGISRest.js +3 -3
- package/source/TileDebug.d.ts +2 -2
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileDebug.js +3 -3
- package/source/TileWMS.d.ts +2 -2
- package/source/TileWMS.d.ts.map +1 -1
- package/source/TileWMS.js +3 -3
- 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 +13 -13
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +21 -22
- package/source/XYZ.d.ts +2 -2
- package/source/XYZ.d.ts.map +1 -1
- package/source/XYZ.js +3 -3
- package/source/Zoomify.d.ts +4 -4
- package/source/Zoomify.d.ts.map +1 -1
- package/source/Zoomify.js +5 -7
- 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 +2 -2
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +3 -3
- package/style/Stroke.d.ts +2 -2
- package/style/Stroke.d.ts.map +1 -1
- package/style/Stroke.js +3 -3
- 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 +2 -2
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +3 -3
- package/style/expressions.js +7 -7
- 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 +6 -6
- package/tilegrid.d.ts +10 -10
- package/tilegrid.d.ts.map +1 -1
- package/tilegrid.js +24 -36
- package/util.js +1 -1
- package/webgl/Buffer.d.ts +2 -2
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +3 -3
- package/webgl/Helper.d.ts +9 -9
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +15 -28
- package/webgl/RenderTarget.d.ts +2 -2
- package/webgl/RenderTarget.d.ts.map +1 -1
- package/webgl/RenderTarget.js +3 -3
- package/webgl.d.ts +2 -2
- package/webgl.d.ts.map +1 -1
- package/webgl.js +4 -4
- package/xml.d.ts +37 -37
- package/xml.d.ts.map +1 -1
- package/xml.js +63 -82
package/format/JSONFeature.js
CHANGED
|
@@ -29,14 +29,14 @@ class JSONFeature extends FeatureFormat {
|
|
|
29
29
|
* read a feature collection.
|
|
30
30
|
*
|
|
31
31
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
32
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
32
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
33
33
|
* @return {import("../Feature.js").default} Feature.
|
|
34
34
|
* @api
|
|
35
35
|
*/
|
|
36
|
-
readFeature(source,
|
|
36
|
+
readFeature(source, options) {
|
|
37
37
|
return this.readFeatureFromObject(
|
|
38
38
|
getObject(source),
|
|
39
|
-
this.getReadOptions(source,
|
|
39
|
+
this.getReadOptions(source, options)
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -45,36 +45,36 @@ class JSONFeature extends FeatureFormat {
|
|
|
45
45
|
* collection.
|
|
46
46
|
*
|
|
47
47
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
48
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
48
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
49
49
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
50
50
|
* @api
|
|
51
51
|
*/
|
|
52
|
-
readFeatures(source,
|
|
52
|
+
readFeatures(source, options) {
|
|
53
53
|
return this.readFeaturesFromObject(
|
|
54
54
|
getObject(source),
|
|
55
|
-
this.getReadOptions(source,
|
|
55
|
+
this.getReadOptions(source, options)
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @abstract
|
|
61
61
|
* @param {Object} object Object.
|
|
62
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
62
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
63
63
|
* @protected
|
|
64
64
|
* @return {import("../Feature.js").default} Feature.
|
|
65
65
|
*/
|
|
66
|
-
readFeatureFromObject(object,
|
|
66
|
+
readFeatureFromObject(object, options) {
|
|
67
67
|
return abstract();
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* @abstract
|
|
72
72
|
* @param {Object} object Object.
|
|
73
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
73
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
74
74
|
* @protected
|
|
75
75
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
76
76
|
*/
|
|
77
|
-
readFeaturesFromObject(object,
|
|
77
|
+
readFeaturesFromObject(object, options) {
|
|
78
78
|
return abstract();
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -82,25 +82,25 @@ class JSONFeature extends FeatureFormat {
|
|
|
82
82
|
* Read a geometry.
|
|
83
83
|
*
|
|
84
84
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
85
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
85
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
86
86
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
87
87
|
* @api
|
|
88
88
|
*/
|
|
89
|
-
readGeometry(source,
|
|
89
|
+
readGeometry(source, options) {
|
|
90
90
|
return this.readGeometryFromObject(
|
|
91
91
|
getObject(source),
|
|
92
|
-
this.getReadOptions(source,
|
|
92
|
+
this.getReadOptions(source, options)
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* @abstract
|
|
98
98
|
* @param {Object} object Object.
|
|
99
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
99
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
100
100
|
* @protected
|
|
101
101
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
102
102
|
*/
|
|
103
|
-
readGeometryFromObject(object,
|
|
103
|
+
readGeometryFromObject(object, options) {
|
|
104
104
|
return abstract();
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -129,21 +129,21 @@ class JSONFeature extends FeatureFormat {
|
|
|
129
129
|
* Encode a feature as string.
|
|
130
130
|
*
|
|
131
131
|
* @param {import("../Feature.js").default} feature Feature.
|
|
132
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
132
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
133
133
|
* @return {string} Encoded feature.
|
|
134
134
|
* @api
|
|
135
135
|
*/
|
|
136
|
-
writeFeature(feature,
|
|
137
|
-
return JSON.stringify(this.writeFeatureObject(feature,
|
|
136
|
+
writeFeature(feature, options) {
|
|
137
|
+
return JSON.stringify(this.writeFeatureObject(feature, options));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @abstract
|
|
142
142
|
* @param {import("../Feature.js").default} feature Feature.
|
|
143
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
143
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
144
144
|
* @return {Object} Object.
|
|
145
145
|
*/
|
|
146
|
-
writeFeatureObject(feature,
|
|
146
|
+
writeFeatureObject(feature, options) {
|
|
147
147
|
return abstract();
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -151,21 +151,21 @@ class JSONFeature extends FeatureFormat {
|
|
|
151
151
|
* Encode an array of features as string.
|
|
152
152
|
*
|
|
153
153
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
154
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
154
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
155
155
|
* @return {string} Encoded features.
|
|
156
156
|
* @api
|
|
157
157
|
*/
|
|
158
|
-
writeFeatures(features,
|
|
159
|
-
return JSON.stringify(this.writeFeaturesObject(features,
|
|
158
|
+
writeFeatures(features, options) {
|
|
159
|
+
return JSON.stringify(this.writeFeaturesObject(features, options));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @abstract
|
|
164
164
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
165
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
165
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
166
166
|
* @return {Object} Object.
|
|
167
167
|
*/
|
|
168
|
-
writeFeaturesObject(features,
|
|
168
|
+
writeFeaturesObject(features, options) {
|
|
169
169
|
return abstract();
|
|
170
170
|
}
|
|
171
171
|
|
|
@@ -173,21 +173,21 @@ class JSONFeature extends FeatureFormat {
|
|
|
173
173
|
* Encode a geometry as string.
|
|
174
174
|
*
|
|
175
175
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
176
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
176
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
177
177
|
* @return {string} Encoded geometry.
|
|
178
178
|
* @api
|
|
179
179
|
*/
|
|
180
|
-
writeGeometry(geometry,
|
|
181
|
-
return JSON.stringify(this.writeGeometryObject(geometry,
|
|
180
|
+
writeGeometry(geometry, options) {
|
|
181
|
+
return JSON.stringify(this.writeGeometryObject(geometry, options));
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* @abstract
|
|
186
186
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
187
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
187
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
188
188
|
* @return {Object} Object.
|
|
189
189
|
*/
|
|
190
|
-
writeGeometryObject(geometry,
|
|
190
|
+
writeGeometryObject(geometry, options) {
|
|
191
191
|
return abstract();
|
|
192
192
|
}
|
|
193
193
|
}
|
package/format/KML.d.ts
CHANGED
|
@@ -132,9 +132,9 @@ import Style from "../style/Style.js";
|
|
|
132
132
|
*/
|
|
133
133
|
declare class KML extends XMLFeature {
|
|
134
134
|
/**
|
|
135
|
-
* @param {Options} [
|
|
135
|
+
* @param {Options} [options] Options.
|
|
136
136
|
*/
|
|
137
|
-
constructor(
|
|
137
|
+
constructor(options?: Options | undefined);
|
|
138
138
|
/**
|
|
139
139
|
* @type {import("../proj/Projection.js").default}
|
|
140
140
|
*/
|
package/format/KML.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KML.d.ts","sourceRoot":"","sources":["KML.js"],"names":[],"mappings":"AAqMA;;;GAGG;AACH,uCAFY,IAAI,GAAC,IAAI,CAIpB;AAgCD;;;GAGG;AACH,wCAFY,OAAO,mBAAmB,EAAE,OAAO,GAAC,IAAI,CAInD;AAYD;;;GAGG;AACH,yCAFY,MAAM,GAAC,IAAI,CAItB;AAYD;;;GAGG;AACH,uCAFY,IAAI,GAAC,IAAI,CAIpB;AAOD;;;GAGG;AACH,mCAFY,KAAK,GAAC,IAAI,CAIrB;AAOD;;;GAGG;AACH,wCAFY,MAAM,KAAK,CAAC,GAAC,IAAI,CAI5B;AA4xBD;;;GAGG;AACH,0CAHW,IAAI,GACH,MAAM,MAAM,CAAC,GAAC,SAAS,CAsBlC;;;;;;;qCAnuBqB,MAAM,KAAE,MAAM;;;;;OAzUtB,MAAM;;;;YACN,OAAO,kBAAkB,EAAE,eAAe;;;;OAC1C,MAAM;;;;YACN,OAAO,kBAAkB,EAAE,eAAe;;;;;;;;;;iBAM1C,MAAM,MAAM,MAAM,CAAC,CAAC;;;;WACpB,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4U3B;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"KML.d.ts","sourceRoot":"","sources":["KML.js"],"names":[],"mappings":"AAqMA;;;GAGG;AACH,uCAFY,IAAI,GAAC,IAAI,CAIpB;AAgCD;;;GAGG;AACH,wCAFY,OAAO,mBAAmB,EAAE,OAAO,GAAC,IAAI,CAInD;AAYD;;;GAGG;AACH,yCAFY,MAAM,GAAC,IAAI,CAItB;AAYD;;;GAGG;AACH,uCAFY,IAAI,GAAC,IAAI,CAIpB;AAOD;;;GAGG;AACH,mCAFY,KAAK,GAAC,IAAI,CAIrB;AAOD;;;GAGG;AACH,wCAFY,MAAM,KAAK,CAAC,GAAC,IAAI,CAI5B;AA4xBD;;;GAGG;AACH,0CAHW,IAAI,GACH,MAAM,MAAM,CAAC,GAAC,SAAS,CAsBlC;;;;;;;qCAnuBqB,MAAM,KAAE,MAAM;;;;;OAzUtB,MAAM;;;;YACN,OAAO,kBAAkB,EAAE,eAAe;;;;OAC1C,MAAM;;;;YACN,OAAO,kBAAkB,EAAE,eAAe;;;;;;;;;;iBAM1C,MAAM,MAAM,MAAM,CAAC,CAAC;;;;WACpB,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4U3B;;;;;;;;;;;GAWG;AAEH;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,2CA8DC;IArDC;;OAEG;IACH,gBAFU,OAAO,uBAAuB,EAAE,OAAO,CAED;IAEhD;;;OAGG;IACH,sBAEuB;IAEvB;;;OAGG;IACH,uBACoE;IAEpE;;OAEG;IACH,cAFU,OAAO,CAG+C;IAEhE;;;OAGG;IACH,sBAAuB;IAEvB;;;OAGG;IACH,wBACsE;IAEtE;;OAEG;IACH,cAFU,IAAI,GAAC,MAAM,CAGkD;IAEvE;;OAEG;IACH,kBAFU,eAAe,CAIC;IAK5B;;;;;OAKG;IACH,8BAiBC;IAED;;;;;OAKG;IACH,uBA8CC;IAED;;;;OAIG;IACH,yBAmBC;IAED;;;;OAIG;IACH,4BAqBC;IAiED;;;;;;OAMG;IACH,iBAJW,QAAQ,GAAC,OAAO,GAAC,MAAM,GACtB,MAAM,GAAC,SAAS,CAc3B;IAED;;;OAGG;IACH,0BAHW,QAAQ,GACP,MAAM,GAAC,SAAS,CAY3B;IAED;;;OAGG;IACH,uBAHW,OAAO,GACN,MAAM,GAAC,SAAS,CAwB3B;IAED;;;;;;OAMG;IACH,yBAJW,QAAQ,GAAC,OAAO,GAAC,MAAM,GACtB,UAAa,CAoBxB;IAED;;;OAGG;IACH,kCAHW,QAAQ,GACP,UAAa,CAaxB;IAED;;;OAGG;IACH,+BAHW,OAAO,GACN,UAAa,CAuBxB;IAED;;;;;;OAMG;IACH,mBAJW,QAAQ,GAAC,OAAO,GAAC,MAAM,GACtB,UAAa,CAiBxB;IAED;;;OAGG;IACH,4BAHW,QAAQ,GACP,UAAa,CAUxB;IAED;;;;OAIG;IACH,yBAJW,OAAO,GACN,UAAa,CAqBxB;CA8CF"}
|
package/format/KML.js
CHANGED
|
@@ -423,12 +423,12 @@ function defaultIconUrlFunction(href) {
|
|
|
423
423
|
*/
|
|
424
424
|
class KML extends XMLFeature {
|
|
425
425
|
/**
|
|
426
|
-
* @param {Options} [
|
|
426
|
+
* @param {Options} [options] Options.
|
|
427
427
|
*/
|
|
428
|
-
constructor(
|
|
428
|
+
constructor(options) {
|
|
429
429
|
super();
|
|
430
430
|
|
|
431
|
-
|
|
431
|
+
options = options ? options : {};
|
|
432
432
|
|
|
433
433
|
if (!DEFAULT_STYLE_ARRAY) {
|
|
434
434
|
createStyleDefaults();
|
|
@@ -624,15 +624,15 @@ class KML extends XMLFeature {
|
|
|
624
624
|
|
|
625
625
|
/**
|
|
626
626
|
* @param {Element} node Node.
|
|
627
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
627
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
628
628
|
* @return {import("../Feature.js").default} Feature.
|
|
629
629
|
*/
|
|
630
|
-
readFeatureFromNode(node,
|
|
630
|
+
readFeatureFromNode(node, options) {
|
|
631
631
|
if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
|
|
632
632
|
return null;
|
|
633
633
|
}
|
|
634
634
|
const feature = this.readPlacemark_(node, [
|
|
635
|
-
this.getReadOptions(node,
|
|
635
|
+
this.getReadOptions(node, options),
|
|
636
636
|
]);
|
|
637
637
|
if (feature) {
|
|
638
638
|
return feature;
|
|
@@ -644,10 +644,10 @@ class KML extends XMLFeature {
|
|
|
644
644
|
/**
|
|
645
645
|
* @protected
|
|
646
646
|
* @param {Element} node Node.
|
|
647
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
647
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
648
648
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
649
649
|
*/
|
|
650
|
-
readFeaturesFromNode(node,
|
|
650
|
+
readFeaturesFromNode(node, options) {
|
|
651
651
|
if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
|
|
652
652
|
return [];
|
|
653
653
|
}
|
|
@@ -655,7 +655,7 @@ class KML extends XMLFeature {
|
|
|
655
655
|
const localName = node.localName;
|
|
656
656
|
if (localName == 'Document' || localName == 'Folder') {
|
|
657
657
|
features = this.readDocumentOrFolder_(node, [
|
|
658
|
-
this.getReadOptions(node,
|
|
658
|
+
this.getReadOptions(node, options),
|
|
659
659
|
]);
|
|
660
660
|
if (features) {
|
|
661
661
|
return features;
|
|
@@ -664,7 +664,7 @@ class KML extends XMLFeature {
|
|
|
664
664
|
}
|
|
665
665
|
} else if (localName == 'Placemark') {
|
|
666
666
|
const feature = this.readPlacemark_(node, [
|
|
667
|
-
this.getReadOptions(node,
|
|
667
|
+
this.getReadOptions(node, options),
|
|
668
668
|
]);
|
|
669
669
|
if (feature) {
|
|
670
670
|
return [feature];
|
|
@@ -674,7 +674,7 @@ class KML extends XMLFeature {
|
|
|
674
674
|
} else if (localName == 'kml') {
|
|
675
675
|
features = [];
|
|
676
676
|
for (let n = node.firstElementChild; n; n = n.nextElementSibling) {
|
|
677
|
-
const fs = this.readFeaturesFromNode(n,
|
|
677
|
+
const fs = this.readFeaturesFromNode(n, options);
|
|
678
678
|
if (fs) {
|
|
679
679
|
extend(features, fs);
|
|
680
680
|
}
|
|
@@ -886,12 +886,12 @@ class KML extends XMLFeature {
|
|
|
886
886
|
* MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.
|
|
887
887
|
*
|
|
888
888
|
* @param {Array<Feature>} features Features.
|
|
889
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
889
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
890
890
|
* @return {Node} Node.
|
|
891
891
|
* @api
|
|
892
892
|
*/
|
|
893
|
-
writeFeaturesNode(features,
|
|
894
|
-
|
|
893
|
+
writeFeaturesNode(features, options) {
|
|
894
|
+
options = this.adaptOptions(options);
|
|
895
895
|
const kml = createElementNS(NAMESPACE_URIS[4], 'kml');
|
|
896
896
|
const xmlnsUri = 'http://www.w3.org/2000/xmlns/';
|
|
897
897
|
kml.setAttributeNS(xmlnsUri, 'xmlns:gx', GX_NAMESPACE_URIS[0]);
|
|
@@ -919,7 +919,7 @@ class KML extends XMLFeature {
|
|
|
919
919
|
KML_SERIALIZERS,
|
|
920
920
|
OBJECT_PROPERTY_NODE_FACTORY,
|
|
921
921
|
values,
|
|
922
|
-
[
|
|
922
|
+
[options],
|
|
923
923
|
orderedKeys,
|
|
924
924
|
this
|
|
925
925
|
);
|
|
@@ -2444,10 +2444,10 @@ const DOCUMENT_SERIALIZERS = makeStructureNS(NAMESPACE_URIS, {
|
|
|
2444
2444
|
* @const
|
|
2445
2445
|
* @param {*} value Value.
|
|
2446
2446
|
* @param {Array<*>} objectStack Object stack.
|
|
2447
|
-
* @param {string} [
|
|
2447
|
+
* @param {string} [nodeName] Node name.
|
|
2448
2448
|
* @return {Node|undefined} Node.
|
|
2449
2449
|
*/
|
|
2450
|
-
const DOCUMENT_NODE_FACTORY = function (value, objectStack,
|
|
2450
|
+
const DOCUMENT_NODE_FACTORY = function (value, objectStack, nodeName) {
|
|
2451
2451
|
const parentNode = objectStack[objectStack.length - 1].node;
|
|
2452
2452
|
return createElementNS(parentNode.namespaceURI, 'Placemark');
|
|
2453
2453
|
};
|
|
@@ -2533,11 +2533,11 @@ const ICON_SERIALIZERS = makeStructureNS(
|
|
|
2533
2533
|
* @const
|
|
2534
2534
|
* @param {*} value Value.
|
|
2535
2535
|
* @param {Array<*>} objectStack Object stack.
|
|
2536
|
-
* @param {string} [
|
|
2536
|
+
* @param {string} [nodeName] Node name.
|
|
2537
2537
|
* @return {Node|undefined} Node.
|
|
2538
2538
|
*/
|
|
2539
|
-
const GX_NODE_FACTORY = function (value, objectStack,
|
|
2540
|
-
return createElementNS(GX_NAMESPACE_URIS[0], 'gx:' +
|
|
2539
|
+
const GX_NODE_FACTORY = function (value, objectStack, nodeName) {
|
|
2540
|
+
return createElementNS(GX_NAMESPACE_URIS[0], 'gx:' + nodeName);
|
|
2541
2541
|
};
|
|
2542
2542
|
|
|
2543
2543
|
/**
|
|
@@ -2780,10 +2780,10 @@ const GEOMETRY_TYPE_TO_NODENAME = {
|
|
|
2780
2780
|
* @const
|
|
2781
2781
|
* @param {*} value Value.
|
|
2782
2782
|
* @param {Array<*>} objectStack Object stack.
|
|
2783
|
-
* @param {string} [
|
|
2783
|
+
* @param {string} [nodeName] Node name.
|
|
2784
2784
|
* @return {Node|undefined} Node.
|
|
2785
2785
|
*/
|
|
2786
|
-
const GEOMETRY_NODE_FACTORY = function (value, objectStack,
|
|
2786
|
+
const GEOMETRY_NODE_FACTORY = function (value, objectStack, nodeName) {
|
|
2787
2787
|
if (value) {
|
|
2788
2788
|
const parentNode = objectStack[objectStack.length - 1].node;
|
|
2789
2789
|
return createElementNS(
|
package/format/MVT.d.ts
CHANGED
|
@@ -41,14 +41,14 @@ export type Options = {
|
|
|
41
41
|
* @classdesc
|
|
42
42
|
* Feature format for reading data in the Mapbox MVT format.
|
|
43
43
|
*
|
|
44
|
-
* @param {Options} [
|
|
44
|
+
* @param {Options} [options] Options.
|
|
45
45
|
* @api
|
|
46
46
|
*/
|
|
47
47
|
declare class MVT extends FeatureFormat {
|
|
48
48
|
/**
|
|
49
|
-
* @param {Options} [
|
|
49
|
+
* @param {Options} [options] Options.
|
|
50
50
|
*/
|
|
51
|
-
constructor(
|
|
51
|
+
constructor(options?: Options | undefined);
|
|
52
52
|
/**
|
|
53
53
|
* @type {Projection}
|
|
54
54
|
*/
|
|
@@ -100,11 +100,11 @@ declare class MVT extends FeatureFormat {
|
|
|
100
100
|
* Read all features.
|
|
101
101
|
*
|
|
102
102
|
* @param {ArrayBuffer} source Source.
|
|
103
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
103
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
104
104
|
* @return {Array<import("../Feature.js").FeatureLike>} Features.
|
|
105
105
|
* @api
|
|
106
106
|
*/
|
|
107
|
-
readFeatures(source: ArrayBuffer,
|
|
107
|
+
readFeatures(source: ArrayBuffer, options?: import("./Feature.js").ReadOptions | undefined): Array<import("../Feature.js").FeatureLike>;
|
|
108
108
|
/**
|
|
109
109
|
* Read the projection from the source.
|
|
110
110
|
*
|
package/format/MVT.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MVT.d.ts","sourceRoot":"","sources":["MVT.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"MVT.d.ts","sourceRoot":"","sources":["MVT.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAmBA;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAiDC;IA5CC;;OAEG;IACH,gBAFU,UAAU,CAKlB;IAEF;;;OAGG;IACH,sBAEiB;IAEjB;;;OAGG;IACH,sBAAyC;IAEzC;;;OAGG;IACH,mBAAiE;IAEjE;;;OAGG;IACH,gBAAqD;IAErD;;;OAGG;IACH,oBAAqC;IAQvC;;;;;;;;OAQG;IACH,yBAoDC;IAED;;;;;;OAMG;IACH,uBAsEC;IASD;;;;;;;OAOG;IACH,qBALW,WAAW,6DAEV,MAAM,OAAO,eAAe,EAAE,WAAW,CAAC,CAgCrD;IAED;;;;;;OAMG;IACH,uBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,OAAO,uBAAuB,EAAE,OAAO,CAKlD;IAED;;;;OAIG;IACH,kBAHW,MAAM,MAAM,CAAC,QAKvB;CACF"}
|
package/format/MVT.js
CHANGED
|
@@ -34,17 +34,17 @@ import {inflateEnds} from '../geom/flat/orient.js';
|
|
|
34
34
|
* @classdesc
|
|
35
35
|
* Feature format for reading data in the Mapbox MVT format.
|
|
36
36
|
*
|
|
37
|
-
* @param {Options} [
|
|
37
|
+
* @param {Options} [options] Options.
|
|
38
38
|
* @api
|
|
39
39
|
*/
|
|
40
40
|
class MVT extends FeatureFormat {
|
|
41
41
|
/**
|
|
42
|
-
* @param {Options} [
|
|
42
|
+
* @param {Options} [options] Options.
|
|
43
43
|
*/
|
|
44
|
-
constructor(
|
|
44
|
+
constructor(options) {
|
|
45
45
|
super();
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
options = options ? options : {};
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* @type {Projection}
|
|
@@ -245,15 +245,13 @@ class MVT extends FeatureFormat {
|
|
|
245
245
|
* Read all features.
|
|
246
246
|
*
|
|
247
247
|
* @param {ArrayBuffer} source Source.
|
|
248
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
248
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
249
249
|
* @return {Array<import("../Feature.js").FeatureLike>} Features.
|
|
250
250
|
* @api
|
|
251
251
|
*/
|
|
252
|
-
readFeatures(source,
|
|
252
|
+
readFeatures(source, options) {
|
|
253
253
|
const layers = this.layers_;
|
|
254
|
-
|
|
255
|
-
this.adaptOptions(opt_options)
|
|
256
|
-
);
|
|
254
|
+
options = this.adaptOptions(options);
|
|
257
255
|
const dataProjection = get(options.dataProjection);
|
|
258
256
|
dataProjection.setWorldExtent(options.extent);
|
|
259
257
|
options.dataProjection = dataProjection;
|
package/format/OSMXML.js
CHANGED
|
@@ -59,11 +59,11 @@ class OSMXML extends XMLFeature {
|
|
|
59
59
|
/**
|
|
60
60
|
* @protected
|
|
61
61
|
* @param {Element} node Node.
|
|
62
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
62
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
63
63
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
64
64
|
*/
|
|
65
|
-
readFeaturesFromNode(node,
|
|
66
|
-
|
|
65
|
+
readFeaturesFromNode(node, options) {
|
|
66
|
+
options = this.getReadOptions(node, options);
|
|
67
67
|
if (node.localName == 'osm') {
|
|
68
68
|
const state = pushParseAndPop(
|
|
69
69
|
{
|
package/format/Polyline.d.ts
CHANGED
|
@@ -5,48 +5,48 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @param {Array<number>} numbers A list of n-dimensional points.
|
|
7
7
|
* @param {number} stride The number of dimension of the points in the list.
|
|
8
|
-
* @param {number} [
|
|
8
|
+
* @param {number} [factor] The factor by which the numbers will be
|
|
9
9
|
* multiplied. The remaining decimal places will get rounded away.
|
|
10
10
|
* Default is `1e5`.
|
|
11
11
|
* @return {string} The encoded string.
|
|
12
12
|
* @api
|
|
13
13
|
*/
|
|
14
|
-
export function encodeDeltas(numbers: Array<number>, stride: number,
|
|
14
|
+
export function encodeDeltas(numbers: Array<number>, stride: number, factor?: number | undefined): string;
|
|
15
15
|
/**
|
|
16
16
|
* Decode a list of n-dimensional points from an encoded string
|
|
17
17
|
*
|
|
18
18
|
* @param {string} encoded An encoded string.
|
|
19
19
|
* @param {number} stride The number of dimension of the points in the
|
|
20
20
|
* encoded string.
|
|
21
|
-
* @param {number} [
|
|
21
|
+
* @param {number} [factor] The factor by which the resulting numbers will
|
|
22
22
|
* be divided. Default is `1e5`.
|
|
23
23
|
* @return {Array<number>} A list of n-dimensional points.
|
|
24
24
|
* @api
|
|
25
25
|
*/
|
|
26
|
-
export function decodeDeltas(encoded: string, stride: number,
|
|
26
|
+
export function decodeDeltas(encoded: string, stride: number, factor?: number | undefined): Array<number>;
|
|
27
27
|
/**
|
|
28
28
|
* Encode a list of floating point numbers and return an encoded string
|
|
29
29
|
*
|
|
30
30
|
* Attention: This function will modify the passed array!
|
|
31
31
|
*
|
|
32
32
|
* @param {Array<number>} numbers A list of floating point numbers.
|
|
33
|
-
* @param {number} [
|
|
33
|
+
* @param {number} [factor] The factor by which the numbers will be
|
|
34
34
|
* multiplied. The remaining decimal places will get rounded away.
|
|
35
35
|
* Default is `1e5`.
|
|
36
36
|
* @return {string} The encoded string.
|
|
37
37
|
* @api
|
|
38
38
|
*/
|
|
39
|
-
export function encodeFloats(numbers: Array<number>,
|
|
39
|
+
export function encodeFloats(numbers: Array<number>, factor?: number | undefined): string;
|
|
40
40
|
/**
|
|
41
41
|
* Decode a list of floating point numbers from an encoded string
|
|
42
42
|
*
|
|
43
43
|
* @param {string} encoded An encoded string.
|
|
44
|
-
* @param {number} [
|
|
44
|
+
* @param {number} [factor] The factor by which the result will be divided.
|
|
45
45
|
* Default is `1e5`.
|
|
46
46
|
* @return {Array<number>} A list of floating point numbers.
|
|
47
47
|
* @api
|
|
48
48
|
*/
|
|
49
|
-
export function decodeFloats(encoded: string,
|
|
49
|
+
export function decodeFloats(encoded: string, factor?: number | undefined): Array<number>;
|
|
50
50
|
/**
|
|
51
51
|
* Encode a list of signed integers and return an encoded string
|
|
52
52
|
*
|
|
@@ -118,9 +118,9 @@ export type Options = {
|
|
|
118
118
|
*/
|
|
119
119
|
declare class Polyline extends TextFeature {
|
|
120
120
|
/**
|
|
121
|
-
* @param {Options} [
|
|
121
|
+
* @param {Options} [options] Optional configuration object.
|
|
122
122
|
*/
|
|
123
|
-
constructor(
|
|
123
|
+
constructor(options?: Options | undefined);
|
|
124
124
|
/**
|
|
125
125
|
* @type {import("../proj/Projection.js").default}
|
|
126
126
|
*/
|
|
@@ -137,25 +137,25 @@ declare class Polyline extends TextFeature {
|
|
|
137
137
|
private geometryLayout_;
|
|
138
138
|
/**
|
|
139
139
|
* @param {import("../Feature.js").default<LineString>} feature Features.
|
|
140
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
140
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
141
141
|
* @protected
|
|
142
142
|
* @return {string} Text.
|
|
143
143
|
*/
|
|
144
|
-
protected writeFeatureText(feature: import("../Feature.js").default<LineString>,
|
|
144
|
+
protected writeFeatureText(feature: import("../Feature.js").default<LineString>, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
145
145
|
/**
|
|
146
146
|
* @param {Array<import("../Feature.js").default<LineString>>} features Features.
|
|
147
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
147
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
148
148
|
* @protected
|
|
149
149
|
* @return {string} Text.
|
|
150
150
|
*/
|
|
151
|
-
protected writeFeaturesText(features: Array<import("../Feature.js").default<LineString>>,
|
|
151
|
+
protected writeFeaturesText(features: Array<import("../Feature.js").default<LineString>>, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
152
152
|
/**
|
|
153
153
|
* @param {LineString} geometry Geometry.
|
|
154
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
154
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
155
155
|
* @protected
|
|
156
156
|
* @return {string} Text.
|
|
157
157
|
*/
|
|
158
|
-
protected writeGeometryText(geometry: LineString,
|
|
158
|
+
protected writeGeometryText(geometry: LineString, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
159
159
|
}
|
|
160
160
|
import TextFeature from "./TextFeature.js";
|
|
161
161
|
import LineString from "../geom/LineString.js";
|
package/format/Polyline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["Polyline.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["Polyline.js"],"names":[],"mappings":"AA2JA;;;;;;;;;;;;GAYG;AACH,sCARW,MAAM,MAAM,CAAC,UACb,MAAM,gCAIL,MAAM,CAuBjB;AAED;;;;;;;;;;GAUG;AACH,sCARW,MAAM,UACN,MAAM,gCAIL,MAAM,MAAM,CAAC,CAwBxB;AAED;;;;;;;;;;;GAWG;AACH,sCAPW,MAAM,MAAM,CAAC,gCAIZ,MAAM,CAUjB;AAED;;;;;;;;GAQG;AACH,sCANW,MAAM,gCAGL,MAAM,MAAM,CAAC,CAUxB;AAED;;;;;;;GAOG;AACH,8CAHW,MAAM,MAAM,CAAC,GACZ,MAAM,CAQjB;AAED;;;;;GAKG;AACH,8CAHW,MAAM,GACL,MAAM,MAAM,CAAC,CASxB;AAED;;;;;GAKG;AACH,gDAHW,MAAM,MAAM,CAAC,GACZ,MAAM,CAQjB;AAED;;;;;GAKG;AACH,gDAHW,MAAM,GACL,MAAM,MAAM,CAAC,CAkBxB;AAED;;;;;GAKG;AACH,2CAHW,MAAM,GACL,MAAM,CAajB;;;;;;;;;;;;;AAhVD;;;;;GAKG;AAEH;;;;;;;;;;;;;GAaG;AACH;IACE;;OAEG;IACH,2CAuBC;IAlBC;;OAEG;IACH,gBAFU,OAAO,uBAAuB,EAAE,OAAO,CAED;IAEhD;;;OAGG;IACH,gBAAoD;IAEpD;;;OAGG;IACH,wBAEQ;IAkDV;;;;;OAKG;IACH,oCALW,OAAO,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,8DAG1C,MAAM,CAUjB;IAED;;;;;OAKG;IACH,sCALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,8DAGjD,MAAM,CAIjB;IAED;;;;;OAKG;IACH,sCALW,UAAU,8DAGT,MAAM,CAYjB;CACF"}
|