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/EsriJSON.js
CHANGED
|
@@ -78,10 +78,10 @@ const GEOMETRY_WRITERS = {
|
|
|
78
78
|
*/
|
|
79
79
|
class EsriJSON extends JSONFeature {
|
|
80
80
|
/**
|
|
81
|
-
* @param {Options} [
|
|
81
|
+
* @param {Options} [options] Options.
|
|
82
82
|
*/
|
|
83
|
-
constructor(
|
|
84
|
-
|
|
83
|
+
constructor(options) {
|
|
84
|
+
options = options ? options : {};
|
|
85
85
|
|
|
86
86
|
super();
|
|
87
87
|
|
|
@@ -95,14 +95,14 @@ class EsriJSON extends JSONFeature {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* @param {Object} object Object.
|
|
98
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
99
|
-
* @param {string} [
|
|
98
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
99
|
+
* @param {string} [idField] Name of the field where to get the id from.
|
|
100
100
|
* @protected
|
|
101
101
|
* @return {import("../Feature.js").default} Feature.
|
|
102
102
|
*/
|
|
103
|
-
readFeatureFromObject(object,
|
|
103
|
+
readFeatureFromObject(object, options, idField) {
|
|
104
104
|
const esriJSONFeature = /** @type {EsriJSONFeature} */ (object);
|
|
105
|
-
const geometry = readGeometry(esriJSONFeature.geometry,
|
|
105
|
+
const geometry = readGeometry(esriJSONFeature.geometry, options);
|
|
106
106
|
const feature = new Feature();
|
|
107
107
|
if (this.geometryName_) {
|
|
108
108
|
feature.setGeometryName(this.geometryName_);
|
|
@@ -110,7 +110,7 @@ class EsriJSON extends JSONFeature {
|
|
|
110
110
|
feature.setGeometry(geometry);
|
|
111
111
|
if (esriJSONFeature.attributes) {
|
|
112
112
|
feature.setProperties(esriJSONFeature.attributes, true);
|
|
113
|
-
const id = esriJSONFeature.attributes[
|
|
113
|
+
const id = esriJSONFeature.attributes[idField];
|
|
114
114
|
if (id !== undefined) {
|
|
115
115
|
feature.setId(/** @type {number} */ (id));
|
|
116
116
|
}
|
|
@@ -120,12 +120,12 @@ class EsriJSON extends JSONFeature {
|
|
|
120
120
|
|
|
121
121
|
/**
|
|
122
122
|
* @param {Object} object Object.
|
|
123
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
123
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
124
124
|
* @protected
|
|
125
125
|
* @return {Array<Feature>} Features.
|
|
126
126
|
*/
|
|
127
|
-
readFeaturesFromObject(object,
|
|
128
|
-
|
|
127
|
+
readFeaturesFromObject(object, options) {
|
|
128
|
+
options = options ? options : {};
|
|
129
129
|
if (object['features']) {
|
|
130
130
|
const esriJSONFeatureSet = /** @type {EsriJSONFeatureSet} */ (object);
|
|
131
131
|
/** @type {Array<import("../Feature.js").default>} */
|
|
@@ -148,12 +148,12 @@ class EsriJSON extends JSONFeature {
|
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* @param {EsriJSONGeometry} object Object.
|
|
151
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
151
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
152
152
|
* @protected
|
|
153
153
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
154
154
|
*/
|
|
155
|
-
readGeometryFromObject(object,
|
|
156
|
-
return readGeometry(object,
|
|
155
|
+
readGeometryFromObject(object, options) {
|
|
156
|
+
return readGeometry(object, options);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -180,24 +180,24 @@ class EsriJSON extends JSONFeature {
|
|
|
180
180
|
* Encode a geometry as a EsriJSON object.
|
|
181
181
|
*
|
|
182
182
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
183
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
183
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
184
184
|
* @return {EsriJSONGeometry} Object.
|
|
185
185
|
* @api
|
|
186
186
|
*/
|
|
187
|
-
writeGeometryObject(geometry,
|
|
188
|
-
return writeGeometry(geometry, this.adaptOptions(
|
|
187
|
+
writeGeometryObject(geometry, options) {
|
|
188
|
+
return writeGeometry(geometry, this.adaptOptions(options));
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Encode a feature as a esriJSON Feature object.
|
|
193
193
|
*
|
|
194
194
|
* @param {import("../Feature.js").default} feature Feature.
|
|
195
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
195
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
196
196
|
* @return {Object} Object.
|
|
197
197
|
* @api
|
|
198
198
|
*/
|
|
199
|
-
writeFeatureObject(feature,
|
|
200
|
-
|
|
199
|
+
writeFeatureObject(feature, options) {
|
|
200
|
+
options = this.adaptOptions(options);
|
|
201
201
|
const object = {};
|
|
202
202
|
if (!feature.hasProperties()) {
|
|
203
203
|
object['attributes'] = {};
|
|
@@ -206,10 +206,9 @@ class EsriJSON extends JSONFeature {
|
|
|
206
206
|
const properties = feature.getProperties();
|
|
207
207
|
const geometry = feature.getGeometry();
|
|
208
208
|
if (geometry) {
|
|
209
|
-
object['geometry'] = writeGeometry(geometry,
|
|
209
|
+
object['geometry'] = writeGeometry(geometry, options);
|
|
210
210
|
const projection =
|
|
211
|
-
|
|
212
|
-
(opt_options.dataProjection || opt_options.featureProjection);
|
|
211
|
+
options && (options.dataProjection || options.featureProjection);
|
|
213
212
|
if (projection) {
|
|
214
213
|
object['geometry']['spatialReference'] =
|
|
215
214
|
/** @type {EsriJSONSpatialReferenceWkid} */ ({
|
|
@@ -230,15 +229,15 @@ class EsriJSON extends JSONFeature {
|
|
|
230
229
|
* Encode an array of features as a EsriJSON object.
|
|
231
230
|
*
|
|
232
231
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
233
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
232
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
234
233
|
* @return {EsriJSONFeatureSet} EsriJSON Object.
|
|
235
234
|
* @api
|
|
236
235
|
*/
|
|
237
|
-
writeFeaturesObject(features,
|
|
238
|
-
|
|
236
|
+
writeFeaturesObject(features, options) {
|
|
237
|
+
options = this.adaptOptions(options);
|
|
239
238
|
const objects = [];
|
|
240
239
|
for (let i = 0, ii = features.length; i < ii; ++i) {
|
|
241
|
-
objects.push(this.writeFeatureObject(features[i],
|
|
240
|
+
objects.push(this.writeFeatureObject(features[i], options));
|
|
242
241
|
}
|
|
243
242
|
return {
|
|
244
243
|
'features': objects,
|
|
@@ -248,10 +247,10 @@ class EsriJSON extends JSONFeature {
|
|
|
248
247
|
|
|
249
248
|
/**
|
|
250
249
|
* @param {EsriJSONGeometry} object Object.
|
|
251
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
250
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
252
251
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
253
252
|
*/
|
|
254
|
-
function readGeometry(object,
|
|
253
|
+
function readGeometry(object, options) {
|
|
255
254
|
if (!object) {
|
|
256
255
|
return null;
|
|
257
256
|
}
|
|
@@ -281,11 +280,7 @@ function readGeometry(object, opt_options) {
|
|
|
281
280
|
}
|
|
282
281
|
}
|
|
283
282
|
const geometryReader = GEOMETRY_READERS[type];
|
|
284
|
-
return transformGeometryWithOptions(
|
|
285
|
-
geometryReader(object),
|
|
286
|
-
false,
|
|
287
|
-
opt_options
|
|
288
|
-
);
|
|
283
|
+
return transformGeometryWithOptions(geometryReader(object), false, options);
|
|
289
284
|
}
|
|
290
285
|
|
|
291
286
|
/**
|
|
@@ -426,10 +421,10 @@ function readPolygonGeometry(object) {
|
|
|
426
421
|
|
|
427
422
|
/**
|
|
428
423
|
* @param {import("../geom/Point.js").default} geometry Geometry.
|
|
429
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
424
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
430
425
|
* @return {EsriJSONPoint} EsriJSON geometry.
|
|
431
426
|
*/
|
|
432
|
-
function writePointGeometry(geometry,
|
|
427
|
+
function writePointGeometry(geometry, options) {
|
|
433
428
|
const coordinates = geometry.getCoordinates();
|
|
434
429
|
/** @type {EsriJSONPoint} */
|
|
435
430
|
let esriJSON;
|
|
@@ -478,10 +473,10 @@ function getHasZM(geometry) {
|
|
|
478
473
|
|
|
479
474
|
/**
|
|
480
475
|
* @param {import("../geom/LineString.js").default} lineString Geometry.
|
|
481
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
476
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
482
477
|
* @return {EsriJSONPolyline} EsriJSON geometry.
|
|
483
478
|
*/
|
|
484
|
-
function writeLineStringGeometry(lineString,
|
|
479
|
+
function writeLineStringGeometry(lineString, options) {
|
|
485
480
|
const hasZM = getHasZM(lineString);
|
|
486
481
|
return {
|
|
487
482
|
hasZ: hasZM.hasZ,
|
|
@@ -494,10 +489,10 @@ function writeLineStringGeometry(lineString, opt_options) {
|
|
|
494
489
|
|
|
495
490
|
/**
|
|
496
491
|
* @param {import("../geom/Polygon.js").default} polygon Geometry.
|
|
497
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
492
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
498
493
|
* @return {EsriJSONPolygon} EsriJSON geometry.
|
|
499
494
|
*/
|
|
500
|
-
function writePolygonGeometry(polygon,
|
|
495
|
+
function writePolygonGeometry(polygon, options) {
|
|
501
496
|
// Esri geometries use the left-hand rule
|
|
502
497
|
const hasZM = getHasZM(polygon);
|
|
503
498
|
return {
|
|
@@ -511,10 +506,10 @@ function writePolygonGeometry(polygon, opt_options) {
|
|
|
511
506
|
|
|
512
507
|
/**
|
|
513
508
|
* @param {import("../geom/MultiLineString.js").default} multiLineString Geometry.
|
|
514
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
509
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
515
510
|
* @return {EsriJSONPolyline} EsriJSON geometry.
|
|
516
511
|
*/
|
|
517
|
-
function writeMultiLineStringGeometry(multiLineString,
|
|
512
|
+
function writeMultiLineStringGeometry(multiLineString, options) {
|
|
518
513
|
const hasZM = getHasZM(multiLineString);
|
|
519
514
|
return {
|
|
520
515
|
hasZ: hasZM.hasZ,
|
|
@@ -527,10 +522,10 @@ function writeMultiLineStringGeometry(multiLineString, opt_options) {
|
|
|
527
522
|
|
|
528
523
|
/**
|
|
529
524
|
* @param {import("../geom/MultiPoint.js").default} multiPoint Geometry.
|
|
530
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
525
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
531
526
|
* @return {EsriJSONMultipoint} EsriJSON geometry.
|
|
532
527
|
*/
|
|
533
|
-
function writeMultiPointGeometry(multiPoint,
|
|
528
|
+
function writeMultiPointGeometry(multiPoint, options) {
|
|
534
529
|
const hasZM = getHasZM(multiPoint);
|
|
535
530
|
return {
|
|
536
531
|
hasZ: hasZM.hasZ,
|
|
@@ -543,10 +538,10 @@ function writeMultiPointGeometry(multiPoint, opt_options) {
|
|
|
543
538
|
|
|
544
539
|
/**
|
|
545
540
|
* @param {import("../geom/MultiPolygon.js").default} geometry Geometry.
|
|
546
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
541
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
547
542
|
* @return {EsriJSONPolygon} EsriJSON geometry.
|
|
548
543
|
*/
|
|
549
|
-
function writeMultiPolygonGeometry(geometry,
|
|
544
|
+
function writeMultiPolygonGeometry(geometry, options) {
|
|
550
545
|
const hasZM = getHasZM(geometry);
|
|
551
546
|
const coordinates = geometry.getCoordinates(false);
|
|
552
547
|
const output = [];
|
|
@@ -564,14 +559,14 @@ function writeMultiPolygonGeometry(geometry, opt_options) {
|
|
|
564
559
|
|
|
565
560
|
/**
|
|
566
561
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
567
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
562
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
568
563
|
* @return {EsriJSONGeometry} EsriJSON geometry.
|
|
569
564
|
*/
|
|
570
|
-
function writeGeometry(geometry,
|
|
565
|
+
function writeGeometry(geometry, options) {
|
|
571
566
|
const geometryWriter = GEOMETRY_WRITERS[geometry.getType()];
|
|
572
567
|
return geometryWriter(
|
|
573
|
-
transformGeometryWithOptions(geometry, true,
|
|
574
|
-
|
|
568
|
+
transformGeometryWithOptions(geometry, true, options),
|
|
569
|
+
options
|
|
575
570
|
);
|
|
576
571
|
}
|
|
577
572
|
|
package/format/Feature.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
3
3
|
* @param {boolean} write Set to true for writing, false for reading.
|
|
4
|
-
* @param {WriteOptions|ReadOptions} [
|
|
4
|
+
* @param {WriteOptions|ReadOptions} [options] Options.
|
|
5
5
|
* @return {import("../geom/Geometry.js").default} Transformed geometry.
|
|
6
6
|
*/
|
|
7
|
-
export function transformGeometryWithOptions(geometry: import("../geom/Geometry.js").default, write: boolean,
|
|
7
|
+
export function transformGeometryWithOptions(geometry: import("../geom/Geometry.js").default, write: boolean, options?: ReadOptions | WriteOptions | undefined): import("../geom/Geometry.js").default;
|
|
8
8
|
/**
|
|
9
9
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
10
|
-
* @param {ReadOptions} [
|
|
10
|
+
* @param {ReadOptions} [options] Read options.
|
|
11
11
|
* @return {import("../extent.js").Extent} Transformed extent.
|
|
12
12
|
*/
|
|
13
|
-
export function transformExtentWithOptions(extent: import("../extent.js").Extent,
|
|
13
|
+
export function transformExtentWithOptions(extent: import("../extent.js").Extent, options?: ReadOptions | undefined): import("../extent.js").Extent;
|
|
14
14
|
export default FeatureFormat;
|
|
15
15
|
export type ReadOptions = {
|
|
16
16
|
/**
|
|
@@ -144,11 +144,11 @@ declare class FeatureFormat {
|
|
|
144
144
|
/**
|
|
145
145
|
* Adds the data projection to the read options.
|
|
146
146
|
* @param {Document|Element|Object|string} source Source.
|
|
147
|
-
* @param {ReadOptions} [
|
|
147
|
+
* @param {ReadOptions} [options] Options.
|
|
148
148
|
* @return {ReadOptions|undefined} Options.
|
|
149
149
|
* @protected
|
|
150
150
|
*/
|
|
151
|
-
protected getReadOptions(source: Document | Element | any | string,
|
|
151
|
+
protected getReadOptions(source: Document | Element | any | string, options?: ReadOptions | undefined): ReadOptions | undefined;
|
|
152
152
|
/**
|
|
153
153
|
* Sets the `dataProjection` on the options, if no `dataProjection`
|
|
154
154
|
* is set.
|
|
@@ -169,28 +169,28 @@ declare class FeatureFormat {
|
|
|
169
169
|
*
|
|
170
170
|
* @abstract
|
|
171
171
|
* @param {Document|Element|Object|string} source Source.
|
|
172
|
-
* @param {ReadOptions} [
|
|
172
|
+
* @param {ReadOptions} [options] Read options.
|
|
173
173
|
* @return {import("../Feature.js").FeatureLike} Feature.
|
|
174
174
|
*/
|
|
175
|
-
readFeature(source: Document | Element | any | string,
|
|
175
|
+
readFeature(source: Document | Element | any | string, options?: ReadOptions | undefined): import("../Feature.js").FeatureLike;
|
|
176
176
|
/**
|
|
177
177
|
* Read all features from a source.
|
|
178
178
|
*
|
|
179
179
|
* @abstract
|
|
180
180
|
* @param {Document|Element|ArrayBuffer|Object|string} source Source.
|
|
181
|
-
* @param {ReadOptions} [
|
|
181
|
+
* @param {ReadOptions} [options] Read options.
|
|
182
182
|
* @return {Array<import("../Feature.js").FeatureLike>} Features.
|
|
183
183
|
*/
|
|
184
|
-
readFeatures(source: Document | Element | ArrayBuffer | any | string,
|
|
184
|
+
readFeatures(source: Document | Element | ArrayBuffer | any | string, options?: ReadOptions | undefined): Array<import("../Feature.js").FeatureLike>;
|
|
185
185
|
/**
|
|
186
186
|
* Read a single geometry from a source.
|
|
187
187
|
*
|
|
188
188
|
* @abstract
|
|
189
189
|
* @param {Document|Element|Object|string} source Source.
|
|
190
|
-
* @param {ReadOptions} [
|
|
190
|
+
* @param {ReadOptions} [options] Read options.
|
|
191
191
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
192
192
|
*/
|
|
193
|
-
readGeometry(source: Document | Element | any | string,
|
|
193
|
+
readGeometry(source: Document | Element | any | string, options?: ReadOptions | undefined): import("../geom/Geometry.js").default;
|
|
194
194
|
/**
|
|
195
195
|
* Read the projection from a source.
|
|
196
196
|
*
|
|
@@ -204,27 +204,27 @@ declare class FeatureFormat {
|
|
|
204
204
|
*
|
|
205
205
|
* @abstract
|
|
206
206
|
* @param {import("../Feature.js").default} feature Feature.
|
|
207
|
-
* @param {WriteOptions} [
|
|
207
|
+
* @param {WriteOptions} [options] Write options.
|
|
208
208
|
* @return {string|ArrayBuffer} Result.
|
|
209
209
|
*/
|
|
210
|
-
writeFeature(feature: import("../Feature.js").default,
|
|
210
|
+
writeFeature(feature: import("../Feature.js").default, options?: WriteOptions | undefined): string | ArrayBuffer;
|
|
211
211
|
/**
|
|
212
212
|
* Encode an array of features in this format.
|
|
213
213
|
*
|
|
214
214
|
* @abstract
|
|
215
215
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
216
|
-
* @param {WriteOptions} [
|
|
216
|
+
* @param {WriteOptions} [options] Write options.
|
|
217
217
|
* @return {string|ArrayBuffer} Result.
|
|
218
218
|
*/
|
|
219
|
-
writeFeatures(features: Array<import("../Feature.js").default>,
|
|
219
|
+
writeFeatures(features: Array<import("../Feature.js").default>, options?: WriteOptions | undefined): string | ArrayBuffer;
|
|
220
220
|
/**
|
|
221
221
|
* Write a single geometry in this format.
|
|
222
222
|
*
|
|
223
223
|
* @abstract
|
|
224
224
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
225
|
-
* @param {WriteOptions} [
|
|
225
|
+
* @param {WriteOptions} [options] Write options.
|
|
226
226
|
* @return {string|ArrayBuffer} Result.
|
|
227
227
|
*/
|
|
228
|
-
writeGeometry(geometry: import("../geom/Geometry.js").default,
|
|
228
|
+
writeGeometry(geometry: import("../geom/Geometry.js").default, options?: WriteOptions | undefined): string | ArrayBuffer;
|
|
229
229
|
}
|
|
230
230
|
//# sourceMappingURL=Feature.d.ts.map
|
package/format/Feature.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Feature.d.ts","sourceRoot":"","sources":["Feature.js"],"names":[],"mappings":"AAqOA;;;;;GAKG;AACH,uDALW,OAAO,qBAAqB,EAAE,OAAO,SACrC,OAAO,qDAEN,OAAO,qBAAqB,EAAE,OAAO,CA4ChD;AAED;;;;GAIG;AACH,mDAJW,OAAO,cAAc,EAAE,MAAM,sCAE5B,OAAO,cAAc,EAAE,MAAM,CAiBxC;;;;;;;;;;qBA/Ra,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;wBASnC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;qBAOnC,OAAO,YAAY,EAAE,cAAc;;;;;;wBAInC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;mBAoBpC,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK;AA1CpD;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;GAEG;AAEH;;;;;;;;;;;GAWG;AACH;IAEI;;;OAGG;IACH,0BAFU,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAE5B;IAE/B;;;OAGG;IACH,oCAFU,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAElB;IAEzC;;;OAGG;IACH,qBAFU,MAAM,MAAM,CAAC,CAEQ;IAGjC;;;;;;OAMG;IACH,iCALW,QAAQ,GAAC,OAAO,SAAQ,MAAM,sCAE7B,WAAW,GAAC,SAAS,CAsBhC;IAED;;;;;;;;OAQG;IACH,gCANW,YAAY,GAAC,WAAW,GAAC,SAAS,GAGjC,YAAY,GAAC,WAAW,GAAC,SAAS,CAW7C;IAED;;;OAGG;IACH,WAFY,IAAI,CAIf;IAED;;;;;;;OAOG;IACH,oBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,sCAE7B,OAAO,eAAe,EAAE,WAAW,CAI9C;IAED;;;;;;;OAOG;IACH,qBAJW,QAAQ,GAAC,OAAO,GAAC,WAAW,SAAQ,MAAM,sCAEzC,MAAM,OAAO,eAAe,EAAE,WAAW,CAAC,CAIrD;IAED;;;;;;;OAOG;IACH,qBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,sCAE7B,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAED;;;;;;OAMG;IACH,uBAHW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAI5D;IAED;;;;;;;OAOG;IACH,sBAJW,OAAO,eAAe,EAAE,OAAO,uCAE9B,MAAM,GAAC,WAAW,CAI7B;IAED;;;;;;;OAOG;IACH,wBAJW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,uCAErC,MAAM,GAAC,WAAW,CAI7B;IAED;;;;;;;OAOG;IACH,wBAJW,OAAO,qBAAqB,EAAE,OAAO,uCAEpC,MAAM,GAAC,WAAW,CAI7B;CACF"}
|
package/format/Feature.js
CHANGED
|
@@ -89,27 +89,26 @@ class FeatureFormat {
|
|
|
89
89
|
/**
|
|
90
90
|
* Adds the data projection to the read options.
|
|
91
91
|
* @param {Document|Element|Object|string} source Source.
|
|
92
|
-
* @param {ReadOptions} [
|
|
92
|
+
* @param {ReadOptions} [options] Options.
|
|
93
93
|
* @return {ReadOptions|undefined} Options.
|
|
94
94
|
* @protected
|
|
95
95
|
*/
|
|
96
|
-
getReadOptions(source,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
? getProjection(opt_options.dataProjection)
|
|
96
|
+
getReadOptions(source, options) {
|
|
97
|
+
if (options) {
|
|
98
|
+
let dataProjection = options.dataProjection
|
|
99
|
+
? getProjection(options.dataProjection)
|
|
101
100
|
: this.readProjection(source);
|
|
102
101
|
if (
|
|
103
|
-
|
|
102
|
+
options.extent &&
|
|
104
103
|
dataProjection &&
|
|
105
104
|
dataProjection.getUnits() === 'tile-pixels'
|
|
106
105
|
) {
|
|
107
106
|
dataProjection = getProjection(dataProjection);
|
|
108
|
-
dataProjection.setWorldExtent(
|
|
107
|
+
dataProjection.setWorldExtent(options.extent);
|
|
109
108
|
}
|
|
110
109
|
options = {
|
|
111
110
|
dataProjection: dataProjection,
|
|
112
|
-
featureProjection:
|
|
111
|
+
featureProjection: options.featureProjection,
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
114
|
return this.adaptOptions(options);
|
|
@@ -147,10 +146,10 @@ class FeatureFormat {
|
|
|
147
146
|
*
|
|
148
147
|
* @abstract
|
|
149
148
|
* @param {Document|Element|Object|string} source Source.
|
|
150
|
-
* @param {ReadOptions} [
|
|
149
|
+
* @param {ReadOptions} [options] Read options.
|
|
151
150
|
* @return {import("../Feature.js").FeatureLike} Feature.
|
|
152
151
|
*/
|
|
153
|
-
readFeature(source,
|
|
152
|
+
readFeature(source, options) {
|
|
154
153
|
return abstract();
|
|
155
154
|
}
|
|
156
155
|
|
|
@@ -159,10 +158,10 @@ class FeatureFormat {
|
|
|
159
158
|
*
|
|
160
159
|
* @abstract
|
|
161
160
|
* @param {Document|Element|ArrayBuffer|Object|string} source Source.
|
|
162
|
-
* @param {ReadOptions} [
|
|
161
|
+
* @param {ReadOptions} [options] Read options.
|
|
163
162
|
* @return {Array<import("../Feature.js").FeatureLike>} Features.
|
|
164
163
|
*/
|
|
165
|
-
readFeatures(source,
|
|
164
|
+
readFeatures(source, options) {
|
|
166
165
|
return abstract();
|
|
167
166
|
}
|
|
168
167
|
|
|
@@ -171,10 +170,10 @@ class FeatureFormat {
|
|
|
171
170
|
*
|
|
172
171
|
* @abstract
|
|
173
172
|
* @param {Document|Element|Object|string} source Source.
|
|
174
|
-
* @param {ReadOptions} [
|
|
173
|
+
* @param {ReadOptions} [options] Read options.
|
|
175
174
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
176
175
|
*/
|
|
177
|
-
readGeometry(source,
|
|
176
|
+
readGeometry(source, options) {
|
|
178
177
|
return abstract();
|
|
179
178
|
}
|
|
180
179
|
|
|
@@ -194,10 +193,10 @@ class FeatureFormat {
|
|
|
194
193
|
*
|
|
195
194
|
* @abstract
|
|
196
195
|
* @param {import("../Feature.js").default} feature Feature.
|
|
197
|
-
* @param {WriteOptions} [
|
|
196
|
+
* @param {WriteOptions} [options] Write options.
|
|
198
197
|
* @return {string|ArrayBuffer} Result.
|
|
199
198
|
*/
|
|
200
|
-
writeFeature(feature,
|
|
199
|
+
writeFeature(feature, options) {
|
|
201
200
|
return abstract();
|
|
202
201
|
}
|
|
203
202
|
|
|
@@ -206,10 +205,10 @@ class FeatureFormat {
|
|
|
206
205
|
*
|
|
207
206
|
* @abstract
|
|
208
207
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
209
|
-
* @param {WriteOptions} [
|
|
208
|
+
* @param {WriteOptions} [options] Write options.
|
|
210
209
|
* @return {string|ArrayBuffer} Result.
|
|
211
210
|
*/
|
|
212
|
-
writeFeatures(features,
|
|
211
|
+
writeFeatures(features, options) {
|
|
213
212
|
return abstract();
|
|
214
213
|
}
|
|
215
214
|
|
|
@@ -218,10 +217,10 @@ class FeatureFormat {
|
|
|
218
217
|
*
|
|
219
218
|
* @abstract
|
|
220
219
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
221
|
-
* @param {WriteOptions} [
|
|
220
|
+
* @param {WriteOptions} [options] Write options.
|
|
222
221
|
* @return {string|ArrayBuffer} Result.
|
|
223
222
|
*/
|
|
224
|
-
writeGeometry(geometry,
|
|
223
|
+
writeGeometry(geometry, options) {
|
|
225
224
|
return abstract();
|
|
226
225
|
}
|
|
227
226
|
}
|
|
@@ -231,16 +230,14 @@ export default FeatureFormat;
|
|
|
231
230
|
/**
|
|
232
231
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
233
232
|
* @param {boolean} write Set to true for writing, false for reading.
|
|
234
|
-
* @param {WriteOptions|ReadOptions} [
|
|
233
|
+
* @param {WriteOptions|ReadOptions} [options] Options.
|
|
235
234
|
* @return {import("../geom/Geometry.js").default} Transformed geometry.
|
|
236
235
|
*/
|
|
237
|
-
export function transformGeometryWithOptions(geometry, write,
|
|
238
|
-
const featureProjection =
|
|
239
|
-
? getProjection(
|
|
240
|
-
: null;
|
|
241
|
-
const dataProjection = opt_options
|
|
242
|
-
? getProjection(opt_options.dataProjection)
|
|
236
|
+
export function transformGeometryWithOptions(geometry, write, options) {
|
|
237
|
+
const featureProjection = options
|
|
238
|
+
? getProjection(options.featureProjection)
|
|
243
239
|
: null;
|
|
240
|
+
const dataProjection = options ? getProjection(options.dataProjection) : null;
|
|
244
241
|
|
|
245
242
|
let transformed;
|
|
246
243
|
if (
|
|
@@ -257,13 +254,10 @@ export function transformGeometryWithOptions(geometry, write, opt_options) {
|
|
|
257
254
|
}
|
|
258
255
|
if (
|
|
259
256
|
write &&
|
|
260
|
-
|
|
261
|
-
/** @type {WriteOptions} */ (
|
|
257
|
+
options &&
|
|
258
|
+
/** @type {WriteOptions} */ (options).decimals !== undefined
|
|
262
259
|
) {
|
|
263
|
-
const power = Math.pow(
|
|
264
|
-
10,
|
|
265
|
-
/** @type {WriteOptions} */ (opt_options).decimals
|
|
266
|
-
);
|
|
260
|
+
const power = Math.pow(10, /** @type {WriteOptions} */ (options).decimals);
|
|
267
261
|
// if decimals option on write, round each coordinate appropriately
|
|
268
262
|
/**
|
|
269
263
|
* @param {Array<number>} coordinates Coordinates.
|
|
@@ -285,16 +279,14 @@ export function transformGeometryWithOptions(geometry, write, opt_options) {
|
|
|
285
279
|
|
|
286
280
|
/**
|
|
287
281
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
288
|
-
* @param {ReadOptions} [
|
|
282
|
+
* @param {ReadOptions} [options] Read options.
|
|
289
283
|
* @return {import("../extent.js").Extent} Transformed extent.
|
|
290
284
|
*/
|
|
291
|
-
export function transformExtentWithOptions(extent,
|
|
292
|
-
const featureProjection =
|
|
293
|
-
? getProjection(
|
|
294
|
-
: null;
|
|
295
|
-
const dataProjection = opt_options
|
|
296
|
-
? getProjection(opt_options.dataProjection)
|
|
285
|
+
export function transformExtentWithOptions(extent, options) {
|
|
286
|
+
const featureProjection = options
|
|
287
|
+
? getProjection(options.featureProjection)
|
|
297
288
|
: null;
|
|
289
|
+
const dataProjection = options ? getProjection(options.dataProjection) : null;
|
|
298
290
|
|
|
299
291
|
if (
|
|
300
292
|
featureProjection &&
|
package/format/GML.d.ts
CHANGED
package/format/GML.js
CHANGED
|
@@ -9,7 +9,7 @@ import GML3 from './GML3.js';
|
|
|
9
9
|
* Currently only supports GML 3.1.1 Simple Features profile.
|
|
10
10
|
*
|
|
11
11
|
* @class
|
|
12
|
-
* @param {import("./GMLBase.js").Options} [
|
|
12
|
+
* @param {import("./GMLBase.js").Options} [options]
|
|
13
13
|
* Optional configuration object.
|
|
14
14
|
* @api
|
|
15
15
|
*/
|
|
@@ -20,7 +20,7 @@ const GML = GML3;
|
|
|
20
20
|
*
|
|
21
21
|
* @function
|
|
22
22
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
23
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
23
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
24
24
|
* @return {string} Result.
|
|
25
25
|
* @api
|
|
26
26
|
*/
|
|
@@ -31,7 +31,7 @@ GML.prototype.writeFeatures;
|
|
|
31
31
|
*
|
|
32
32
|
* @function
|
|
33
33
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
34
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
34
|
+
* @param {import("./Feature.js").WriteOptions} [options] Options.
|
|
35
35
|
* @return {Node} Node.
|
|
36
36
|
* @api
|
|
37
37
|
*/
|
package/format/GML2.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ declare class GML2 extends GMLBase {
|
|
|
33
33
|
* @const
|
|
34
34
|
* @param {*} value Value.
|
|
35
35
|
* @param {Array<*>} objectStack Object stack.
|
|
36
|
-
* @param {string} [
|
|
36
|
+
* @param {string} [nodeName] Node name.
|
|
37
37
|
* @return {Element|undefined} Node.
|
|
38
38
|
* @private
|
|
39
39
|
*/
|
|
@@ -97,7 +97,7 @@ declare class GML2 extends GMLBase {
|
|
|
97
97
|
/**
|
|
98
98
|
* @param {*} value Value.
|
|
99
99
|
* @param {Array<*>} objectStack Object stack.
|
|
100
|
-
* @param {string} [
|
|
100
|
+
* @param {string} [nodeName] Node name.
|
|
101
101
|
* @return {Node} Node.
|
|
102
102
|
* @private
|
|
103
103
|
*/
|
|
@@ -117,8 +117,8 @@ declare class GML2 extends GMLBase {
|
|
|
117
117
|
writeRing(node: Element, ring: import("../geom/LinearRing.js").default, objectStack: Array<any>): void;
|
|
118
118
|
/**
|
|
119
119
|
* @param {Array<number>} point Point geometry.
|
|
120
|
-
* @param {string} [
|
|
121
|
-
* @param {boolean} [
|
|
120
|
+
* @param {string} [srsName] Optional srsName
|
|
121
|
+
* @param {boolean} [hasZ] whether the geometry has a Z coordinate (is 3D) or not.
|
|
122
122
|
* @return {string} The coords string.
|
|
123
123
|
* @private
|
|
124
124
|
*/
|
|
@@ -169,7 +169,7 @@ declare class GML2 extends GMLBase {
|
|
|
169
169
|
* @const
|
|
170
170
|
* @param {*} value Value.
|
|
171
171
|
* @param {Array<*>} objectStack Object stack.
|
|
172
|
-
* @param {string} [
|
|
172
|
+
* @param {string} [nodeName] Node name.
|
|
173
173
|
* @return {Node|undefined} Node.
|
|
174
174
|
* @private
|
|
175
175
|
*/
|
package/format/GML2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GML2.d.ts","sourceRoot":"","sources":["GML2.js"],"names":[],"mappings":";AAyCA;;;;;;GAMG;AACH;
|
|
1
|
+
{"version":3,"file":"GML2.d.ts","sourceRoot":"","sources":["GML2.js"],"names":[],"mappings":";AAyCA;;;;;;GAMG;AACH;IAqBE;;;;OAIG;IACH,0BAJW,IAAI,eACJ,UAAQ,GACP,MAAM,MAAM,CAAC,GAAC,SAAS,CA6BlC;IAED;;;;OAIG;IACH,cAJW,OAAO,eACP,UAAQ,GACP,OAAO,cAAc,EAAE,MAAM,GAAC,SAAS,CAiBlD;IAED;;;OAGG;IACH,4BAHW,OAAO,eACP,UAAQ,QAiBlB;IAED;;;OAGG;IACH,4BAHW,OAAO,eACP,UAAQ,QAiBlB;IAED;;;;;;;OAOG;IACH,+BAoBC;IAED;;;;OAIG;IACH,0BAJW,OAAO,WACP,OAAO,eAAe,EAAE,OAAO,eAC/B,UAAQ,QAsDlB;IAED;;;;OAIG;IACH,6BAJW,OAAO,YACP,OAAO,uBAAuB,EAAE,OAAO,eACvC,UAAQ,QAoBlB;IAED;;;;OAIG;IACH,mCAJW,OAAO,QACP,OAAO,uBAAuB,EAAE,OAAO,eACvC,UAAQ,QAQlB;IAED;;;;OAIG;IACH,kCAJW,OAAO,YACP,OAAO,4BAA4B,EAAE,OAAO,eAC5C,UAAQ,QAoBlB;IAED;;;;OAIG;IACH,2BAJW,IAAI,YACJ,OAAO,qBAAqB,EAAE,OAAO,GAAC,OAAO,cAAc,EAAE,MAAM,eACnE,UAAQ,QA+BlB;IAED;;;;OAIG;IACH,+BAOC;IAED;;;;;OAKG;IACH,0BAaC;IAED;;;;;OAKG;IACH,4BAIC;IAED;;;;OAIG;IACH,4BAJW,OAAO,YACP,OAAO,oBAAoB,EAAE,OAAO,eACpC,UAAQ,QAyBlB;IAED;;;;;;OAMG;IACH,2BAWC;IAED;;;;;OAKG;IACH,6BAIC;IAED;;;;OAIG;IACH,gBAJW,OAAO,QACP,OAAO,uBAAuB,EAAE,OAAO,eACvC,UAAQ,QAMlB;IAED;;;;;;OAMG;IACH,mBAgBC;IAED;;;;OAIG;IACH,iBAJW,OAAO,YACP,OAAO,kBAAkB,EAAE,OAAO,eAClC,UAAQ,QAclB;IAED;;;;OAIG;IACH,sBAJW,OAAO,YACP,OAAO,uBAAuB,EAAE,OAAO,eACvC,UAAQ,QAmBlB;IAED;;;;OAIG;IACH,uBAJW,OAAO,SACP,OAAO,kBAAkB,EAAE,OAAO,eAClC,UAAQ,QAMlB;IAED;;;;OAIG;IACH,sBAJW,OAAO,YACP,OAAO,uBAAuB,EAAE,OAAO,eACvC,UAAQ,QAWlB;IAED;;;;OAIG;IACH,iCAJW,OAAO,YACP,OAAO,yBAAyB,EAAE,OAAO,eACzC,UAAQ,QAoBlB;IAED;;;;OAIG;IACH,kCAJW,IAAI,WACJ,OAAO,oBAAoB,EAAE,OAAO,eACpC,UAAQ,QAQlB;IAED;;;;OAIG;IACH,oBAJW,OAAO,UACP,OAAO,cAAc,EAAE,MAAM,eAC7B,UAAQ,QAoBlB;IAED;;;;;;;OAOG;IACH,2CAMC;IAwBH;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;;MAEvC;IAuB3B;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAEnC;IAuBnC;;OAEG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAEpB;IAWlD;;OAEG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAEvC;IAO/B;;OAEG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAEhC;IAMtC;;;OAGG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAErB;IAWjD;;OAEG;IACH;YAFiB,MAAM;gBAAS,MAAM,GAAE,OAAO,WAAW,EAAE,UAAU;;MAEnC;CAhIlC"}
|