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/GML2.js
CHANGED
|
@@ -48,12 +48,10 @@ const MULTIGEOMETRY_TO_MEMBER_NODENAME = {
|
|
|
48
48
|
*/
|
|
49
49
|
class GML2 extends GMLBase {
|
|
50
50
|
/**
|
|
51
|
-
* @param {import("./GMLBase.js").Options} [
|
|
51
|
+
* @param {import("./GMLBase.js").Options} [options] Optional configuration object.
|
|
52
52
|
*/
|
|
53
|
-
constructor(
|
|
54
|
-
|
|
55
|
-
/** @type {import("./GMLBase.js").Options} */
|
|
56
|
-
(opt_options ? opt_options : {});
|
|
53
|
+
constructor(options) {
|
|
54
|
+
options = options ? options : {};
|
|
57
55
|
|
|
58
56
|
super(options);
|
|
59
57
|
|
|
@@ -171,16 +169,15 @@ class GML2 extends GMLBase {
|
|
|
171
169
|
* @const
|
|
172
170
|
* @param {*} value Value.
|
|
173
171
|
* @param {Array<*>} objectStack Object stack.
|
|
174
|
-
* @param {string} [
|
|
172
|
+
* @param {string} [nodeName] Node name.
|
|
175
173
|
* @return {Element|undefined} Node.
|
|
176
174
|
* @private
|
|
177
175
|
*/
|
|
178
|
-
GEOMETRY_NODE_FACTORY_(value, objectStack,
|
|
176
|
+
GEOMETRY_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
179
177
|
const context = objectStack[objectStack.length - 1];
|
|
180
178
|
const multiSurface = context['multiSurface'];
|
|
181
179
|
const surface = context['surface'];
|
|
182
180
|
const multiCurve = context['multiCurve'];
|
|
183
|
-
let nodeName;
|
|
184
181
|
if (!Array.isArray(value)) {
|
|
185
182
|
nodeName = /** @type {import("../geom/Geometry.js").default} */ (
|
|
186
183
|
value
|
|
@@ -436,11 +433,11 @@ class GML2 extends GMLBase {
|
|
|
436
433
|
/**
|
|
437
434
|
* @param {*} value Value.
|
|
438
435
|
* @param {Array<*>} objectStack Object stack.
|
|
439
|
-
* @param {string} [
|
|
436
|
+
* @param {string} [nodeName] Node name.
|
|
440
437
|
* @return {Node} Node.
|
|
441
438
|
* @private
|
|
442
439
|
*/
|
|
443
|
-
RING_NODE_FACTORY_(value, objectStack,
|
|
440
|
+
RING_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
444
441
|
const context = objectStack[objectStack.length - 1];
|
|
445
442
|
const parentNode = context.node;
|
|
446
443
|
const exteriorWritten = context['exteriorWritten'];
|
|
@@ -478,21 +475,21 @@ class GML2 extends GMLBase {
|
|
|
478
475
|
|
|
479
476
|
/**
|
|
480
477
|
* @param {Array<number>} point Point geometry.
|
|
481
|
-
* @param {string} [
|
|
482
|
-
* @param {boolean} [
|
|
478
|
+
* @param {string} [srsName] Optional srsName
|
|
479
|
+
* @param {boolean} [hasZ] whether the geometry has a Z coordinate (is 3D) or not.
|
|
483
480
|
* @return {string} The coords string.
|
|
484
481
|
* @private
|
|
485
482
|
*/
|
|
486
|
-
getCoords_(point,
|
|
483
|
+
getCoords_(point, srsName, hasZ) {
|
|
487
484
|
let axisOrientation = 'enu';
|
|
488
|
-
if (
|
|
489
|
-
axisOrientation = getProjection(
|
|
485
|
+
if (srsName) {
|
|
486
|
+
axisOrientation = getProjection(srsName).getAxisOrientation();
|
|
490
487
|
}
|
|
491
488
|
let coords =
|
|
492
489
|
axisOrientation.substr(0, 2) === 'en'
|
|
493
490
|
? point[0] + ',' + point[1]
|
|
494
491
|
: point[1] + ',' + point[0];
|
|
495
|
-
if (
|
|
492
|
+
if (hasZ) {
|
|
496
493
|
// For newly created points, Z can be undefined.
|
|
497
494
|
const z = point[2] || 0;
|
|
498
495
|
coords += ',' + z;
|
|
@@ -638,11 +635,11 @@ class GML2 extends GMLBase {
|
|
|
638
635
|
* @const
|
|
639
636
|
* @param {*} value Value.
|
|
640
637
|
* @param {Array<*>} objectStack Object stack.
|
|
641
|
-
* @param {string} [
|
|
638
|
+
* @param {string} [nodeName] Node name.
|
|
642
639
|
* @return {Node|undefined} Node.
|
|
643
640
|
* @private
|
|
644
641
|
*/
|
|
645
|
-
MULTIGEOMETRY_MEMBER_NODE_FACTORY_(value, objectStack,
|
|
642
|
+
MULTIGEOMETRY_MEMBER_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
646
643
|
const parentNode = objectStack[objectStack.length - 1].node;
|
|
647
644
|
return createElementNS(
|
|
648
645
|
'http://www.opengis.net/gml',
|
package/format/GML3.d.ts
CHANGED
|
@@ -134,8 +134,8 @@ declare class GML3 extends GMLBase {
|
|
|
134
134
|
private writePos_;
|
|
135
135
|
/**
|
|
136
136
|
* @param {Array<number>} point Point geometry.
|
|
137
|
-
* @param {string} [
|
|
138
|
-
* @param {boolean} [
|
|
137
|
+
* @param {string} [srsName] Optional srsName
|
|
138
|
+
* @param {boolean} [hasZ] whether the geometry has a Z coordinate (is 3D) or not.
|
|
139
139
|
* @return {string} The coords string.
|
|
140
140
|
* @private
|
|
141
141
|
*/
|
|
@@ -168,7 +168,7 @@ declare class GML3 extends GMLBase {
|
|
|
168
168
|
/**
|
|
169
169
|
* @param {*} value Value.
|
|
170
170
|
* @param {Array<*>} objectStack Object stack.
|
|
171
|
-
* @param {string} [
|
|
171
|
+
* @param {string} [nodeName] Node name.
|
|
172
172
|
* @return {Node} Node.
|
|
173
173
|
* @private
|
|
174
174
|
*/
|
|
@@ -264,7 +264,7 @@ declare class GML3 extends GMLBase {
|
|
|
264
264
|
* @const
|
|
265
265
|
* @param {*} value Value.
|
|
266
266
|
* @param {Array<*>} objectStack Object stack.
|
|
267
|
-
* @param {string} [
|
|
267
|
+
* @param {string} [nodeName] Node name.
|
|
268
268
|
* @return {Node|undefined} Node.
|
|
269
269
|
* @private
|
|
270
270
|
*/
|
|
@@ -273,7 +273,7 @@ declare class GML3 extends GMLBase {
|
|
|
273
273
|
* @const
|
|
274
274
|
* @param {*} value Value.
|
|
275
275
|
* @param {Array<*>} objectStack Object stack.
|
|
276
|
-
* @param {string} [
|
|
276
|
+
* @param {string} [nodeName] Node name.
|
|
277
277
|
* @return {Element|undefined} Node.
|
|
278
278
|
* @private
|
|
279
279
|
*/
|
|
@@ -282,11 +282,11 @@ declare class GML3 extends GMLBase {
|
|
|
282
282
|
* Encode an array of features in the GML 3.1.1 format as an XML node.
|
|
283
283
|
*
|
|
284
284
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
285
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
285
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
286
286
|
* @return {Element} Node.
|
|
287
287
|
* @api
|
|
288
288
|
*/
|
|
289
|
-
writeFeaturesNode(features: Array<import("../Feature.js").default>,
|
|
289
|
+
writeFeaturesNode(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): Element;
|
|
290
290
|
/**
|
|
291
291
|
* @const
|
|
292
292
|
* @type {Object<string, Object<string, import("../xml.js").Parser>>}
|
package/format/GML3.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GML3.d.ts","sourceRoot":"","sources":["GML3.js"],"names":[],"mappings":";AAqDA;;;;;;;GAOG;AACH;
|
|
1
|
+
{"version":3,"file":"GML3.d.ts","sourceRoot":"","sources":["GML3.js"],"names":[],"mappings":";AAqDA;;;;;;;GAOG;AACH;IASI;;;OAGG;IACH,iBAAuE;IAEvE;;;OAGG;IACH,eAAiE;IAEjE;;;OAGG;IACH,oBAC8D;IAE9D;;;OAGG;IACH,sBACkE;IASlE;;;OAGG;IACH,aAA6D;IAG/D;;;;OAIG;IACH,qBAJW,OAAO,eACP,UAAQ,GACP,eAAe,GAAC,SAAS,CAiBpC;IAED;;;;OAIG;IACH,wBAJW,OAAO,eACP,UAAQ,GACP,MAAM,MAAM,CAAC,GAAC,SAAS,CAgBlC;IAED;;;;OAIG;IACH,uBAJW,OAAO,eACP,UAAQ,GACP,YAAY,GAAC,SAAS,CAcjC;IAED;;;OAGG;IACH,wBAHW,OAAO,eACP,UAAQ,QAIlB;IAED;;;OAGG;IACH,0BAHW,OAAO,eACP,UAAQ,QAIlB;IAED;;;;OAIG;IACH,gBAJW,OAAO,eACP,UAAQ,GACP,MAAM,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,GAAC,SAAS,C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@param {import("./GMLBase.js").Options} [
|
|
64
|
+
* @param {import("./GMLBase.js").Options} [options] Optional configuration object.
|
|
65
65
|
*/
|
|
66
|
-
constructor(
|
|
67
|
-
|
|
68
|
-
/** @type {import("./GMLBase.js").Options} */
|
|
69
|
-
(opt_options ? opt_options : {});
|
|
66
|
+
constructor(options) {
|
|
67
|
+
options = options ? options : {};
|
|
70
68
|
|
|
71
69
|
super(options);
|
|
72
70
|
|
|
@@ -480,21 +478,21 @@ class GML3 extends GMLBase {
|
|
|
480
478
|
|
|
481
479
|
/**
|
|
482
480
|
* @param {Array<number>} point Point geometry.
|
|
483
|
-
* @param {string} [
|
|
484
|
-
* @param {boolean} [
|
|
481
|
+
* @param {string} [srsName] Optional srsName
|
|
482
|
+
* @param {boolean} [hasZ] whether the geometry has a Z coordinate (is 3D) or not.
|
|
485
483
|
* @return {string} The coords string.
|
|
486
484
|
* @private
|
|
487
485
|
*/
|
|
488
|
-
getCoords_(point,
|
|
486
|
+
getCoords_(point, srsName, hasZ) {
|
|
489
487
|
let axisOrientation = 'enu';
|
|
490
|
-
if (
|
|
491
|
-
axisOrientation = getProjection(
|
|
488
|
+
if (srsName) {
|
|
489
|
+
axisOrientation = getProjection(srsName).getAxisOrientation();
|
|
492
490
|
}
|
|
493
491
|
let coords =
|
|
494
492
|
axisOrientation.substr(0, 2) === 'en'
|
|
495
493
|
? point[0] + ' ' + point[1]
|
|
496
494
|
: point[1] + ' ' + point[0];
|
|
497
|
-
if (
|
|
495
|
+
if (hasZ) {
|
|
498
496
|
// For newly created points, Z can be undefined.
|
|
499
497
|
const z = point[2] || 0;
|
|
500
498
|
coords += ' ' + z;
|
|
@@ -587,11 +585,11 @@ class GML3 extends GMLBase {
|
|
|
587
585
|
/**
|
|
588
586
|
* @param {*} value Value.
|
|
589
587
|
* @param {Array<*>} objectStack Object stack.
|
|
590
|
-
* @param {string} [
|
|
588
|
+
* @param {string} [nodeName] Node name.
|
|
591
589
|
* @return {Node} Node.
|
|
592
590
|
* @private
|
|
593
591
|
*/
|
|
594
|
-
RING_NODE_FACTORY_(value, objectStack,
|
|
592
|
+
RING_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
595
593
|
const context = objectStack[objectStack.length - 1];
|
|
596
594
|
const parentNode = context.node;
|
|
597
595
|
const exteriorWritten = context['exteriorWritten'];
|
|
@@ -933,11 +931,11 @@ class GML3 extends GMLBase {
|
|
|
933
931
|
* @const
|
|
934
932
|
* @param {*} value Value.
|
|
935
933
|
* @param {Array<*>} objectStack Object stack.
|
|
936
|
-
* @param {string} [
|
|
934
|
+
* @param {string} [nodeName] Node name.
|
|
937
935
|
* @return {Node|undefined} Node.
|
|
938
936
|
* @private
|
|
939
937
|
*/
|
|
940
|
-
MULTIGEOMETRY_MEMBER_NODE_FACTORY_(value, objectStack,
|
|
938
|
+
MULTIGEOMETRY_MEMBER_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
941
939
|
const parentNode = objectStack[objectStack.length - 1].node;
|
|
942
940
|
return createElementNS(
|
|
943
941
|
this.namespace,
|
|
@@ -949,17 +947,16 @@ class GML3 extends GMLBase {
|
|
|
949
947
|
* @const
|
|
950
948
|
* @param {*} value Value.
|
|
951
949
|
* @param {Array<*>} objectStack Object stack.
|
|
952
|
-
* @param {string} [
|
|
950
|
+
* @param {string} [nodeName] Node name.
|
|
953
951
|
* @return {Element|undefined} Node.
|
|
954
952
|
* @private
|
|
955
953
|
*/
|
|
956
|
-
GEOMETRY_NODE_FACTORY_(value, objectStack,
|
|
954
|
+
GEOMETRY_NODE_FACTORY_(value, objectStack, nodeName) {
|
|
957
955
|
const context = objectStack[objectStack.length - 1];
|
|
958
956
|
const multiSurface = context['multiSurface'];
|
|
959
957
|
const surface = context['surface'];
|
|
960
958
|
const curve = context['curve'];
|
|
961
959
|
const multiCurve = context['multiCurve'];
|
|
962
|
-
let nodeName;
|
|
963
960
|
if (!Array.isArray(value)) {
|
|
964
961
|
nodeName = /** @type {import("../geom/Geometry.js").default} */ (
|
|
965
962
|
value
|
|
@@ -983,12 +980,12 @@ class GML3 extends GMLBase {
|
|
|
983
980
|
* Encode a geometry in GML 3.1.1 Simple Features.
|
|
984
981
|
*
|
|
985
982
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
986
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
983
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
987
984
|
* @return {Node} Node.
|
|
988
985
|
* @api
|
|
989
986
|
*/
|
|
990
|
-
writeGeometryNode(geometry,
|
|
991
|
-
|
|
987
|
+
writeGeometryNode(geometry, options) {
|
|
988
|
+
options = this.adaptOptions(options);
|
|
992
989
|
const geom = createElementNS(this.namespace, 'geom');
|
|
993
990
|
const context = {
|
|
994
991
|
node: geom,
|
|
@@ -999,8 +996,8 @@ class GML3 extends GMLBase {
|
|
|
999
996
|
multiSurface: this.multiSurface_,
|
|
1000
997
|
multiCurve: this.multiCurve_,
|
|
1001
998
|
};
|
|
1002
|
-
if (
|
|
1003
|
-
Object.assign(context,
|
|
999
|
+
if (options) {
|
|
1000
|
+
Object.assign(context, options);
|
|
1004
1001
|
}
|
|
1005
1002
|
this.writeGeometryElement(geom, geometry, [context]);
|
|
1006
1003
|
return geom;
|
|
@@ -1010,12 +1007,12 @@ class GML3 extends GMLBase {
|
|
|
1010
1007
|
* Encode an array of features in the GML 3.1.1 format as an XML node.
|
|
1011
1008
|
*
|
|
1012
1009
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
1013
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
1010
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
1014
1011
|
* @return {Element} Node.
|
|
1015
1012
|
* @api
|
|
1016
1013
|
*/
|
|
1017
|
-
writeFeaturesNode(features,
|
|
1018
|
-
|
|
1014
|
+
writeFeaturesNode(features, options) {
|
|
1015
|
+
options = this.adaptOptions(options);
|
|
1019
1016
|
const node = createElementNS(this.namespace, 'featureMembers');
|
|
1020
1017
|
node.setAttributeNS(
|
|
1021
1018
|
XML_SCHEMA_INSTANCE_URI,
|
|
@@ -1032,8 +1029,8 @@ class GML3 extends GMLBase {
|
|
|
1032
1029
|
featureNS: this.featureNS,
|
|
1033
1030
|
featureType: this.featureType,
|
|
1034
1031
|
};
|
|
1035
|
-
if (
|
|
1036
|
-
Object.assign(context,
|
|
1032
|
+
if (options) {
|
|
1033
|
+
Object.assign(context, options);
|
|
1037
1034
|
}
|
|
1038
1035
|
this.writeFeatureMembers_(node, features, [context]);
|
|
1039
1036
|
return node;
|
|
@@ -1197,7 +1194,7 @@ GMLBase.prototype.RING_PARSERS = {
|
|
|
1197
1194
|
*
|
|
1198
1195
|
* @function
|
|
1199
1196
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
1200
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
1197
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
1201
1198
|
* @return {string} Result.
|
|
1202
1199
|
* @api
|
|
1203
1200
|
*/
|
package/format/GML32.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GML32.d.ts","sourceRoot":"","sources":["GML32.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;
|
|
1
|
+
{"version":3,"file":"GML32.d.ts","sourceRoot":"","sources":["GML32.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;CAgBC"}
|
package/format/GML32.js
CHANGED
|
@@ -19,12 +19,10 @@ import {writeStringTextNode} from '../format/xsd.js';
|
|
|
19
19
|
*/
|
|
20
20
|
class GML32 extends GML3 {
|
|
21
21
|
/**
|
|
22
|
-
* @param {import("./GMLBase.js").Options} [
|
|
22
|
+
* @param {import("./GMLBase.js").Options} [options] Optional configuration object.
|
|
23
23
|
*/
|
|
24
|
-
constructor(
|
|
25
|
-
|
|
26
|
-
opt_options ? opt_options : {}
|
|
27
|
-
);
|
|
24
|
+
constructor(options) {
|
|
25
|
+
options = options ? options : {};
|
|
28
26
|
|
|
29
27
|
super(options);
|
|
30
28
|
|
package/format/GMLBase.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type Options = {
|
|
|
32
32
|
/**
|
|
33
33
|
* srsName to use when writing geometries.
|
|
34
34
|
*/
|
|
35
|
-
srsName
|
|
35
|
+
srsName?: string | undefined;
|
|
36
36
|
/**
|
|
37
37
|
* Write gml:Surface instead of gml:Polygon
|
|
38
38
|
* elements. This also affects the elements in multi-part geometries.
|
|
@@ -81,7 +81,7 @@ export type Options = {
|
|
|
81
81
|
* So for instance there might be a featureType item `topp:states` and then
|
|
82
82
|
* there will be a key named `topp` in the featureNS object with value
|
|
83
83
|
* `http://www.openplans.org/topp`.
|
|
84
|
-
* @property {string} srsName srsName to use when writing geometries.
|
|
84
|
+
* @property {string} [srsName] srsName to use when writing geometries.
|
|
85
85
|
* @property {boolean} [surface=false] Write gml:Surface instead of gml:Polygon
|
|
86
86
|
* elements. This also affects the elements in multi-part geometries.
|
|
87
87
|
* @property {boolean} [curve=false] Write gml:Curve instead of gml:LineString
|
|
@@ -107,9 +107,9 @@ export type Options = {
|
|
|
107
107
|
*/
|
|
108
108
|
declare class GMLBase extends XMLFeature {
|
|
109
109
|
/**
|
|
110
|
-
* @param {Options} [
|
|
110
|
+
* @param {Options} [options] Optional configuration object.
|
|
111
111
|
*/
|
|
112
|
-
constructor(
|
|
112
|
+
constructor(options?: Options | undefined);
|
|
113
113
|
/**
|
|
114
114
|
* @protected
|
|
115
115
|
* @type {Array<string>|string|undefined}
|
|
@@ -124,9 +124,9 @@ declare class GMLBase extends XMLFeature {
|
|
|
124
124
|
} | string | undefined;
|
|
125
125
|
/**
|
|
126
126
|
* @protected
|
|
127
|
-
* @type {string}
|
|
127
|
+
* @type {string|undefined}
|
|
128
128
|
*/
|
|
129
|
-
protected srsName: string;
|
|
129
|
+
protected srsName: string | undefined;
|
|
130
130
|
/**
|
|
131
131
|
* @protected
|
|
132
132
|
* @type {string}
|
package/format/GMLBase.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GMLBase.d.ts","sourceRoot":"","sources":["GMLBase.js"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,oBAFU,MAAM,CAEkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GMLBase.d.ts","sourceRoot":"","sources":["GMLBase.js"],"names":[],"mappings":"AA8BA;;;GAGG;AACH,oBAFU,MAAM,CAEkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;GAUG;AACH;IACE;;OAEG;IACH,2CAuCC;IAlCC;;;OAGG;IACH,uBAFU,MAAM,MAAM,CAAC,GAAC,MAAM,GAAC,SAAS,CAEF;IAEtC;;;OAGG;IACH,qBAFU;YAAO,MAAM,GAAE,MAAM;QAAE,MAAM,GAAC,SAAS,CAEf;IAElC;;;OAGG;IACH,mBAFU,MAAM,GAAC,SAAS,CAEI;IAE9B;;;OAGG;IACH,0BAFU,MAAM,CAEQ;IAExB;;OAEG;IACH;YAFiB,MAAM;gBAAS,MAAM;;MAEF;IAStC;;;;OAIG;IACH,2BAJW,OAAO,eACP,UAAQ,GACP,MAAM,OAAO,CAAC,GAAG,SAAS,CA0FrC;IAED;;;;OAIG;IACH,2BAJW,OAAO,eACP,UAAQ,GACP,OAAO,qBAAqB,EAAE,OAAO,GAAC,OAAO,cAAc,EAAE,MAAM,GAAC,SAAS,CAcxF;IAED;;;;OAIG;IACH,wBAJW,OAAO,eACP,UAAQ,GACP,OAAO,cAAc,EAAE,MAAM,GAAC,SAAS,CAQlD;IAED;;;;OAIG;IACH,0BAJW,OAAO,eACP,UAAQ,GACP,OAAO,qBAAqB,EAAE,OAAO,GAAC,SAAS,CAU1D;IAED;;;;;OAKG;IACH,iCALW,OAAO,eACP,UAAQ,aACR,OAAO,GACN,OAAO,MAAO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AAO,WAAW,EAAE,MAAM;;MAE9B;IAOpC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAEzB;IAWzC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAE5B;IAOtC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAE7B;IAMrC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAExB;IAM1C;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAE3B;IAMvC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAEpC;CAnG7B"}
|
package/format/GMLBase.js
CHANGED
|
@@ -61,7 +61,7 @@ const ONLY_WHITESPACE_RE = /^\s*$/;
|
|
|
61
61
|
* So for instance there might be a featureType item `topp:states` and then
|
|
62
62
|
* there will be a key named `topp` in the featureNS object with value
|
|
63
63
|
* `http://www.openplans.org/topp`.
|
|
64
|
-
* @property {string} srsName srsName to use when writing geometries.
|
|
64
|
+
* @property {string} [srsName] srsName to use when writing geometries.
|
|
65
65
|
* @property {boolean} [surface=false] Write gml:Surface instead of gml:Polygon
|
|
66
66
|
* elements. This also affects the elements in multi-part geometries.
|
|
67
67
|
* @property {boolean} [curve=false] Write gml:Curve instead of gml:LineString
|
|
@@ -88,12 +88,12 @@ const ONLY_WHITESPACE_RE = /^\s*$/;
|
|
|
88
88
|
*/
|
|
89
89
|
class GMLBase extends XMLFeature {
|
|
90
90
|
/**
|
|
91
|
-
* @param {Options} [
|
|
91
|
+
* @param {Options} [options] Optional configuration object.
|
|
92
92
|
*/
|
|
93
|
-
constructor(
|
|
93
|
+
constructor(options) {
|
|
94
94
|
super();
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
options = options ? options : {};
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* @protected
|
|
@@ -109,7 +109,7 @@ class GMLBase extends XMLFeature {
|
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* @protected
|
|
112
|
-
* @type {string}
|
|
112
|
+
* @type {string|undefined}
|
|
113
113
|
*/
|
|
114
114
|
this.srsName = options.srsName;
|
|
115
115
|
|
|
@@ -542,31 +542,31 @@ class GMLBase extends XMLFeature {
|
|
|
542
542
|
|
|
543
543
|
/**
|
|
544
544
|
* @param {Element} node Node.
|
|
545
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
545
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
546
546
|
* @protected
|
|
547
547
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
548
548
|
*/
|
|
549
|
-
readGeometryFromNode(node,
|
|
549
|
+
readGeometryFromNode(node, options) {
|
|
550
550
|
const geometry = this.readGeometryElement(node, [
|
|
551
|
-
this.getReadOptions(node,
|
|
551
|
+
this.getReadOptions(node, options ? options : {}),
|
|
552
552
|
]);
|
|
553
553
|
return geometry ? geometry : null;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
/**
|
|
557
557
|
* @param {Element} node Node.
|
|
558
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
558
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
559
559
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
560
560
|
*/
|
|
561
|
-
readFeaturesFromNode(node,
|
|
562
|
-
const
|
|
561
|
+
readFeaturesFromNode(node, options) {
|
|
562
|
+
const internalOptions = {
|
|
563
563
|
featureType: this.featureType,
|
|
564
564
|
featureNS: this.featureNS,
|
|
565
565
|
};
|
|
566
|
-
if (
|
|
567
|
-
Object.assign(
|
|
566
|
+
if (internalOptions) {
|
|
567
|
+
Object.assign(internalOptions, this.getReadOptions(node, options));
|
|
568
568
|
}
|
|
569
|
-
const features = this.readFeaturesInternal(node, [
|
|
569
|
+
const features = this.readFeaturesInternal(node, [internalOptions]);
|
|
570
570
|
return features || [];
|
|
571
571
|
}
|
|
572
572
|
|
package/format/GPX.d.ts
CHANGED
|
@@ -52,9 +52,9 @@ export type LayoutOptions = {
|
|
|
52
52
|
*/
|
|
53
53
|
declare class GPX extends XMLFeature {
|
|
54
54
|
/**
|
|
55
|
-
* @param {Options} [
|
|
55
|
+
* @param {Options} [options] Options.
|
|
56
56
|
*/
|
|
57
|
-
constructor(
|
|
57
|
+
constructor(options?: Options | undefined);
|
|
58
58
|
/**
|
|
59
59
|
* @type {import("../proj/Projection.js").default}
|
|
60
60
|
*/
|
package/format/GPX.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;6BAkGuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;AAF1C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;6BAkGuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;AAF1C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,2CAeC;IAVC;;OAEG;IACH,gBAFU,OAAO,uBAAuB,EAAE,OAAO,CAED;IAEhD;;;OAGG;IACH,wBAA6C;IAG/C;;;OAGG;IACH,8BAYC;CAiFF"}
|
package/format/GPX.js
CHANGED
|
@@ -128,12 +128,12 @@ const GPX_SERIALIZERS = makeStructureNS(NAMESPACE_URIS, {
|
|
|
128
128
|
*/
|
|
129
129
|
class GPX extends XMLFeature {
|
|
130
130
|
/**
|
|
131
|
-
* @param {Options} [
|
|
131
|
+
* @param {Options} [options] Options.
|
|
132
132
|
*/
|
|
133
|
-
constructor(
|
|
133
|
+
constructor(options) {
|
|
134
134
|
super();
|
|
135
135
|
|
|
136
|
-
|
|
136
|
+
options = options ? options : {};
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* @type {import("../proj/Projection.js").default}
|
|
@@ -167,10 +167,10 @@ class GPX extends XMLFeature {
|
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
169
|
* @param {Element} node Node.
|
|
170
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
170
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
171
171
|
* @return {import("../Feature.js").default} Feature.
|
|
172
172
|
*/
|
|
173
|
-
readFeatureFromNode(node,
|
|
173
|
+
readFeatureFromNode(node, options) {
|
|
174
174
|
if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
|
|
175
175
|
return null;
|
|
176
176
|
}
|
|
@@ -178,9 +178,7 @@ class GPX extends XMLFeature {
|
|
|
178
178
|
if (!featureReader) {
|
|
179
179
|
return null;
|
|
180
180
|
}
|
|
181
|
-
const feature = featureReader(node, [
|
|
182
|
-
this.getReadOptions(node, opt_options),
|
|
183
|
-
]);
|
|
181
|
+
const feature = featureReader(node, [this.getReadOptions(node, options)]);
|
|
184
182
|
if (!feature) {
|
|
185
183
|
return null;
|
|
186
184
|
}
|
|
@@ -190,17 +188,17 @@ class GPX extends XMLFeature {
|
|
|
190
188
|
|
|
191
189
|
/**
|
|
192
190
|
* @param {Element} node Node.
|
|
193
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
191
|
+
* @param {import("./Feature.js").ReadOptions} [options] Options.
|
|
194
192
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
195
193
|
*/
|
|
196
|
-
readFeaturesFromNode(node,
|
|
194
|
+
readFeaturesFromNode(node, options) {
|
|
197
195
|
if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
|
|
198
196
|
return [];
|
|
199
197
|
}
|
|
200
198
|
if (node.localName == 'gpx') {
|
|
201
199
|
/** @type {Array<Feature>} */
|
|
202
200
|
const features = pushParseAndPop([], GPX_PARSERS, node, [
|
|
203
|
-
this.getReadOptions(node,
|
|
201
|
+
this.getReadOptions(node, options),
|
|
204
202
|
]);
|
|
205
203
|
if (features) {
|
|
206
204
|
this.handleReadExtensions_(features);
|
|
@@ -218,12 +216,12 @@ class GPX extends XMLFeature {
|
|
|
218
216
|
* as tracks (`<trk>`).
|
|
219
217
|
*
|
|
220
218
|
* @param {Array<Feature>} features Features.
|
|
221
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
219
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
222
220
|
* @return {Node} Node.
|
|
223
221
|
* @api
|
|
224
222
|
*/
|
|
225
|
-
writeFeaturesNode(features,
|
|
226
|
-
|
|
223
|
+
writeFeaturesNode(features, options) {
|
|
224
|
+
options = this.adaptOptions(options);
|
|
227
225
|
//FIXME Serialize metadata
|
|
228
226
|
const gpx = createElementNS('http://www.topografix.com/GPX/1/1', 'gpx');
|
|
229
227
|
const xmlnsUri = 'http://www.w3.org/2000/xmlns/';
|
|
@@ -242,7 +240,7 @@ class GPX extends XMLFeature {
|
|
|
242
240
|
GPX_SERIALIZERS,
|
|
243
241
|
GPX_NODE_FACTORY,
|
|
244
242
|
features,
|
|
245
|
-
[
|
|
243
|
+
[options]
|
|
246
244
|
);
|
|
247
245
|
return gpx;
|
|
248
246
|
}
|
|
@@ -505,10 +503,10 @@ const GEOMETRY_TYPE_TO_NODENAME = {
|
|
|
505
503
|
/**
|
|
506
504
|
* @param {*} value Value.
|
|
507
505
|
* @param {Array<*>} objectStack Object stack.
|
|
508
|
-
* @param {string} [
|
|
506
|
+
* @param {string} [nodeName] Node name.
|
|
509
507
|
* @return {Node|undefined} Node.
|
|
510
508
|
*/
|
|
511
|
-
function GPX_NODE_FACTORY(value, objectStack,
|
|
509
|
+
function GPX_NODE_FACTORY(value, objectStack, nodeName) {
|
|
512
510
|
const geometry = /** @type {Feature} */ (value).getGeometry();
|
|
513
511
|
if (geometry) {
|
|
514
512
|
const nodeName = GEOMETRY_TYPE_TO_NODENAME[geometry.getType()];
|
package/format/GeoJSON.d.ts
CHANGED
|
@@ -64,9 +64,9 @@ export type Options = {
|
|
|
64
64
|
*/
|
|
65
65
|
declare class GeoJSON extends JSONFeature {
|
|
66
66
|
/**
|
|
67
|
-
* @param {Options} [
|
|
67
|
+
* @param {Options} [options] Options.
|
|
68
68
|
*/
|
|
69
|
-
constructor(
|
|
69
|
+
constructor(options?: Options | undefined);
|
|
70
70
|
/**
|
|
71
71
|
* @type {import("../proj/Projection.js").default}
|
|
72
72
|
*/
|
|
@@ -89,38 +89,38 @@ declare class GeoJSON extends JSONFeature {
|
|
|
89
89
|
private extractGeometryName_;
|
|
90
90
|
/**
|
|
91
91
|
* @param {GeoJSONGeometry} object Object.
|
|
92
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
92
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
93
93
|
* @protected
|
|
94
94
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
95
95
|
*/
|
|
96
|
-
protected readGeometryFromObject(object: GeoJSONGeometry,
|
|
96
|
+
protected readGeometryFromObject(object: GeoJSONGeometry, options?: import("./Feature.js").ReadOptions | undefined): import("../geom/Geometry.js").default;
|
|
97
97
|
/**
|
|
98
98
|
* Encode a feature as a GeoJSON Feature object.
|
|
99
99
|
*
|
|
100
100
|
* @param {import("../Feature.js").default} feature Feature.
|
|
101
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
101
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
102
102
|
* @return {GeoJSONFeature} Object.
|
|
103
103
|
* @api
|
|
104
104
|
*/
|
|
105
|
-
writeFeatureObject(feature: import("../Feature.js").default,
|
|
105
|
+
writeFeatureObject(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeature;
|
|
106
106
|
/**
|
|
107
107
|
* Encode an array of features as a GeoJSON object.
|
|
108
108
|
*
|
|
109
109
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
110
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
110
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
111
111
|
* @return {GeoJSONFeatureCollection} GeoJSON Object.
|
|
112
112
|
* @api
|
|
113
113
|
*/
|
|
114
|
-
writeFeaturesObject(features: Array<import("../Feature.js").default>,
|
|
114
|
+
writeFeaturesObject(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeatureCollection;
|
|
115
115
|
/**
|
|
116
116
|
* Encode a geometry as a GeoJSON object.
|
|
117
117
|
*
|
|
118
118
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
119
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
119
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
120
120
|
* @return {GeoJSONGeometry|GeoJSONGeometryCollection} Object.
|
|
121
121
|
* @api
|
|
122
122
|
*/
|
|
123
|
-
writeGeometryObject(geometry: import("../geom/Geometry.js").default,
|
|
123
|
+
writeGeometryObject(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONGeometry | GeoJSONGeometryCollection;
|
|
124
124
|
}
|
|
125
125
|
import JSONFeature from "./JSONFeature.js";
|
|
126
126
|
//# sourceMappingURL=GeoJSON.d.ts.map
|
package/format/GeoJSON.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeoJSON.d.ts","sourceRoot":"","sources":["GeoJSON.js"],"names":[],"mappings":";4BAmBa,OAAO,SAAS,EAAE,OAAO;6BACzB,OAAO,SAAS,EAAE,OAAO;uCACzB,OAAO,SAAS,EAAE,iBAAiB;8BACnC,OAAO,SAAS,EAAE,QAAQ;2BAC1B,OAAO,SAAS,EAAE,KAAK;gCACvB,OAAO,SAAS,EAAE,UAAU;6BAC5B,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