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/GeoJSON.js
CHANGED
|
@@ -50,10 +50,10 @@ import {transformGeometryWithOptions} from './Feature.js';
|
|
|
50
50
|
*/
|
|
51
51
|
class GeoJSON extends JSONFeature {
|
|
52
52
|
/**
|
|
53
|
-
* @param {Options} [
|
|
53
|
+
* @param {Options} [options] Options.
|
|
54
54
|
*/
|
|
55
|
-
constructor(
|
|
56
|
-
|
|
55
|
+
constructor(options) {
|
|
56
|
+
options = options ? options : {};
|
|
57
57
|
|
|
58
58
|
super();
|
|
59
59
|
|
|
@@ -93,11 +93,11 @@ class GeoJSON extends JSONFeature {
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* @param {Object} object Object.
|
|
96
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
96
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
97
97
|
* @protected
|
|
98
98
|
* @return {import("../Feature.js").default} Feature.
|
|
99
99
|
*/
|
|
100
|
-
readFeatureFromObject(object,
|
|
100
|
+
readFeatureFromObject(object, options) {
|
|
101
101
|
/**
|
|
102
102
|
* @type {GeoJSONFeature}
|
|
103
103
|
*/
|
|
@@ -112,7 +112,7 @@ class GeoJSON extends JSONFeature {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const geometry = readGeometry(geoJSONFeature['geometry'],
|
|
115
|
+
const geometry = readGeometry(geoJSONFeature['geometry'], options);
|
|
116
116
|
const feature = new Feature();
|
|
117
117
|
if (this.geometryName_) {
|
|
118
118
|
feature.setGeometryName(this.geometryName_);
|
|
@@ -136,11 +136,11 @@ class GeoJSON extends JSONFeature {
|
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* @param {Object} object Object.
|
|
139
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
139
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
140
140
|
* @protected
|
|
141
141
|
* @return {Array<Feature>} Features.
|
|
142
142
|
*/
|
|
143
|
-
readFeaturesFromObject(object,
|
|
143
|
+
readFeaturesFromObject(object, options) {
|
|
144
144
|
const geoJSONObject = /** @type {GeoJSONObject} */ (object);
|
|
145
145
|
/** @type {Array<import("../Feature.js").default>} */
|
|
146
146
|
let features = null;
|
|
@@ -151,24 +151,22 @@ class GeoJSON extends JSONFeature {
|
|
|
151
151
|
features = [];
|
|
152
152
|
const geoJSONFeatures = geoJSONFeatureCollection['features'];
|
|
153
153
|
for (let i = 0, ii = geoJSONFeatures.length; i < ii; ++i) {
|
|
154
|
-
features.push(
|
|
155
|
-
this.readFeatureFromObject(geoJSONFeatures[i], opt_options)
|
|
156
|
-
);
|
|
154
|
+
features.push(this.readFeatureFromObject(geoJSONFeatures[i], options));
|
|
157
155
|
}
|
|
158
156
|
} else {
|
|
159
|
-
features = [this.readFeatureFromObject(object,
|
|
157
|
+
features = [this.readFeatureFromObject(object, options)];
|
|
160
158
|
}
|
|
161
159
|
return features;
|
|
162
160
|
}
|
|
163
161
|
|
|
164
162
|
/**
|
|
165
163
|
* @param {GeoJSONGeometry} object Object.
|
|
166
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
164
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
167
165
|
* @protected
|
|
168
166
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
169
167
|
*/
|
|
170
|
-
readGeometryFromObject(object,
|
|
171
|
-
return readGeometry(object,
|
|
168
|
+
readGeometryFromObject(object, options) {
|
|
169
|
+
return readGeometry(object, options);
|
|
172
170
|
}
|
|
173
171
|
|
|
174
172
|
/**
|
|
@@ -197,12 +195,12 @@ class GeoJSON extends JSONFeature {
|
|
|
197
195
|
* Encode a feature as a GeoJSON Feature object.
|
|
198
196
|
*
|
|
199
197
|
* @param {import("../Feature.js").default} feature Feature.
|
|
200
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
198
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
201
199
|
* @return {GeoJSONFeature} Object.
|
|
202
200
|
* @api
|
|
203
201
|
*/
|
|
204
|
-
writeFeatureObject(feature,
|
|
205
|
-
|
|
202
|
+
writeFeatureObject(feature, options) {
|
|
203
|
+
options = this.adaptOptions(options);
|
|
206
204
|
|
|
207
205
|
/** @type {GeoJSONFeature} */
|
|
208
206
|
const object = {
|
|
@@ -223,7 +221,7 @@ class GeoJSON extends JSONFeature {
|
|
|
223
221
|
const properties = feature.getProperties();
|
|
224
222
|
const geometry = feature.getGeometry();
|
|
225
223
|
if (geometry) {
|
|
226
|
-
object.geometry = writeGeometry(geometry,
|
|
224
|
+
object.geometry = writeGeometry(geometry, options);
|
|
227
225
|
|
|
228
226
|
delete properties[feature.getGeometryName()];
|
|
229
227
|
}
|
|
@@ -239,15 +237,15 @@ class GeoJSON extends JSONFeature {
|
|
|
239
237
|
* Encode an array of features as a GeoJSON object.
|
|
240
238
|
*
|
|
241
239
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
242
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
240
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
243
241
|
* @return {GeoJSONFeatureCollection} GeoJSON Object.
|
|
244
242
|
* @api
|
|
245
243
|
*/
|
|
246
|
-
writeFeaturesObject(features,
|
|
247
|
-
|
|
244
|
+
writeFeaturesObject(features, options) {
|
|
245
|
+
options = this.adaptOptions(options);
|
|
248
246
|
const objects = [];
|
|
249
247
|
for (let i = 0, ii = features.length; i < ii; ++i) {
|
|
250
|
-
objects.push(this.writeFeatureObject(features[i],
|
|
248
|
+
objects.push(this.writeFeatureObject(features[i], options));
|
|
251
249
|
}
|
|
252
250
|
return {
|
|
253
251
|
type: 'FeatureCollection',
|
|
@@ -259,21 +257,21 @@ class GeoJSON extends JSONFeature {
|
|
|
259
257
|
* Encode a geometry as a GeoJSON object.
|
|
260
258
|
*
|
|
261
259
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
262
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
260
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
263
261
|
* @return {GeoJSONGeometry|GeoJSONGeometryCollection} Object.
|
|
264
262
|
* @api
|
|
265
263
|
*/
|
|
266
|
-
writeGeometryObject(geometry,
|
|
267
|
-
return writeGeometry(geometry, this.adaptOptions(
|
|
264
|
+
writeGeometryObject(geometry, options) {
|
|
265
|
+
return writeGeometry(geometry, this.adaptOptions(options));
|
|
268
266
|
}
|
|
269
267
|
}
|
|
270
268
|
|
|
271
269
|
/**
|
|
272
270
|
* @param {GeoJSONGeometry|GeoJSONGeometryCollection} object Object.
|
|
273
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
271
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
274
272
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
275
273
|
*/
|
|
276
|
-
function readGeometry(object,
|
|
274
|
+
function readGeometry(object, options) {
|
|
277
275
|
if (!object) {
|
|
278
276
|
return null;
|
|
279
277
|
}
|
|
@@ -325,22 +323,22 @@ function readGeometry(object, opt_options) {
|
|
|
325
323
|
throw new Error('Unsupported GeoJSON type: ' + object['type']);
|
|
326
324
|
}
|
|
327
325
|
}
|
|
328
|
-
return transformGeometryWithOptions(geometry, false,
|
|
326
|
+
return transformGeometryWithOptions(geometry, false, options);
|
|
329
327
|
}
|
|
330
328
|
|
|
331
329
|
/**
|
|
332
330
|
* @param {GeoJSONGeometryCollection} object Object.
|
|
333
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
331
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
334
332
|
* @return {GeometryCollection} Geometry collection.
|
|
335
333
|
*/
|
|
336
|
-
function readGeometryCollectionGeometry(object,
|
|
334
|
+
function readGeometryCollectionGeometry(object, options) {
|
|
337
335
|
const geometries = object['geometries'].map(
|
|
338
336
|
/**
|
|
339
337
|
* @param {GeoJSONGeometry} geometry Geometry.
|
|
340
338
|
* @return {import("../geom/Geometry.js").default} geometry Geometry.
|
|
341
339
|
*/
|
|
342
340
|
function (geometry) {
|
|
343
|
-
return readGeometry(geometry,
|
|
341
|
+
return readGeometry(geometry, options);
|
|
344
342
|
}
|
|
345
343
|
);
|
|
346
344
|
return new GeometryCollection(geometries);
|
|
@@ -396,62 +394,59 @@ function readPolygonGeometry(object) {
|
|
|
396
394
|
|
|
397
395
|
/**
|
|
398
396
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
399
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
397
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
400
398
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
401
399
|
*/
|
|
402
|
-
function writeGeometry(geometry,
|
|
403
|
-
geometry = transformGeometryWithOptions(geometry, true,
|
|
400
|
+
function writeGeometry(geometry, options) {
|
|
401
|
+
geometry = transformGeometryWithOptions(geometry, true, options);
|
|
404
402
|
const type = geometry.getType();
|
|
405
403
|
|
|
406
404
|
/** @type {GeoJSONGeometry} */
|
|
407
405
|
let geoJSON;
|
|
408
406
|
switch (type) {
|
|
409
407
|
case 'Point': {
|
|
410
|
-
geoJSON = writePointGeometry(
|
|
411
|
-
/** @type {Point} */ (geometry),
|
|
412
|
-
opt_options
|
|
413
|
-
);
|
|
408
|
+
geoJSON = writePointGeometry(/** @type {Point} */ (geometry), options);
|
|
414
409
|
break;
|
|
415
410
|
}
|
|
416
411
|
case 'LineString': {
|
|
417
412
|
geoJSON = writeLineStringGeometry(
|
|
418
413
|
/** @type {LineString} */ (geometry),
|
|
419
|
-
|
|
414
|
+
options
|
|
420
415
|
);
|
|
421
416
|
break;
|
|
422
417
|
}
|
|
423
418
|
case 'Polygon': {
|
|
424
419
|
geoJSON = writePolygonGeometry(
|
|
425
420
|
/** @type {Polygon} */ (geometry),
|
|
426
|
-
|
|
421
|
+
options
|
|
427
422
|
);
|
|
428
423
|
break;
|
|
429
424
|
}
|
|
430
425
|
case 'MultiPoint': {
|
|
431
426
|
geoJSON = writeMultiPointGeometry(
|
|
432
427
|
/** @type {MultiPoint} */ (geometry),
|
|
433
|
-
|
|
428
|
+
options
|
|
434
429
|
);
|
|
435
430
|
break;
|
|
436
431
|
}
|
|
437
432
|
case 'MultiLineString': {
|
|
438
433
|
geoJSON = writeMultiLineStringGeometry(
|
|
439
434
|
/** @type {MultiLineString} */ (geometry),
|
|
440
|
-
|
|
435
|
+
options
|
|
441
436
|
);
|
|
442
437
|
break;
|
|
443
438
|
}
|
|
444
439
|
case 'MultiPolygon': {
|
|
445
440
|
geoJSON = writeMultiPolygonGeometry(
|
|
446
441
|
/** @type {MultiPolygon} */ (geometry),
|
|
447
|
-
|
|
442
|
+
options
|
|
448
443
|
);
|
|
449
444
|
break;
|
|
450
445
|
}
|
|
451
446
|
case 'GeometryCollection': {
|
|
452
447
|
geoJSON = writeGeometryCollectionGeometry(
|
|
453
448
|
/** @type {GeometryCollection} */ (geometry),
|
|
454
|
-
|
|
449
|
+
options
|
|
455
450
|
);
|
|
456
451
|
break;
|
|
457
452
|
}
|
|
@@ -471,13 +466,13 @@ function writeGeometry(geometry, opt_options) {
|
|
|
471
466
|
|
|
472
467
|
/**
|
|
473
468
|
* @param {GeometryCollection} geometry Geometry.
|
|
474
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
469
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
475
470
|
* @return {GeoJSONGeometryCollection} GeoJSON geometry collection.
|
|
476
471
|
*/
|
|
477
|
-
function writeGeometryCollectionGeometry(geometry,
|
|
472
|
+
function writeGeometryCollectionGeometry(geometry, options) {
|
|
473
|
+
options = Object.assign({}, options);
|
|
474
|
+
delete options.featureProjection;
|
|
478
475
|
const geometries = geometry.getGeometriesArray().map(function (geometry) {
|
|
479
|
-
const options = Object.assign({}, opt_options);
|
|
480
|
-
delete options.featureProjection;
|
|
481
476
|
return writeGeometry(geometry, options);
|
|
482
477
|
});
|
|
483
478
|
return {
|
|
@@ -488,10 +483,10 @@ function writeGeometryCollectionGeometry(geometry, opt_options) {
|
|
|
488
483
|
|
|
489
484
|
/**
|
|
490
485
|
* @param {LineString} geometry Geometry.
|
|
491
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
486
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
492
487
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
493
488
|
*/
|
|
494
|
-
function writeLineStringGeometry(geometry,
|
|
489
|
+
function writeLineStringGeometry(geometry, options) {
|
|
495
490
|
return {
|
|
496
491
|
type: 'LineString',
|
|
497
492
|
coordinates: geometry.getCoordinates(),
|
|
@@ -500,10 +495,10 @@ function writeLineStringGeometry(geometry, opt_options) {
|
|
|
500
495
|
|
|
501
496
|
/**
|
|
502
497
|
* @param {MultiLineString} geometry Geometry.
|
|
503
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
498
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
504
499
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
505
500
|
*/
|
|
506
|
-
function writeMultiLineStringGeometry(geometry,
|
|
501
|
+
function writeMultiLineStringGeometry(geometry, options) {
|
|
507
502
|
return {
|
|
508
503
|
type: 'MultiLineString',
|
|
509
504
|
coordinates: geometry.getCoordinates(),
|
|
@@ -512,10 +507,10 @@ function writeMultiLineStringGeometry(geometry, opt_options) {
|
|
|
512
507
|
|
|
513
508
|
/**
|
|
514
509
|
* @param {MultiPoint} geometry Geometry.
|
|
515
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
510
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
516
511
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
517
512
|
*/
|
|
518
|
-
function writeMultiPointGeometry(geometry,
|
|
513
|
+
function writeMultiPointGeometry(geometry, options) {
|
|
519
514
|
return {
|
|
520
515
|
type: 'MultiPoint',
|
|
521
516
|
coordinates: geometry.getCoordinates(),
|
|
@@ -524,13 +519,13 @@ function writeMultiPointGeometry(geometry, opt_options) {
|
|
|
524
519
|
|
|
525
520
|
/**
|
|
526
521
|
* @param {MultiPolygon} geometry Geometry.
|
|
527
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
522
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
528
523
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
529
524
|
*/
|
|
530
|
-
function writeMultiPolygonGeometry(geometry,
|
|
525
|
+
function writeMultiPolygonGeometry(geometry, options) {
|
|
531
526
|
let right;
|
|
532
|
-
if (
|
|
533
|
-
right =
|
|
527
|
+
if (options) {
|
|
528
|
+
right = options.rightHanded;
|
|
534
529
|
}
|
|
535
530
|
return {
|
|
536
531
|
type: 'MultiPolygon',
|
|
@@ -540,10 +535,10 @@ function writeMultiPolygonGeometry(geometry, opt_options) {
|
|
|
540
535
|
|
|
541
536
|
/**
|
|
542
537
|
* @param {Point} geometry Geometry.
|
|
543
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
538
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
544
539
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
545
540
|
*/
|
|
546
|
-
function writePointGeometry(geometry,
|
|
541
|
+
function writePointGeometry(geometry, options) {
|
|
547
542
|
return {
|
|
548
543
|
type: 'Point',
|
|
549
544
|
coordinates: geometry.getCoordinates(),
|
|
@@ -552,13 +547,13 @@ function writePointGeometry(geometry, opt_options) {
|
|
|
552
547
|
|
|
553
548
|
/**
|
|
554
549
|
* @param {Polygon} geometry Geometry.
|
|
555
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
550
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
556
551
|
* @return {GeoJSONGeometry} GeoJSON geometry.
|
|
557
552
|
*/
|
|
558
|
-
function writePolygonGeometry(geometry,
|
|
553
|
+
function writePolygonGeometry(geometry, options) {
|
|
559
554
|
let right;
|
|
560
|
-
if (
|
|
561
|
-
right =
|
|
555
|
+
if (options) {
|
|
556
|
+
right = options.rightHanded;
|
|
562
557
|
}
|
|
563
558
|
return {
|
|
564
559
|
type: 'Polygon',
|
package/format/IGC.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export type Options = {
|
|
|
27
27
|
*/
|
|
28
28
|
declare class IGC extends TextFeature {
|
|
29
29
|
/**
|
|
30
|
-
* @param {Options} [
|
|
30
|
+
* @param {Options} [options] Options.
|
|
31
31
|
*/
|
|
32
|
-
constructor(
|
|
32
|
+
constructor(options?: Options | undefined);
|
|
33
33
|
/**
|
|
34
34
|
* @type {import("../proj/Projection.js").default}
|
|
35
35
|
*/
|
package/format/IGC.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGC.d.ts","sourceRoot":"","sources":["IGC.js"],"names":[],"mappings":";;;;mBAUa,YAAY,GAAG,KAAK,GAAG,MAAM;;;;;;;;AA+B1C;;;;GAIG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH
|
|
1
|
+
{"version":3,"file":"IGC.d.ts","sourceRoot":"","sources":["IGC.js"],"names":[],"mappings":";;;;mBAUa,YAAY,GAAG,KAAK,GAAG,MAAM;;;;;;;;AA+B1C;;;;GAIG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAeC;IAVC;;OAEG;IACH,gBAFU,OAAO,uBAAuB,EAAE,OAAO,CAED;IAEhD;;;OAGG;IACH,sBAAyE;CAiG5E"}
|
package/format/IGC.js
CHANGED
|
@@ -57,12 +57,12 @@ const NEWLINE_RE = /\r\n|\r|\n/;
|
|
|
57
57
|
*/
|
|
58
58
|
class IGC extends TextFeature {
|
|
59
59
|
/**
|
|
60
|
-
* @param {Options} [
|
|
60
|
+
* @param {Options} [options] Options.
|
|
61
61
|
*/
|
|
62
|
-
constructor(
|
|
62
|
+
constructor(options) {
|
|
63
63
|
super();
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
options = options ? options : {};
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* @type {import("../proj/Projection.js").default}
|
|
@@ -79,10 +79,10 @@ class IGC extends TextFeature {
|
|
|
79
79
|
/**
|
|
80
80
|
* @protected
|
|
81
81
|
* @param {string} text Text.
|
|
82
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
82
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
83
83
|
* @return {import("../Feature.js").default} Feature.
|
|
84
84
|
*/
|
|
85
|
-
readFeatureFromText(text,
|
|
85
|
+
readFeatureFromText(text, options) {
|
|
86
86
|
const altitudeMode = this.altitudeMode_;
|
|
87
87
|
const lines = text.split(NEWLINE_RE);
|
|
88
88
|
/** @type {Object<string, string>} */
|
|
@@ -150,7 +150,7 @@ class IGC extends TextFeature {
|
|
|
150
150
|
const layout = altitudeMode == 'none' ? 'XYM' : 'XYZM';
|
|
151
151
|
const lineString = new LineString(flatCoordinates, layout);
|
|
152
152
|
const feature = new Feature(
|
|
153
|
-
transformGeometryWithOptions(lineString, false,
|
|
153
|
+
transformGeometryWithOptions(lineString, false, options)
|
|
154
154
|
);
|
|
155
155
|
feature.setProperties(properties, true);
|
|
156
156
|
return feature;
|
|
@@ -158,12 +158,12 @@ class IGC extends TextFeature {
|
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* @param {string} text Text.
|
|
161
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
161
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
162
162
|
* @protected
|
|
163
163
|
* @return {Array<Feature>} Features.
|
|
164
164
|
*/
|
|
165
|
-
readFeaturesFromText(text,
|
|
166
|
-
const feature = this.readFeatureFromText(text,
|
|
165
|
+
readFeaturesFromText(text, options) {
|
|
166
|
+
const feature = this.readFeatureFromText(text, options);
|
|
167
167
|
if (feature) {
|
|
168
168
|
return [feature];
|
|
169
169
|
} else {
|
package/format/IIIFInfo.d.ts
CHANGED
|
@@ -123,10 +123,10 @@ declare class IIIFInfo {
|
|
|
123
123
|
*/
|
|
124
124
|
getComplianceLevelSupportedFeatures(): SupportedFeatures;
|
|
125
125
|
/**
|
|
126
|
-
* @param {PreferredOptions} [
|
|
126
|
+
* @param {PreferredOptions} [preferredOptions] Optional options for preferred format and quality.
|
|
127
127
|
* @return {import("../source/IIIF.js").Options} IIIF tile source ready constructor options.
|
|
128
128
|
* @api
|
|
129
129
|
*/
|
|
130
|
-
getTileSourceOptions(
|
|
130
|
+
getTileSourceOptions(preferredOptions?: PreferredOptions | undefined): import("../source/IIIF.js").Options;
|
|
131
131
|
}
|
|
132
132
|
//# sourceMappingURL=IIIFInfo.d.ts.map
|
package/format/IIIFInfo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IIIFInfo.d.ts","sourceRoot":"","sources":["IIIFInfo.js"],"names":[],"mappings":";;;uBA+CU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAvBF,MAAM,MAAM,CAAC;;;;WACb,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgBA,MAAM,GAAC,MAAM,GAAC,MAAM,GAAC,MAAM,MAAM,GAAC,MAAM,GAAC,WAAW;YAAQ,MAAM,GAAE,MAAM;QAAE,QAAQ,CAAC;;AAoQzG;;;;;;GAMG;AACH;IACE;;;OAGG;IACH,uBAHW,MAAM,GAAC,wBAAwB,EAKzC;IAED;;;;OAIG;IACH,wBAJW,MAAM,GAAC,wBAAwB,QAUzC;IAJG,eAAsC;IAM1C;;;OAGG;IACH,sBAHY,QAAQ,CAiCnB;IAED;;;;OAIG;IACH,4CAJW,QAAQ,GACP,MAAM,CAuCjB;IAED;;;OAGG;IACH,uCAHW,QAAQ,GACP,MAAM,CASjB;IAED;;;OAGG;IACH,uCAHY,iBAAiB,CAa5B;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"IIIFInfo.d.ts","sourceRoot":"","sources":["IIIFInfo.js"],"names":[],"mappings":";;;uBA+CU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAvBF,MAAM,MAAM,CAAC;;;;WACb,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgBA,MAAM,GAAC,MAAM,GAAC,MAAM,GAAC,MAAM,MAAM,GAAC,MAAM,GAAC,WAAW;YAAQ,MAAM,GAAE,MAAM;QAAE,QAAQ,CAAC;;AAoQzG;;;;;;GAMG;AACH;IACE;;;OAGG;IACH,uBAHW,MAAM,GAAC,wBAAwB,EAKzC;IAED;;;;OAIG;IACH,wBAJW,MAAM,GAAC,wBAAwB,QAUzC;IAJG,eAAsC;IAM1C;;;OAGG;IACH,sBAHY,QAAQ,CAiCnB;IAED;;;;OAIG;IACH,4CAJW,QAAQ,GACP,MAAM,CAuCjB;IAED;;;OAGG;IACH,uCAHW,QAAQ,GACP,MAAM,CASjB;IAED;;;OAGG;IACH,uCAHY,iBAAiB,CAa5B;IAED;;;;OAIG;IACH,uEAHY,OAAO,mBAAmB,EAAE,OAAO,CAwC9C;CACF"}
|
package/format/IIIFInfo.js
CHANGED
|
@@ -437,12 +437,12 @@ class IIIFInfo {
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
/**
|
|
440
|
-
* @param {PreferredOptions} [
|
|
440
|
+
* @param {PreferredOptions} [preferredOptions] Optional options for preferred format and quality.
|
|
441
441
|
* @return {import("../source/IIIF.js").Options} IIIF tile source ready constructor options.
|
|
442
442
|
* @api
|
|
443
443
|
*/
|
|
444
|
-
getTileSourceOptions(
|
|
445
|
-
const options =
|
|
444
|
+
getTileSourceOptions(preferredOptions) {
|
|
445
|
+
const options = preferredOptions || {},
|
|
446
446
|
version = this.getImageApiVersion();
|
|
447
447
|
if (version === undefined) {
|
|
448
448
|
return;
|
package/format/JSONFeature.d.ts
CHANGED
|
@@ -13,45 +13,45 @@ declare class JSONFeature extends FeatureFormat {
|
|
|
13
13
|
* read a feature collection.
|
|
14
14
|
*
|
|
15
15
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
16
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
16
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
17
17
|
* @return {import("../Feature.js").default} Feature.
|
|
18
18
|
* @api
|
|
19
19
|
*/
|
|
20
|
-
readFeature(source: ArrayBuffer | Document | Element | any | string,
|
|
20
|
+
readFeature(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): import("../Feature.js").default;
|
|
21
21
|
/**
|
|
22
22
|
* Read all features. Works with both a single feature and a feature
|
|
23
23
|
* collection.
|
|
24
24
|
*
|
|
25
25
|
* @param {ArrayBuffer|Document|Element|Object|string} source Source.
|
|
26
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
26
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
27
27
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
28
28
|
* @api
|
|
29
29
|
*/
|
|
30
|
-
readFeatures(source: ArrayBuffer | Document | Element | any | string,
|
|
30
|
+
readFeatures(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): Array<import("../Feature.js").default>;
|
|
31
31
|
/**
|
|
32
32
|
* @abstract
|
|
33
33
|
* @param {Object} object Object.
|
|
34
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
34
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
35
35
|
* @protected
|
|
36
36
|
* @return {import("../Feature.js").default} Feature.
|
|
37
37
|
*/
|
|
38
|
-
protected readFeatureFromObject(object: any,
|
|
38
|
+
protected readFeatureFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): import("../Feature.js").default;
|
|
39
39
|
/**
|
|
40
40
|
* @abstract
|
|
41
41
|
* @param {Object} object Object.
|
|
42
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
42
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
43
43
|
* @protected
|
|
44
44
|
* @return {Array<import("../Feature.js").default>} Features.
|
|
45
45
|
*/
|
|
46
|
-
protected readFeaturesFromObject(object: any,
|
|
46
|
+
protected readFeaturesFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): Array<import("../Feature.js").default>;
|
|
47
47
|
/**
|
|
48
48
|
* @abstract
|
|
49
49
|
* @param {Object} object Object.
|
|
50
|
-
* @param {import("./Feature.js").ReadOptions} [
|
|
50
|
+
* @param {import("./Feature.js").ReadOptions} [options] Read options.
|
|
51
51
|
* @protected
|
|
52
52
|
* @return {import("../geom/Geometry.js").default} Geometry.
|
|
53
53
|
*/
|
|
54
|
-
protected readGeometryFromObject(object: any,
|
|
54
|
+
protected readGeometryFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): import("../geom/Geometry.js").default;
|
|
55
55
|
/**
|
|
56
56
|
* Read the projection.
|
|
57
57
|
*
|
|
@@ -71,50 +71,50 @@ declare class JSONFeature extends FeatureFormat {
|
|
|
71
71
|
* Encode a feature as string.
|
|
72
72
|
*
|
|
73
73
|
* @param {import("../Feature.js").default} feature Feature.
|
|
74
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
74
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
75
75
|
* @return {string} Encoded feature.
|
|
76
76
|
* @api
|
|
77
77
|
*/
|
|
78
|
-
writeFeature(feature: import("../Feature.js").default,
|
|
78
|
+
writeFeature(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
79
79
|
/**
|
|
80
80
|
* @abstract
|
|
81
81
|
* @param {import("../Feature.js").default} feature Feature.
|
|
82
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
82
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
83
83
|
* @return {Object} Object.
|
|
84
84
|
*/
|
|
85
|
-
writeFeatureObject(feature: import("../Feature.js").default,
|
|
85
|
+
writeFeatureObject(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): any;
|
|
86
86
|
/**
|
|
87
87
|
* Encode an array of features as string.
|
|
88
88
|
*
|
|
89
89
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
90
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
90
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
91
91
|
* @return {string} Encoded features.
|
|
92
92
|
* @api
|
|
93
93
|
*/
|
|
94
|
-
writeFeatures(features: Array<import("../Feature.js").default>,
|
|
94
|
+
writeFeatures(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
95
95
|
/**
|
|
96
96
|
* @abstract
|
|
97
97
|
* @param {Array<import("../Feature.js").default>} features Features.
|
|
98
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
98
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
99
99
|
* @return {Object} Object.
|
|
100
100
|
*/
|
|
101
|
-
writeFeaturesObject(features: Array<import("../Feature.js").default>,
|
|
101
|
+
writeFeaturesObject(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): any;
|
|
102
102
|
/**
|
|
103
103
|
* Encode a geometry as string.
|
|
104
104
|
*
|
|
105
105
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
106
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
106
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
107
107
|
* @return {string} Encoded geometry.
|
|
108
108
|
* @api
|
|
109
109
|
*/
|
|
110
|
-
writeGeometry(geometry: import("../geom/Geometry.js").default,
|
|
110
|
+
writeGeometry(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
|
|
111
111
|
/**
|
|
112
112
|
* @abstract
|
|
113
113
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
|
114
|
-
* @param {import("./Feature.js").WriteOptions} [
|
|
114
|
+
* @param {import("./Feature.js").WriteOptions} [options] Write options.
|
|
115
115
|
* @return {Object} Object.
|
|
116
116
|
*/
|
|
117
|
-
writeGeometryObject(geometry: import("../geom/Geometry.js").default,
|
|
117
|
+
writeGeometryObject(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): any;
|
|
118
118
|
}
|
|
119
119
|
import FeatureFormat from "./Feature.js";
|
|
120
120
|
//# sourceMappingURL=JSONFeature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONFeature.d.ts","sourceRoot":"","sources":["JSONFeature.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH;IAYE;;;;;;;;OAQG;IACH,oBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"JSONFeature.d.ts","sourceRoot":"","sources":["JSONFeature.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH;IAYE;;;;;;;;OAQG;IACH,oBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,OAAO,eAAe,EAAE,OAAO,CAQ1C;IAED;;;;;;;;OAQG;IACH,qBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAQjD;IAED;;;;;;OAMG;IACH,wGAFY,OAAO,eAAe,EAAE,OAAO,CAI1C;IAED;;;;;;OAMG;IACH,yGAFY,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,CAIjD;IAiBD;;;;;;OAMG;IACH,yGAFY,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAED;;;;;;OAMG;IACH,uBAJW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,GACzC,OAAO,uBAAuB,EAAE,OAAO,CAKlD;IAED;;;;;OAKG;IACH,iDAFY,OAAO,uBAAuB,EAAE,OAAO,CAIlD;IAED;;;;;;;OAOG;IACH,sBALW,OAAO,eAAe,EAAE,OAAO,8DAE9B,MAAM,CAKjB;IAED;;;;;OAKG;IACH,4BAJW,OAAO,eAAe,EAAE,OAAO,kEAMzC;IAED;;;;;;;OAOG;IACH,wBALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,8DAErC,MAAM,CAKjB;IAED;;;;;OAKG;IACH,8BAJW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,kEAMhD;IAED;;;;;;;OAOG;IACH,wBALW,OAAO,qBAAqB,EAAE,OAAO,8DAEpC,MAAM,CAKjB;IAED;;;;;OAKG;IACH,8BAJW,OAAO,qBAAqB,EAAE,OAAO,kEAM/C;CACF"}
|