ol 7.3.0 → 7.3.1-dev
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 +2 -2
- package/Collection.d.ts.map +1 -1
- package/DataTile.d.ts +1 -1
- package/DataTile.d.ts.map +1 -1
- package/DataTile.js +2 -1
- package/Feature.d.ts +1 -1
- package/Feature.d.ts.map +1 -1
- package/Geolocation.d.ts +2 -2
- package/Geolocation.d.ts.map +1 -1
- package/Image.d.ts +1 -1
- package/Image.d.ts.map +1 -1
- package/ImageBase.d.ts +1 -1
- package/ImageBase.d.ts.map +1 -1
- package/ImageCanvas.d.ts +1 -1
- package/ImageCanvas.d.ts.map +1 -1
- package/ImageTile.d.ts +1 -1
- package/ImageTile.d.ts.map +1 -1
- package/Map.d.ts +7 -7
- package/Map.d.ts.map +1 -1
- package/Map.js +2 -1
- package/MapBrowserEvent.d.ts +1 -1
- package/MapBrowserEvent.d.ts.map +1 -1
- package/MapBrowserEventHandler.d.ts +1 -1
- package/MapBrowserEventHandler.d.ts.map +1 -1
- package/MapEvent.d.ts +1 -1
- package/MapEvent.d.ts.map +1 -1
- package/Object.d.ts +2 -2
- package/Object.d.ts.map +1 -1
- package/Observable.d.ts +1 -1
- package/Observable.d.ts.map +1 -1
- package/Overlay.d.ts +1 -1
- package/Overlay.d.ts.map +1 -1
- package/Tile.d.ts +1 -1
- package/Tile.d.ts.map +1 -1
- package/TileCache.d.ts +1 -1
- package/TileCache.d.ts.map +1 -1
- package/TileQueue.d.ts +1 -1
- package/TileQueue.d.ts.map +1 -1
- package/VectorRenderTile.d.ts +1 -1
- package/VectorRenderTile.d.ts.map +1 -1
- package/VectorTile.d.ts +1 -1
- package/VectorTile.d.ts.map +1 -1
- package/View.d.ts +10 -6
- package/View.d.ts.map +1 -1
- package/View.js +9 -6
- package/array.d.ts.map +1 -1
- package/array.js +38 -20
- package/control/Attribution.d.ts +1 -1
- package/control/Attribution.d.ts.map +1 -1
- package/control/Control.d.ts +1 -1
- package/control/Control.d.ts.map +1 -1
- package/control/FullScreen.d.ts +1 -1
- package/control/FullScreen.d.ts.map +1 -1
- package/control/MousePosition.d.ts +1 -1
- package/control/MousePosition.d.ts.map +1 -1
- package/control/OverviewMap.d.ts +3 -3
- package/control/OverviewMap.d.ts.map +1 -1
- package/control/Rotate.d.ts +1 -1
- package/control/Rotate.d.ts.map +1 -1
- package/control/ScaleLine.d.ts +1 -1
- package/control/ScaleLine.d.ts.map +1 -1
- package/control/Zoom.d.ts +1 -1
- package/control/Zoom.d.ts.map +1 -1
- package/control/ZoomSlider.d.ts +1 -1
- package/control/ZoomSlider.d.ts.map +1 -1
- package/control/ZoomToExtent.d.ts +1 -1
- package/control/ZoomToExtent.d.ts.map +1 -1
- package/control/defaults.d.ts +1 -1
- package/control/defaults.d.ts.map +1 -1
- package/dist/ol.js +2 -2
- package/dist/ol.js.map +1 -1
- package/events/Key.d.ts +8 -0
- package/events/Key.d.ts.map +1 -0
- package/events/Key.js +14 -0
- package/events/Target.d.ts +1 -1
- package/events/Target.d.ts.map +1 -1
- package/events/condition.d.ts +2 -2
- package/events/condition.d.ts.map +1 -1
- package/extent.d.ts.map +1 -1
- package/extent.js +7 -2
- package/format/EsriJSON.d.ts +1 -1
- package/format/EsriJSON.d.ts.map +1 -1
- package/format/GML.d.ts +1 -1
- package/format/GML.d.ts.map +1 -1
- package/format/GML2.d.ts +1 -1
- package/format/GML2.d.ts.map +1 -1
- package/format/GML3.d.ts +5 -5
- package/format/GML3.d.ts.map +1 -1
- package/format/GML32.d.ts +1 -1
- package/format/GML32.d.ts.map +1 -1
- package/format/GMLBase.d.ts +9 -9
- package/format/GMLBase.d.ts.map +1 -1
- package/format/GPX.d.ts +2 -2
- package/format/GPX.d.ts.map +1 -1
- package/format/GeoJSON.d.ts +1 -1
- package/format/GeoJSON.d.ts.map +1 -1
- package/format/IGC.d.ts +1 -1
- package/format/IGC.d.ts.map +1 -1
- package/format/IIIFInfo.d.ts +8 -8
- package/format/IIIFInfo.d.ts.map +1 -1
- package/format/IIIFInfo.js +10 -9
- package/format/JSONFeature.d.ts +1 -1
- package/format/JSONFeature.d.ts.map +1 -1
- package/format/JSONFeature.js +2 -1
- package/format/KML.d.ts +121 -5
- package/format/KML.d.ts.map +1 -1
- package/format/KML.js +105 -7
- package/format/MVT.d.ts +2 -2
- package/format/MVT.d.ts.map +1 -1
- package/format/OSMXML.d.ts +1 -1
- package/format/OSMXML.d.ts.map +1 -1
- package/format/OSMXML.js +11 -4
- package/format/OWS.d.ts +1 -1
- package/format/OWS.d.ts.map +1 -1
- package/format/Polyline.d.ts +2 -2
- package/format/Polyline.d.ts.map +1 -1
- package/format/TextFeature.d.ts +1 -1
- package/format/TextFeature.d.ts.map +1 -1
- package/format/TopoJSON.d.ts +1 -1
- package/format/TopoJSON.d.ts.map +1 -1
- package/format/WFS.d.ts +2 -2
- package/format/WFS.d.ts.map +1 -1
- package/format/WFS.js +8 -4
- package/format/WKB.d.ts +1 -1
- package/format/WKB.d.ts.map +1 -1
- package/format/WKB.js +6 -4
- package/format/WKT.d.ts +1 -1
- package/format/WKT.d.ts.map +1 -1
- package/format/WMSCapabilities.d.ts +1 -1
- package/format/WMSCapabilities.d.ts.map +1 -1
- package/format/WMSGetFeatureInfo.d.ts +1 -1
- package/format/WMSGetFeatureInfo.d.ts.map +1 -1
- package/format/WMTSCapabilities.d.ts +1 -1
- package/format/WMTSCapabilities.d.ts.map +1 -1
- package/format/XML.d.ts.map +1 -1
- package/format/XML.js +4 -2
- package/format/XMLFeature.d.ts +1 -1
- package/format/XMLFeature.d.ts.map +1 -1
- package/format/XMLFeature.js +16 -8
- package/format/filter/And.d.ts +1 -1
- package/format/filter/And.d.ts.map +1 -1
- package/format/filter/Bbox.d.ts +1 -1
- package/format/filter/Bbox.d.ts.map +1 -1
- package/format/filter/Comparison.d.ts +1 -1
- package/format/filter/Comparison.d.ts.map +1 -1
- package/format/filter/ComparisonBinary.d.ts +1 -1
- package/format/filter/ComparisonBinary.d.ts.map +1 -1
- package/format/filter/Contains.d.ts +1 -1
- package/format/filter/Contains.d.ts.map +1 -1
- package/format/filter/DWithin.d.ts +1 -1
- package/format/filter/DWithin.d.ts.map +1 -1
- package/format/filter/Disjoint.d.ts +1 -1
- package/format/filter/Disjoint.d.ts.map +1 -1
- package/format/filter/During.d.ts +1 -1
- package/format/filter/During.d.ts.map +1 -1
- package/format/filter/EqualTo.d.ts +1 -1
- package/format/filter/EqualTo.d.ts.map +1 -1
- package/format/filter/GreaterThan.d.ts +1 -1
- package/format/filter/GreaterThan.d.ts.map +1 -1
- package/format/filter/GreaterThanOrEqualTo.d.ts +1 -1
- package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/Intersects.d.ts +1 -1
- package/format/filter/Intersects.d.ts.map +1 -1
- package/format/filter/IsBetween.d.ts +1 -1
- package/format/filter/IsBetween.d.ts.map +1 -1
- package/format/filter/IsLike.d.ts +1 -1
- package/format/filter/IsLike.d.ts.map +1 -1
- package/format/filter/IsNull.d.ts +1 -1
- package/format/filter/IsNull.d.ts.map +1 -1
- package/format/filter/LessThan.d.ts +1 -1
- package/format/filter/LessThan.d.ts.map +1 -1
- package/format/filter/LessThanOrEqualTo.d.ts +1 -1
- package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
- package/format/filter/LogicalNary.d.ts +1 -1
- package/format/filter/LogicalNary.d.ts.map +1 -1
- package/format/filter/Not.d.ts +1 -1
- package/format/filter/Not.d.ts.map +1 -1
- package/format/filter/NotEqualTo.d.ts +1 -1
- package/format/filter/NotEqualTo.d.ts.map +1 -1
- package/format/filter/Or.d.ts +2 -2
- package/format/filter/Or.d.ts.map +1 -1
- package/format/filter/Or.js +1 -1
- package/format/filter/ResourceId.d.ts +1 -1
- package/format/filter/ResourceId.d.ts.map +1 -1
- package/format/filter/Spatial.d.ts +1 -1
- package/format/filter/Spatial.d.ts.map +1 -1
- package/format/filter/Within.d.ts +1 -1
- package/format/filter/Within.d.ts.map +1 -1
- package/format/filter.d.ts +20 -20
- package/format/filter.d.ts.map +1 -1
- package/geom/Circle.d.ts +1 -1
- package/geom/Circle.d.ts.map +1 -1
- package/geom/Circle.js +1 -17
- package/geom/Geometry.d.ts +1 -1
- package/geom/Geometry.d.ts.map +1 -1
- package/geom/GeometryCollection.d.ts +1 -1
- package/geom/GeometryCollection.d.ts.map +1 -1
- package/geom/LineString.d.ts +1 -1
- package/geom/LineString.d.ts.map +1 -1
- package/geom/LinearRing.d.ts +1 -1
- package/geom/LinearRing.d.ts.map +1 -1
- package/geom/MultiLineString.d.ts +2 -2
- package/geom/MultiLineString.d.ts.map +1 -1
- package/geom/MultiPoint.d.ts +2 -2
- package/geom/MultiPoint.d.ts.map +1 -1
- package/geom/MultiPolygon.d.ts +3 -3
- package/geom/MultiPolygon.d.ts.map +1 -1
- package/geom/Point.d.ts +1 -1
- package/geom/Point.d.ts.map +1 -1
- package/geom/Polygon.d.ts +3 -3
- package/geom/Polygon.d.ts.map +1 -1
- package/geom/SimpleGeometry.d.ts +1 -1
- package/geom/SimpleGeometry.d.ts.map +1 -1
- package/geom/flat/interpolate.d.ts.map +1 -1
- package/geom/flat/interpolate.js +4 -2
- package/geom/flat/orient.d.ts +1 -1
- package/geom/flat/orient.js +1 -1
- package/interaction/DblClickDragZoom.d.ts +110 -0
- package/interaction/DblClickDragZoom.d.ts.map +1 -0
- package/interaction/DblClickDragZoom.js +251 -0
- package/interaction/DoubleClickZoom.d.ts +1 -1
- package/interaction/DoubleClickZoom.d.ts.map +1 -1
- package/interaction/DragAndDrop.d.ts +2 -2
- package/interaction/DragAndDrop.d.ts.map +1 -1
- package/interaction/DragBox.d.ts +2 -2
- package/interaction/DragBox.d.ts.map +1 -1
- package/interaction/DragPan.d.ts +1 -1
- package/interaction/DragPan.d.ts.map +1 -1
- package/interaction/DragRotate.d.ts +1 -1
- package/interaction/DragRotate.d.ts.map +1 -1
- package/interaction/DragRotateAndZoom.d.ts +1 -1
- package/interaction/DragRotateAndZoom.d.ts.map +1 -1
- package/interaction/DragZoom.d.ts +1 -1
- package/interaction/DragZoom.d.ts.map +1 -1
- package/interaction/Draw.d.ts +6 -6
- package/interaction/Draw.d.ts.map +1 -1
- package/interaction/Extent.d.ts +2 -2
- package/interaction/Extent.d.ts.map +1 -1
- package/interaction/Extent.js +2 -1
- package/interaction/Interaction.d.ts +1 -1
- package/interaction/Interaction.d.ts.map +1 -1
- package/interaction/KeyboardPan.d.ts +1 -1
- package/interaction/KeyboardPan.d.ts.map +1 -1
- package/interaction/KeyboardPan.js +9 -9
- package/interaction/KeyboardZoom.d.ts +1 -1
- package/interaction/KeyboardZoom.d.ts.map +1 -1
- package/interaction/Link.d.ts +1 -1
- package/interaction/Link.d.ts.map +1 -1
- package/interaction/Modify.d.ts +6 -6
- package/interaction/Modify.d.ts.map +1 -1
- package/interaction/Modify.js +6 -1
- package/interaction/MouseWheelZoom.d.ts +1 -1
- package/interaction/MouseWheelZoom.d.ts.map +1 -1
- package/interaction/PinchRotate.d.ts +1 -1
- package/interaction/PinchRotate.d.ts.map +1 -1
- package/interaction/PinchZoom.d.ts +1 -1
- package/interaction/PinchZoom.d.ts.map +1 -1
- package/interaction/Pointer.d.ts +1 -1
- package/interaction/Pointer.d.ts.map +1 -1
- package/interaction/Select.d.ts +5 -5
- package/interaction/Select.d.ts.map +1 -1
- package/interaction/Snap.d.ts +1 -1
- package/interaction/Snap.d.ts.map +1 -1
- package/interaction/Snap.js +10 -4
- package/interaction/Translate.d.ts +4 -4
- package/interaction/Translate.d.ts.map +1 -1
- package/interaction/Translate.js +18 -3
- package/interaction/defaults.d.ts +1 -1
- package/interaction/defaults.d.ts.map +1 -1
- package/interaction.d.ts +1 -0
- package/interaction.js +1 -0
- package/layer/Base.d.ts +4 -3
- package/layer/Base.d.ts.map +1 -1
- package/layer/Base.js +3 -2
- package/layer/BaseImage.d.ts +1 -1
- package/layer/BaseImage.d.ts.map +1 -1
- package/layer/BaseTile.d.ts +1 -1
- package/layer/BaseTile.d.ts.map +1 -1
- package/layer/BaseVector.d.ts +10 -4
- package/layer/BaseVector.d.ts.map +1 -1
- package/layer/BaseVector.js +9 -3
- package/layer/Graticule.d.ts +6 -6
- package/layer/Graticule.d.ts.map +1 -1
- package/layer/Group.d.ts +4 -4
- package/layer/Group.d.ts.map +1 -1
- package/layer/Heatmap.d.ts +2 -2
- package/layer/Heatmap.d.ts.map +1 -1
- package/layer/Image.d.ts +2 -2
- package/layer/Image.d.ts.map +1 -1
- package/layer/Layer.d.ts +14 -11
- package/layer/Layer.d.ts.map +1 -1
- package/layer/Layer.js +28 -8
- package/layer/MapboxVector.d.ts +1 -1
- package/layer/MapboxVector.d.ts.map +1 -1
- package/layer/Tile.d.ts +2 -2
- package/layer/Tile.d.ts.map +1 -1
- package/layer/Vector.d.ts +2 -2
- package/layer/Vector.d.ts.map +1 -1
- package/layer/VectorImage.d.ts +2 -2
- package/layer/VectorImage.d.ts.map +1 -1
- package/layer/VectorTile.d.ts +2 -2
- package/layer/VectorTile.d.ts.map +1 -1
- package/layer/WebGLPoints.d.ts +4 -4
- package/layer/WebGLPoints.d.ts.map +1 -1
- package/layer/WebGLPoints.js +13 -4
- package/layer/WebGLTile.d.ts +9 -2
- package/layer/WebGLTile.d.ts.map +1 -1
- package/layer/WebGLTile.js +6 -6
- package/package.json +2 -2
- package/proj/proj4.d.ts +2 -2
- package/proj/proj4.d.ts.map +1 -1
- package/proj/proj4.js +1 -1
- package/proj.d.ts +9 -9
- package/proj.d.ts.map +1 -1
- package/proj.js +9 -8
- package/render/Box.d.ts +1 -1
- package/render/Box.d.ts.map +1 -1
- package/render/Event.d.ts +1 -1
- package/render/Event.d.ts.map +1 -1
- package/render/Feature.d.ts +7 -7
- package/render/Feature.d.ts.map +1 -1
- package/render/canvas/Builder.d.ts +1 -1
- package/render/canvas/Builder.d.ts.map +1 -1
- package/render/canvas/ImageBuilder.d.ts +1 -1
- package/render/canvas/ImageBuilder.d.ts.map +1 -1
- package/render/canvas/Immediate.d.ts +1 -1
- package/render/canvas/Immediate.d.ts.map +1 -1
- package/render/canvas/Immediate.js +9 -1
- package/render/canvas/LineStringBuilder.d.ts +1 -1
- package/render/canvas/LineStringBuilder.d.ts.map +1 -1
- package/render/canvas/PolygonBuilder.d.ts +1 -1
- package/render/canvas/PolygonBuilder.d.ts.map +1 -1
- package/render/canvas/TextBuilder.d.ts +1 -1
- package/render/canvas/TextBuilder.d.ts.map +1 -1
- package/render/canvas.d.ts +1 -1
- package/render/canvas.d.ts.map +1 -1
- package/render/webgl/MixedGeometryBatch.d.ts +37 -131
- package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
- package/render/webgl/MixedGeometryBatch.js +230 -147
- package/render/webgl/VectorStyleRenderer.d.ts +256 -0
- package/render/webgl/VectorStyleRenderer.d.ts.map +1 -0
- package/render/webgl/VectorStyleRenderer.js +440 -0
- package/render/webgl/constants.d.ts +1 -1
- package/render/webgl/constants.js +1 -1
- package/render/webgl/renderinstructions.d.ts +36 -0
- package/render/webgl/renderinstructions.d.ts.map +1 -0
- package/render/webgl/renderinstructions.js +241 -0
- package/render/webgl/utils.d.ts +4 -4
- package/render/webgl/utils.d.ts.map +1 -1
- package/render/webgl/utils.js +9 -9
- package/render.d.ts +1 -1
- package/render.d.ts.map +1 -1
- package/renderer/Composite.d.ts +1 -1
- package/renderer/Composite.d.ts.map +1 -1
- package/renderer/Layer.d.ts +1 -1
- package/renderer/Layer.d.ts.map +1 -1
- package/renderer/Map.d.ts +1 -1
- package/renderer/Map.d.ts.map +1 -1
- package/renderer/canvas/ImageLayer.d.ts +1 -1
- package/renderer/canvas/ImageLayer.d.ts.map +1 -1
- package/renderer/canvas/Layer.d.ts +1 -1
- package/renderer/canvas/Layer.d.ts.map +1 -1
- package/renderer/canvas/TileLayer.d.ts +1 -1
- package/renderer/canvas/TileLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts +1 -1
- package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorLayer.d.ts +3 -3
- package/renderer/canvas/VectorLayer.d.ts.map +1 -1
- package/renderer/canvas/VectorTileLayer.d.ts +2 -2
- package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
- package/renderer/webgl/Layer.d.ts +2 -2
- package/renderer/webgl/Layer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.d.ts +3 -3
- package/renderer/webgl/PointsLayer.d.ts.map +1 -1
- package/renderer/webgl/PointsLayer.js +5 -8
- package/renderer/webgl/TileLayer.d.ts +32 -99
- package/renderer/webgl/TileLayer.d.ts.map +1 -1
- package/renderer/webgl/TileLayer.js +103 -644
- package/renderer/webgl/TileLayerBase.d.ts +194 -0
- package/renderer/webgl/TileLayerBase.d.ts.map +1 -0
- package/renderer/webgl/TileLayerBase.js +750 -0
- package/renderer/webgl/VectorLayer.d.ts +59 -60
- package/renderer/webgl/VectorLayer.d.ts.map +1 -1
- package/renderer/webgl/VectorLayer.js +118 -156
- package/renderer/webgl/VectorTileLayer.d.ts +87 -0
- package/renderer/webgl/VectorTileLayer.d.ts.map +1 -0
- package/renderer/webgl/VectorTileLayer.js +201 -0
- package/reproj/DataTile.d.ts +1 -1
- package/reproj/DataTile.d.ts.map +1 -1
- package/reproj/Image.d.ts +1 -1
- package/reproj/Image.d.ts.map +1 -1
- package/reproj/Image.js +22 -8
- package/reproj/Tile.d.ts +1 -1
- package/reproj/Tile.d.ts.map +1 -1
- package/reproj/Triangulation.js +2 -2
- package/source/BingMaps.d.ts +1 -1
- package/source/BingMaps.d.ts.map +1 -1
- package/source/CartoDB.d.ts +1 -1
- package/source/CartoDB.d.ts.map +1 -1
- package/source/Cluster.d.ts +3 -3
- package/source/Cluster.d.ts.map +1 -1
- package/source/DataTile.d.ts +4 -4
- package/source/DataTile.d.ts.map +1 -1
- package/source/DataTile.js +1 -1
- package/source/GeoTIFF.d.ts +1 -1
- package/source/GeoTIFF.d.ts.map +1 -1
- package/source/IIIF.d.ts +1 -1
- package/source/IIIF.d.ts.map +1 -1
- package/source/Image.d.ts +2 -2
- package/source/Image.d.ts.map +1 -1
- package/source/ImageArcGISRest.d.ts +1 -1
- package/source/ImageArcGISRest.d.ts.map +1 -1
- package/source/ImageCanvas.d.ts +1 -1
- package/source/ImageCanvas.d.ts.map +1 -1
- package/source/ImageMapGuide.d.ts +1 -1
- package/source/ImageMapGuide.d.ts.map +1 -1
- package/source/ImageStatic.d.ts +1 -1
- package/source/ImageStatic.d.ts.map +1 -1
- package/source/ImageWMS.d.ts +1 -1
- package/source/ImageWMS.d.ts.map +1 -1
- package/source/OGCMapTile.d.ts +1 -1
- package/source/OGCMapTile.d.ts.map +1 -1
- package/source/OGCVectorTile.d.ts +1 -1
- package/source/OGCVectorTile.d.ts.map +1 -1
- package/source/OSM.d.ts +1 -1
- package/source/OSM.d.ts.map +1 -1
- package/source/Raster.d.ts +3 -3
- package/source/Raster.d.ts.map +1 -1
- package/source/Source.d.ts +5 -5
- package/source/Source.d.ts.map +1 -1
- package/source/Source.js +2 -2
- package/source/Stamen.d.ts +1 -1
- package/source/Stamen.d.ts.map +1 -1
- package/source/Tile.d.ts +2 -2
- package/source/Tile.d.ts.map +1 -1
- package/source/TileArcGISRest.d.ts +1 -1
- package/source/TileArcGISRest.d.ts.map +1 -1
- package/source/TileDebug.d.ts +1 -1
- package/source/TileDebug.d.ts.map +1 -1
- package/source/TileImage.d.ts +4 -4
- package/source/TileImage.d.ts.map +1 -1
- package/source/TileJSON.d.ts +1 -1
- package/source/TileJSON.d.ts.map +1 -1
- package/source/TileWMS.d.ts +1 -1
- package/source/TileWMS.d.ts.map +1 -1
- package/source/UTFGrid.d.ts +2 -2
- package/source/UTFGrid.d.ts.map +1 -1
- package/source/UrlTile.d.ts +1 -1
- package/source/UrlTile.d.ts.map +1 -1
- package/source/Vector.d.ts +3 -3
- package/source/Vector.d.ts.map +1 -1
- package/source/Vector.js +6 -3
- package/source/VectorTile.d.ts +4 -4
- package/source/VectorTile.d.ts.map +1 -1
- package/source/WMTS.d.ts +1 -1
- package/source/WMTS.d.ts.map +1 -1
- package/source/XYZ.d.ts +1 -1
- package/source/XYZ.d.ts.map +1 -1
- package/source/Zoomify.d.ts +2 -2
- package/source/Zoomify.d.ts.map +1 -1
- package/structs/LRUCache.d.ts.map +1 -1
- package/structs/LRUCache.js +2 -1
- package/style/Circle.d.ts +1 -1
- package/style/Circle.d.ts.map +1 -1
- package/style/Icon.d.ts +4 -78
- package/style/Icon.d.ts.map +1 -1
- package/style/Icon.js +89 -86
- package/style/IconImage.d.ts +1 -1
- package/style/IconImage.d.ts.map +1 -1
- package/style/RegularShape.d.ts +1 -1
- package/style/RegularShape.d.ts.map +1 -1
- package/style/RegularShape.js +1 -1
- package/style/Style.d.ts +2 -2
- package/style/Style.d.ts.map +1 -1
- package/style/Text.d.ts +5 -5
- package/style/Text.d.ts.map +1 -1
- package/style/Text.js +2 -2
- package/style/expressions.d.ts +42 -17
- package/style/expressions.d.ts.map +1 -1
- package/style/expressions.js +258 -118
- package/style/flat.d.ts +14 -0
- package/style/flat.d.ts.map +1 -1
- package/style/flat.js +6 -0
- package/style/literal.d.ts +204 -3
- package/style/literal.d.ts.map +1 -1
- package/style/literal.js +106 -3
- package/tilegrid/TileGrid.d.ts +1 -9
- package/tilegrid/TileGrid.d.ts.map +1 -1
- package/tilegrid/TileGrid.js +0 -18
- package/tilegrid/WMTS.d.ts +1 -1
- package/tilegrid/WMTS.d.ts.map +1 -1
- package/tilegrid.d.ts +1 -1
- package/tilegrid.d.ts.map +1 -1
- package/util.d.ts.map +1 -1
- package/util.js +1 -1
- package/webgl/BaseTileRepresentation.d.ts +72 -0
- package/webgl/BaseTileRepresentation.d.ts.map +1 -0
- package/webgl/BaseTileRepresentation.js +108 -0
- package/webgl/Buffer.d.ts +9 -6
- package/webgl/Buffer.d.ts.map +1 -1
- package/webgl/Buffer.js +6 -0
- package/webgl/Helper.d.ts +19 -12
- package/webgl/Helper.d.ts.map +1 -1
- package/webgl/Helper.js +79 -71
- package/webgl/ShaderBuilder.d.ts +75 -65
- package/webgl/ShaderBuilder.d.ts.map +1 -1
- package/webgl/ShaderBuilder.js +382 -241
- package/webgl/TileGeometry.d.ts +29 -0
- package/webgl/TileGeometry.d.ts.map +1 -0
- package/webgl/TileGeometry.js +73 -0
- package/webgl/TileTexture.d.ts +8 -51
- package/webgl/TileTexture.d.ts.map +1 -1
- package/webgl/TileTexture.js +11 -62
- package/webgl/styleparser.d.ts +61 -0
- package/webgl/styleparser.d.ts.map +1 -0
- package/webgl/styleparser.js +406 -0
- package/worker/webgl.js +1 -1
- package/events/KeyCode.d.ts +0 -8
- package/events/KeyCode.d.ts.map +0 -1
- package/events/KeyCode.js +0 -14
- package/render/webgl/BatchRenderer.d.ts +0 -92
- package/render/webgl/BatchRenderer.d.ts.map +0 -1
- package/render/webgl/BatchRenderer.js +0 -200
- package/render/webgl/LineStringBatchRenderer.d.ts +0 -27
- package/render/webgl/LineStringBatchRenderer.d.ts.map +0 -1
- package/render/webgl/LineStringBatchRenderer.js +0 -114
- package/render/webgl/PointBatchRenderer.d.ts +0 -26
- package/render/webgl/PointBatchRenderer.d.ts.map +0 -1
- package/render/webgl/PointBatchRenderer.js +0 -95
- package/render/webgl/PolygonBatchRenderer.d.ts +0 -25
- package/render/webgl/PolygonBatchRenderer.d.ts.map +0 -1
- package/render/webgl/PolygonBatchRenderer.js +0 -115
- package/renderer/webgl/shaders.d.ts +0 -43
- package/renderer/webgl/shaders.d.ts.map +0 -1
- package/renderer/webgl/shaders.js +0 -198
package/style/flat.d.ts
CHANGED
|
@@ -112,6 +112,10 @@
|
|
|
112
112
|
* `top-left` or `top-right`.
|
|
113
113
|
* @property {number} [icon-opacity=1] Opacity of the icon.
|
|
114
114
|
* @property {number|import("../size.js").Size} [icon-scale=1] Scale.
|
|
115
|
+
* @property {number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
|
|
116
|
+
* with `scale`.
|
|
117
|
+
* @property {number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
|
|
118
|
+
* with `scale`.
|
|
115
119
|
* @property {number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
|
|
116
120
|
* @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
|
|
117
121
|
* @property {import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
|
|
@@ -440,6 +444,16 @@ export type FlatIcon = {
|
|
|
440
444
|
* Scale.
|
|
441
445
|
*/
|
|
442
446
|
"icon-scale"?: number | import("../size.js").Size | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* Width of the icon. If not specified, the actual image width will be used. Cannot be combined
|
|
449
|
+
* with `scale`.
|
|
450
|
+
*/
|
|
451
|
+
"icon-width"?: number | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* Height of the icon. If not specified, the actual image height will be used. Cannot be combined
|
|
454
|
+
* with `scale`.
|
|
455
|
+
*/
|
|
456
|
+
"icon-height"?: number | undefined;
|
|
443
457
|
/**
|
|
444
458
|
* Rotation in radians (positive rotation clockwise).
|
|
445
459
|
*/
|
package/style/flat.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flat.d.ts","sourceRoot":"","sources":["flat.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH
|
|
1
|
+
{"version":3,"file":"flat.d.ts","sourceRoot":"","sources":["flat.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;GAGG;AACH,mCAHW,SAAS,GACR,OAAO,YAAY,EAAE,OAAO,CAWvC;;;;;wBA3LY,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU;;;;4BAMpE,SAAS,GAAC,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAoHzB,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0BvC,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAuBvC,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS"}
|
package/style/flat.js
CHANGED
|
@@ -129,6 +129,10 @@ import Text from './Text.js';
|
|
|
129
129
|
* `top-left` or `top-right`.
|
|
130
130
|
* @property {number} [icon-opacity=1] Opacity of the icon.
|
|
131
131
|
* @property {number|import("../size.js").Size} [icon-scale=1] Scale.
|
|
132
|
+
* @property {number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
|
|
133
|
+
* with `scale`.
|
|
134
|
+
* @property {number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
|
|
135
|
+
* with `scale`.
|
|
132
136
|
* @property {number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
|
|
133
137
|
* @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
|
|
134
138
|
* @property {import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
|
|
@@ -294,6 +298,8 @@ function getImage(flatStyle) {
|
|
|
294
298
|
displacement: flatStyle['icon-displacement'],
|
|
295
299
|
opacity: flatStyle['icon-opacity'],
|
|
296
300
|
scale: flatStyle['icon-scale'],
|
|
301
|
+
width: flatStyle['icon-width'],
|
|
302
|
+
height: flatStyle['icon-height'],
|
|
297
303
|
rotation: flatStyle['icon-rotation'],
|
|
298
304
|
rotateWithView: flatStyle['icon-rotate-with-view'],
|
|
299
305
|
size: flatStyle['icon-size'],
|
package/style/literal.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export namespace SymbolType {
|
|
|
6
6
|
const IMAGE: string;
|
|
7
7
|
}
|
|
8
8
|
export type ExpressionValue = import("./expressions.js").ExpressionValue;
|
|
9
|
-
export type
|
|
9
|
+
export type ColorExpression = import("../color.js").Color | string | Array<ExpressionValue>;
|
|
10
|
+
export type BaseProps = {
|
|
10
11
|
/**
|
|
11
12
|
* Filter expression. If it resolves to a number strictly greater than 0, the
|
|
12
13
|
* point will be displayed. If undefined, all points will show.
|
|
@@ -17,7 +18,7 @@ export type LiteralStyle = {
|
|
|
17
18
|
* Note: **this object is meant to be mutated**: changes to the values will immediately be visible on the rendered features
|
|
18
19
|
*/
|
|
19
20
|
variables?: {
|
|
20
|
-
[x: string]: number;
|
|
21
|
+
[x: string]: string | number | boolean | number[];
|
|
21
22
|
} | undefined;
|
|
22
23
|
/**
|
|
23
24
|
* Symbol representation.
|
|
@@ -44,7 +45,7 @@ export type LiteralSymbolStyle = {
|
|
|
44
45
|
/**
|
|
45
46
|
* Color used for the representation (either fill, line or symbol).
|
|
46
47
|
*/
|
|
47
|
-
color?:
|
|
48
|
+
color?: ColorExpression | undefined;
|
|
48
49
|
/**
|
|
49
50
|
* Opacity.
|
|
50
51
|
*/
|
|
@@ -66,4 +67,204 @@ export type LiteralSymbolStyle = {
|
|
|
66
67
|
*/
|
|
67
68
|
rotateWithView?: boolean | undefined;
|
|
68
69
|
};
|
|
70
|
+
export type FillProps = {
|
|
71
|
+
/**
|
|
72
|
+
* The fill color.
|
|
73
|
+
*/
|
|
74
|
+
"fill-color"?: ColorExpression | undefined;
|
|
75
|
+
};
|
|
76
|
+
export type StrokeProps = {
|
|
77
|
+
/**
|
|
78
|
+
* The stroke color.
|
|
79
|
+
*/
|
|
80
|
+
"stroke-color"?: ColorExpression | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Stroke pixel width.
|
|
83
|
+
*/
|
|
84
|
+
"stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
|
|
85
|
+
};
|
|
86
|
+
export type IconProps = {
|
|
87
|
+
/**
|
|
88
|
+
* Image source URI.
|
|
89
|
+
*/
|
|
90
|
+
"icon-src"?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Image object for the icon. If the `icon-src` option is not provided then the
|
|
93
|
+
* provided image must already be loaded. And in that case, it is required
|
|
94
|
+
* to provide the size of the image, with the `icon-img-size` option.
|
|
95
|
+
*/
|
|
96
|
+
"icon-img"?: HTMLCanvasElement | HTMLImageElement | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Image size in pixels. Only required if `icon-img` is set and `icon-src` is not.
|
|
99
|
+
* The provided size needs to match the actual size of the image.
|
|
100
|
+
*/
|
|
101
|
+
"icon-img-size"?: import("../size.js").Size | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Anchor. Default value is the icon center.
|
|
104
|
+
*/
|
|
105
|
+
"icon-anchor"?: number[] | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
108
|
+
* `top-left` or `top-right`.
|
|
109
|
+
*/
|
|
110
|
+
"icon-anchor-origin"?: import("./Icon.js").IconOrigin | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Units in which the anchor x value is
|
|
113
|
+
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
114
|
+
* the x value in pixels.
|
|
115
|
+
*/
|
|
116
|
+
"icon-anchor-x-units"?: import("./Icon.js").IconAnchorUnits | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Units in which the anchor y value is
|
|
119
|
+
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
120
|
+
* the y value in pixels.
|
|
121
|
+
*/
|
|
122
|
+
"icon-anchor-y-units"?: import("./Icon.js").IconAnchorUnits | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Color to tint the icon. If not specified,
|
|
125
|
+
* the icon will be left as is.
|
|
126
|
+
*/
|
|
127
|
+
"icon-color"?: ColorExpression | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* The `crossOrigin` attribute for loaded images. Note that you must provide a
|
|
130
|
+
* `icon-cross-origin` value if you want to access pixel data with the Canvas renderer.
|
|
131
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
132
|
+
*/
|
|
133
|
+
"icon-cross-origin"?: string | null | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Offset, which, together with the size and the offset origin, define the
|
|
136
|
+
* sub-rectangle to use from the original icon image.
|
|
137
|
+
*/
|
|
138
|
+
"icon-offset"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Displacement of the icon.
|
|
141
|
+
*/
|
|
142
|
+
"icon-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Origin of the offset: `bottom-left`, `bottom-right`,
|
|
145
|
+
* `top-left` or `top-right`.
|
|
146
|
+
*/
|
|
147
|
+
"icon-offset-origin"?: import("./Icon.js").IconOrigin | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Opacity of the icon.
|
|
150
|
+
*/
|
|
151
|
+
"icon-opacity"?: number | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* Scale.
|
|
154
|
+
*/
|
|
155
|
+
"icon-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
|
|
156
|
+
/**
|
|
157
|
+
* Width of the icon. If not specified, the actual image width will be used. Cannot be combined
|
|
158
|
+
* with `scale`.
|
|
159
|
+
*/
|
|
160
|
+
"icon-width"?: import("./expressions.js").ExpressionValue | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Height of the icon. If not specified, the actual image height will be used. Cannot be combined
|
|
163
|
+
* with `scale`.
|
|
164
|
+
*/
|
|
165
|
+
"icon-height"?: import("./expressions.js").ExpressionValue | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Rotation in radians (positive rotation clockwise).
|
|
168
|
+
*/
|
|
169
|
+
"icon-rotation"?: import("./expressions.js").ExpressionValue | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* Whether to rotate the icon with the view.
|
|
172
|
+
*/
|
|
173
|
+
"icon-rotate-with-view"?: boolean | undefined;
|
|
174
|
+
/**
|
|
175
|
+
* Icon size in pixel. Can be used together with `icon-offset` to define the
|
|
176
|
+
* sub-rectangle to use from the origin (sprite) icon image.
|
|
177
|
+
*/
|
|
178
|
+
"icon-size"?: import("../size.js").Size | import("./expressions.js").ExpressionValue[] | undefined;
|
|
179
|
+
};
|
|
180
|
+
export type ShapeProps = {
|
|
181
|
+
/**
|
|
182
|
+
* Number of points for stars and regular polygons. In case of a polygon, the number of points
|
|
183
|
+
* is the number of sides.
|
|
184
|
+
*/
|
|
185
|
+
"shape-points"?: number | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* The fill color.
|
|
188
|
+
*/
|
|
189
|
+
"shape-fill-color"?: ColorExpression | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* The stroke color.
|
|
192
|
+
*/
|
|
193
|
+
"shape-stroke-color"?: ColorExpression | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* Stroke pixel width.
|
|
196
|
+
*/
|
|
197
|
+
"shape-stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
|
|
198
|
+
/**
|
|
199
|
+
* Radius of a regular polygon.
|
|
200
|
+
*/
|
|
201
|
+
"shape-radius"?: import("./expressions.js").ExpressionValue | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* First radius of a star. Ignored if radius is set.
|
|
204
|
+
*/
|
|
205
|
+
"shape-radius1"?: import("./expressions.js").ExpressionValue | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* Second radius of a star.
|
|
208
|
+
*/
|
|
209
|
+
"shape-radius2"?: import("./expressions.js").ExpressionValue | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Shape's angle in radians. A value of 0 will have one of the shape's point facing up.
|
|
212
|
+
*/
|
|
213
|
+
"shape-angle"?: import("./expressions.js").ExpressionValue | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Displacement of the shape
|
|
216
|
+
*/
|
|
217
|
+
"shape-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
|
|
218
|
+
/**
|
|
219
|
+
* Rotation in radians (positive rotation clockwise).
|
|
220
|
+
*/
|
|
221
|
+
"shape-rotation"?: import("./expressions.js").ExpressionValue | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Whether to rotate the shape with the view.
|
|
224
|
+
*/
|
|
225
|
+
"shape-rotate-with-view"?: boolean | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Scale. Unless two dimensional scaling is required a better
|
|
228
|
+
* result may be obtained with appropriate settings for `shape-radius`, `shape-radius1` and `shape-radius2`.
|
|
229
|
+
*/
|
|
230
|
+
"shape-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
|
|
231
|
+
};
|
|
232
|
+
export type CircleProps = {
|
|
233
|
+
/**
|
|
234
|
+
* Circle radius.
|
|
235
|
+
*/
|
|
236
|
+
"circle-radius"?: import("./expressions.js").ExpressionValue | undefined;
|
|
237
|
+
/**
|
|
238
|
+
* The fill color.
|
|
239
|
+
*/
|
|
240
|
+
"circle-fill-color"?: ColorExpression | undefined;
|
|
241
|
+
/**
|
|
242
|
+
* The stroke color.
|
|
243
|
+
*/
|
|
244
|
+
"circle-stroke-color"?: ColorExpression | undefined;
|
|
245
|
+
/**
|
|
246
|
+
* Stroke pixel width.
|
|
247
|
+
*/
|
|
248
|
+
"circle-stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* displacement
|
|
251
|
+
*/
|
|
252
|
+
"circle-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
|
|
253
|
+
/**
|
|
254
|
+
* Scale. A two dimensional scale will produce an ellipse.
|
|
255
|
+
* Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for `circle-radius`.
|
|
256
|
+
*/
|
|
257
|
+
"circle-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* Rotation in radians
|
|
260
|
+
* (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale).
|
|
261
|
+
*/
|
|
262
|
+
"circle-rotation"?: import("./expressions.js").ExpressionValue | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* Whether to rotate the shape with the view
|
|
265
|
+
* (meaningful only when used in conjunction with a two dimensional scale).
|
|
266
|
+
*/
|
|
267
|
+
"circle-rotate-with-view"?: boolean | undefined;
|
|
268
|
+
};
|
|
269
|
+
export type LiteralStyle = BaseProps & IconProps & StrokeProps & FillProps & CircleProps & ShapeProps;
|
|
69
270
|
//# sourceMappingURL=literal.d.ts.map
|
package/style/literal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["literal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["literal.js"],"names":[],"mappings":"yBAuBU,MAAM;;;;;;;8BAhBH,OAAO,kBAAkB,EAAE,eAAe;8BAG1C,OAAO,aAAa,EAAE,KAAK,GAAC,MAAM,GAAC,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;UAwBxD,eAAe,GAAC,MAAM,eAAe,CAAC;;;;gBACtC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4GX,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU"}
|
package/style/literal.js
CHANGED
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @typedef {import("./expressions.js").ExpressionValue} ExpressionValue
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* @typedef {import("../color.js").Color|string|Array<ExpressionValue>} ColorExpression
|
|
12
|
+
*/
|
|
10
13
|
|
|
11
14
|
/**
|
|
12
|
-
* @typedef {Object}
|
|
15
|
+
* @typedef {Object} BaseProps
|
|
13
16
|
* @property {ExpressionValue} [filter] Filter expression. If it resolves to a number strictly greater than 0, the
|
|
14
17
|
* point will be displayed. If undefined, all points will show.
|
|
15
|
-
* @property {Object<string, number>} [variables] Style variables; each variable must hold a number.
|
|
18
|
+
* @property {Object<string, number | Array<number> | string | boolean>} [variables] Style variables; each variable must hold a number.
|
|
16
19
|
* Note: **this object is meant to be mutated**: changes to the values will immediately be visible on the rendered features
|
|
17
20
|
* @property {LiteralSymbolStyle} [symbol] Symbol representation.
|
|
18
21
|
*/
|
|
@@ -33,10 +36,110 @@ export const SymbolType = {
|
|
|
33
36
|
* @property {SymbolType} symbolType Symbol type to use, either a regular shape or an image.
|
|
34
37
|
* @property {string} [src] Path to the image to be used for the symbol. Only required with `symbolType: 'image'`.
|
|
35
38
|
* @property {string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loading `src`.
|
|
36
|
-
* @property {
|
|
39
|
+
* @property {ColorExpression} [color] Color used for the representation (either fill, line or symbol).
|
|
37
40
|
* @property {ExpressionValue} [opacity=1] Opacity.
|
|
38
41
|
* @property {ExpressionValue} [rotation=0] Symbol rotation in radians.
|
|
39
42
|
* @property {Array<ExpressionValue, ExpressionValue>} [offset] Offset on X and Y axis for symbols. If not specified, the symbol will be centered.
|
|
40
43
|
* @property {Array<ExpressionValue, ExpressionValue, ExpressionValue, ExpressionValue>} [textureCoord] Texture coordinates. If not specified, the whole texture will be used (range for 0 to 1 on both axes).
|
|
41
44
|
* @property {boolean} [rotateWithView=false] Specify whether the symbol must rotate with the view or stay upwards.
|
|
42
45
|
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @typedef {Object} FillProps
|
|
49
|
+
* @property {ColorExpression} [fill-color] The fill color.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @typedef {Object} StrokeProps
|
|
54
|
+
* @property {ColorExpression} [stroke-color] The stroke color.
|
|
55
|
+
* @property {number|ExpressionValue} [stroke-width] Stroke pixel width.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @typedef {Object} IconProps
|
|
60
|
+
* @property {string} [icon-src] Image source URI.
|
|
61
|
+
* @property {HTMLImageElement|HTMLCanvasElement} [icon-img] Image object for the icon. If the `icon-src` option is not provided then the
|
|
62
|
+
* provided image must already be loaded. And in that case, it is required
|
|
63
|
+
* to provide the size of the image, with the `icon-img-size` option.
|
|
64
|
+
* @property {import("../size.js").Size} [icon-img-size] Image size in pixels. Only required if `icon-img` is set and `icon-src` is not.
|
|
65
|
+
* The provided size needs to match the actual size of the image.
|
|
66
|
+
* @property {Array<number>} [icon-anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
|
|
67
|
+
* @property {import("./Icon.js").IconOrigin} [icon-anchor-origin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
|
|
68
|
+
* `top-left` or `top-right`.
|
|
69
|
+
* @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-x-units='fraction'] Units in which the anchor x value is
|
|
70
|
+
* specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
|
|
71
|
+
* the x value in pixels.
|
|
72
|
+
* @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-y-units='fraction'] Units in which the anchor y value is
|
|
73
|
+
* specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
|
|
74
|
+
* the y value in pixels.
|
|
75
|
+
* @property {ColorExpression} [icon-color] Color to tint the icon. If not specified,
|
|
76
|
+
* the icon will be left as is.
|
|
77
|
+
* @property {null|string} [icon-cross-origin] The `crossOrigin` attribute for loaded images. Note that you must provide a
|
|
78
|
+
* `icon-cross-origin` value if you want to access pixel data with the Canvas renderer.
|
|
79
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
|
|
80
|
+
* @property {Array<number>|Array<ExpressionValue>} [icon-offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
|
|
81
|
+
* sub-rectangle to use from the original icon image.
|
|
82
|
+
* @property {Array<number>|Array<ExpressionValue>} [icon-displacement=[0,0]] Displacement of the icon.
|
|
83
|
+
* @property {import("./Icon.js").IconOrigin} [icon-offset-origin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
|
|
84
|
+
* `top-left` or `top-right`.
|
|
85
|
+
* @property {number} [icon-opacity=1] Opacity of the icon.
|
|
86
|
+
* @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [icon-scale=1] Scale.
|
|
87
|
+
* @property {ExpressionValue|number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
|
|
88
|
+
* with `scale`.
|
|
89
|
+
* @property {ExpressionValue|number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
|
|
90
|
+
* with `scale`.
|
|
91
|
+
* @property {ExpressionValue|number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
|
|
92
|
+
* @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
|
|
93
|
+
* @property {Array<ExpressionValue>|import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
|
|
94
|
+
* sub-rectangle to use from the origin (sprite) icon image.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @typedef {Object} ShapeProps
|
|
99
|
+
* @property {number} [shape-points] Number of points for stars and regular polygons. In case of a polygon, the number of points
|
|
100
|
+
* is the number of sides.
|
|
101
|
+
* @property {ColorExpression} [shape-fill-color] The fill color.
|
|
102
|
+
* @property {ColorExpression} [shape-stroke-color] The stroke color.
|
|
103
|
+
* @property {ExpressionValue|number} [shape-stroke-width] Stroke pixel width.
|
|
104
|
+
* @property {ExpressionValue|number} [shape-radius] Radius of a regular polygon.
|
|
105
|
+
* @property {ExpressionValue|number} [shape-radius1] First radius of a star. Ignored if radius is set.
|
|
106
|
+
* @property {ExpressionValue|number} [shape-radius2] Second radius of a star.
|
|
107
|
+
* @property {ExpressionValue|number} [shape-angle=0] Shape's angle in radians. A value of 0 will have one of the shape's point facing up.
|
|
108
|
+
* @property {Array<ExpressionValue>|Array<number>} [shape-displacement=[0,0]] Displacement of the shape
|
|
109
|
+
* @property {ExpressionValue|number} [shape-rotation=0] Rotation in radians (positive rotation clockwise).
|
|
110
|
+
* @property {boolean} [shape-rotate-with-view=false] Whether to rotate the shape with the view.
|
|
111
|
+
* @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [shape-scale=1] Scale. Unless two dimensional scaling is required a better
|
|
112
|
+
* result may be obtained with appropriate settings for `shape-radius`, `shape-radius1` and `shape-radius2`.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @typedef {Object} CircleProps
|
|
117
|
+
* @property {ExpressionValue|number} [circle-radius] Circle radius.
|
|
118
|
+
* @property {ColorExpression} [circle-fill-color] The fill color.
|
|
119
|
+
* @property {ColorExpression} [circle-stroke-color] The stroke color.
|
|
120
|
+
* @property {ExpressionValue|number} [circle-stroke-width] Stroke pixel width.
|
|
121
|
+
* @property {Array<ExpressionValue>|Array<number>} [circle-displacement=[0,0]] displacement
|
|
122
|
+
* @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [circle-scale=1] Scale. A two dimensional scale will produce an ellipse.
|
|
123
|
+
* Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for `circle-radius`.
|
|
124
|
+
* @property {ExpressionValue|number} [circle-rotation=0] Rotation in radians
|
|
125
|
+
* (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale).
|
|
126
|
+
* @property {boolean} [circle-rotate-with-view=false] Whether to rotate the shape with the view
|
|
127
|
+
* (meaningful only when used in conjunction with a two dimensional scale).
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
// FIXME Present in flat style but not implemented in literal webgl style:
|
|
131
|
+
// - color like (fill patterns etc.)
|
|
132
|
+
// - stroke line cap/join/miter limit
|
|
133
|
+
// - stroke dash pattern/offset
|
|
134
|
+
// - icon declutter mode
|
|
135
|
+
// - circle line cap/join/miter limit
|
|
136
|
+
// - circle dash pattern/offset
|
|
137
|
+
// - circle declutter mode
|
|
138
|
+
// - shape line cap/join/miter limit
|
|
139
|
+
// - shape dash pattern/offset
|
|
140
|
+
// - shape declutter mode
|
|
141
|
+
// - text style
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @typedef {BaseProps & IconProps & StrokeProps & FillProps & CircleProps & ShapeProps} LiteralStyle
|
|
145
|
+
*/
|
package/tilegrid/TileGrid.d.ts
CHANGED
|
@@ -222,14 +222,6 @@ declare class TileGrid {
|
|
|
222
222
|
* @return {import("../TileRange.js").default|null} Tile range.
|
|
223
223
|
*/
|
|
224
224
|
getTileRangeForTileCoordAndZ(tileCoord: import("../tilecoord.js").TileCoord, z: number, tempTileRange?: TileRange | undefined): import("../TileRange.js").default | null;
|
|
225
|
-
/**
|
|
226
|
-
* Get the extent for a tile range.
|
|
227
|
-
* @param {number} z Integer zoom level.
|
|
228
|
-
* @param {import("../TileRange.js").default} tileRange Tile range.
|
|
229
|
-
* @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
|
|
230
|
-
* @return {import("../extent.js").Extent} Extent.
|
|
231
|
-
*/
|
|
232
|
-
getTileRangeExtent(z: number, tileRange: import("../TileRange.js").default, tempExtent?: import("../extent.js").Extent | undefined): import("../extent.js").Extent;
|
|
233
225
|
/**
|
|
234
226
|
* Get a tile range for the given extent and integer zoom level.
|
|
235
227
|
* @param {import("../extent.js").Extent} extent Extent.
|
|
@@ -353,5 +345,5 @@ declare class TileGrid {
|
|
|
353
345
|
*/
|
|
354
346
|
private calculateTileRanges_;
|
|
355
347
|
}
|
|
356
|
-
import TileRange from
|
|
348
|
+
import TileRange from '../TileRange.js';
|
|
357
349
|
//# sourceMappingURL=TileGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TileGrid.d.ts","sourceRoot":"","sources":["TileGrid.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyCe,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAd5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqJjB;IAlJC;;;OAGG;IACH,mBAFU,MAAM,CAEkD;IAElE;;;OAGG;IACH,qBAAuC;IA2BvC;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,mBAFU,MAAM,CAE2B;IAE3C;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,iBAAoB;IAiBpB;;;OAGG;IACH,mBAAsB;IAMtB;;;OAGG;IACH,kBAKU;IAOV;;;OAGG;IACH,gBAAmD;IAEnD;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,iBAAsB;IAEtB;;;OAGG;IACH,mBAA8B;IAwBhC;;;;;;;OAOG;IACH,yBALW,OAAO,cAAc,EAAE,MAAM,QAC7B,MAAM,mBACG,OAAO,iBAAiB,EAAE,SAAS,KAAG,IAAI,QAU7D;IAED;;;;;;OAMG;IACH,2CANW,OAAO,iBAAiB,EAAE,SAAS,mBAC1B,MAAM,QAAE,OAAO,iBAAiB,EAAE,OAAO,KAAG,OAAO,kGAG3D,OAAO,CAmClB;IAED;;;;OAIG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;;OAKG;IACH,aAJW,MAAM,GACL,OAAO,kBAAkB,EAAE,UAAU,CAQhD;IAED;;;;;OAKG;IACH,iBAJW,MAAM,GACL,MAAM,CAKjB;IAED;;;;OAIG;IACH,kBAHY,MAAM,MAAM,CAAC,CAKxB;IAED;;;;;OAKG;IACH,sCALW,OAAO,iBAAiB,EAAE,SAAS,kGAGlC,OAAO,iBAAiB,EAAE,OAAO,GAAC,IAAI,CA0BjD;IAED;;;;;OAKG;IACH,wCALW,OAAO,iBAAiB,EAAE,SAAS,KACnC,MAAM,0CAEL,OAAO,iBAAiB,EAAE,OAAO,GAAC,IAAI,CAoCjD;IAED;;;;;;OAMG;IACH,
|
|
1
|
+
{"version":3,"file":"TileGrid.d.ts","sourceRoot":"","sources":["TileGrid.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyCe,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAd5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqJjB;IAlJC;;;OAGG;IACH,mBAFU,MAAM,CAEkD;IAElE;;;OAGG;IACH,qBAAuC;IA2BvC;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,mBAFU,MAAM,CAE2B;IAE3C;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,iBAAoB;IAiBpB;;;OAGG;IACH,mBAAsB;IAMtB;;;OAGG;IACH,kBAKU;IAOV;;;OAGG;IACH,gBAAmD;IAEnD;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,iBAAsB;IAEtB;;;OAGG;IACH,mBAA8B;IAwBhC;;;;;;;OAOG;IACH,yBALW,OAAO,cAAc,EAAE,MAAM,QAC7B,MAAM,mBACG,OAAO,iBAAiB,EAAE,SAAS,KAAG,IAAI,QAU7D;IAED;;;;;;OAMG;IACH,2CANW,OAAO,iBAAiB,EAAE,SAAS,mBAC1B,MAAM,QAAE,OAAO,iBAAiB,EAAE,OAAO,KAAG,OAAO,kGAG3D,OAAO,CAmClB;IAED;;;;OAIG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;;OAKG;IACH,aAJW,MAAM,GACL,OAAO,kBAAkB,EAAE,UAAU,CAQhD;IAED;;;;;OAKG;IACH,iBAJW,MAAM,GACL,MAAM,CAKjB;IAED;;;;OAIG;IACH,kBAHY,MAAM,MAAM,CAAC,CAKxB;IAED;;;;;OAKG;IACH,sCALW,OAAO,iBAAiB,EAAE,SAAS,kGAGlC,OAAO,iBAAiB,EAAE,OAAO,GAAC,IAAI,CA0BjD;IAED;;;;;OAKG;IACH,wCALW,OAAO,iBAAiB,EAAE,SAAS,KACnC,MAAM,0CAEL,OAAO,iBAAiB,EAAE,OAAO,GAAC,IAAI,CAoCjD;IAED;;;;;;OAMG;IACH,kCALW,OAAO,cAAc,EAAE,MAAM,KAC7B,MAAM,0CAEL,OAAO,iBAAiB,EAAE,OAAO,CAU5C;IAED;;;OAGG;IACH,8BAHW,OAAO,iBAAiB,EAAE,SAAS,GAClC,OAAO,kBAAkB,EAAE,UAAU,CAUhD;IAED;;;;;;;OAOG;IACH,8BALW,OAAO,iBAAiB,EAAE,SAAS,2DAElC,OAAO,cAAc,EAAE,MAAM,CAYxC;IAED;;;;;;;;;;OAUG;IACH,8CANW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,oEAEL,OAAO,iBAAiB,EAAE,SAAS,CAW9C;IAED;;;;;;;;;;;;OAYG;IACH,wCAwBC;IAED;;;;;;;;;;;;;;OAcG;IACH,+BAiBC;IAED;;;;;;;OAOG;IACH,qCANW,OAAO,kBAAkB,EAAE,UAAU,KACrC,MAAM,oEAEL,OAAO,iBAAiB,EAAE,SAAS,CAW9C;IAED;;;OAGG;IACH,kCAHW,OAAO,iBAAiB,EAAE,SAAS,GAClC,MAAM,CAIjB;IAED;;;;;;;OAOG;IACH,eAJW,MAAM,GACL,MAAM,GAAC,OAAO,YAAY,EAAE,IAAI,CAQ3C;IAED;;;OAGG;IACH,oBAHW,MAAM,GACL,OAAO,iBAAiB,EAAE,OAAO,CAS5C;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,8BAhBW,MAAM,wFAaL,MAAM,CAUjB;IAED;;;;;OAKG;IACH,uCAJW,OAAO,iBAAiB,EAAE,SAAS,YACnC,MAAM,MAAM,CAAC,GACZ,OAAO,CAUlB;IAED;;;OAGG;IACH,6BAOC;CACF;sBAhpBM,iBAAiB"}
|
package/tilegrid/TileGrid.js
CHANGED
|
@@ -407,24 +407,6 @@ class TileGrid {
|
|
|
407
407
|
return this.getTileRangeForExtentAndZ(tileCoordExtent, z, tempTileRange);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
/**
|
|
411
|
-
* Get the extent for a tile range.
|
|
412
|
-
* @param {number} z Integer zoom level.
|
|
413
|
-
* @param {import("../TileRange.js").default} tileRange Tile range.
|
|
414
|
-
* @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
|
|
415
|
-
* @return {import("../extent.js").Extent} Extent.
|
|
416
|
-
*/
|
|
417
|
-
getTileRangeExtent(z, tileRange, tempExtent) {
|
|
418
|
-
const origin = this.getOrigin(z);
|
|
419
|
-
const resolution = this.getResolution(z);
|
|
420
|
-
const tileSize = toSize(this.getTileSize(z), this.tmpSize_);
|
|
421
|
-
const minX = origin[0] + tileRange.minX * tileSize[0] * resolution;
|
|
422
|
-
const maxX = origin[0] + (tileRange.maxX + 1) * tileSize[0] * resolution;
|
|
423
|
-
const minY = origin[1] + tileRange.minY * tileSize[1] * resolution;
|
|
424
|
-
const maxY = origin[1] + (tileRange.maxY + 1) * tileSize[1] * resolution;
|
|
425
|
-
return createOrUpdate(minX, minY, maxX, maxY, tempExtent);
|
|
426
|
-
}
|
|
427
|
-
|
|
428
410
|
/**
|
|
429
411
|
* Get a tile range for the given extent and integer zoom level.
|
|
430
412
|
* @param {import("../extent.js").Extent} extent Extent.
|
package/tilegrid/WMTS.d.ts
CHANGED
package/tilegrid/WMTS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;GAWG;AACH,uJAHY,YAAY,CA4FvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtKc,MAAM,MAAM,CAAC;;;;;eAGb,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;AAjB5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkBjB;IALC;;;OAGG;IACH,mBAAmC;IAGrC;;;OAGG;IACH,eAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,gBAHY,MAAM,MAAM,CAAC,CAKxB;CACF"}
|
|
1
|
+
{"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;GAWG;AACH,uJAHY,YAAY,CA4FvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtKc,MAAM,MAAM,CAAC;;;;;eAGb,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;AAjB5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkBjB;IALC;;;OAGG;IACH,mBAAmC;IAGrC;;;OAGG;IACH,eAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,gBAHY,MAAM,MAAM,CAAC,CAKxB;CACF;qBA9EoB,eAAe"}
|
package/tilegrid.d.ts
CHANGED
package/tilegrid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tilegrid.d.ts","sourceRoot":"","sources":["tilegrid.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,6CAJW,OAAO,sBAAsB,EAAE,OAAO,GACpC,QAAQ,CAUpB;AAED;;;;;GAKG;AACH,gCALW,QAAQ,aACR,OAAO,gBAAgB,EAAE,SAAS,cAClC,OAAO,sBAAsB,EAAE,OAAO,GACrC,OAAO,gBAAgB,EAAE,SAAS,CAe7C;AAED;;;;;;;;GAQG;AACH,wCARW,OAAO,aAAa,EAAE,MAAM,8IAM1B,QAAQ,CAapB;AAED;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,6DAHa,QAAQ,CAoBpB;AAgCD;;;;;;;;GAQG;AACH,gDARW,OAAO,WAAW,EAAE,cAAc,8IAMhC,QAAQ,CAKpB;AAED;;;;;GAKG;AACH,iDAHW,OAAO,WAAW,EAAE,cAAc,GACjC,OAAO,aAAa,EAAE,MAAM,CAWvC"}
|
|
1
|
+
{"version":3,"file":"tilegrid.d.ts","sourceRoot":"","sources":["tilegrid.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,6CAJW,OAAO,sBAAsB,EAAE,OAAO,GACpC,QAAQ,CAUpB;AAED;;;;;GAKG;AACH,gCALW,QAAQ,aACR,OAAO,gBAAgB,EAAE,SAAS,cAClC,OAAO,sBAAsB,EAAE,OAAO,GACrC,OAAO,gBAAgB,EAAE,SAAS,CAe7C;AAED;;;;;;;;GAQG;AACH,wCARW,OAAO,aAAa,EAAE,MAAM,8IAM1B,QAAQ,CAapB;AAED;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,6DAHa,QAAQ,CAoBpB;AAgCD;;;;;;;;GAQG;AACH,gDARW,OAAO,WAAW,EAAE,cAAc,8IAMhC,QAAQ,CAKpB;AAED;;;;;GAKG;AACH,iDAHW,OAAO,WAAW,EAAE,cAAc,GACjC,OAAO,aAAa,EAAE,MAAM,CAWvC;;;;;;;;;;;;;;;;;;;;;;;;;;qBArKoB,wBAAwB"}
|
package/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,CAEmB"}
|
package/util.js
CHANGED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export default BaseTileRepresentation;
|
|
2
|
+
export type BaseTileType = import("../Tile.js").default;
|
|
3
|
+
export type TileRepresentationOptions<TileType extends import("../Tile.js").default> = {
|
|
4
|
+
/**
|
|
5
|
+
* The tile.
|
|
6
|
+
*/
|
|
7
|
+
tile: TileType;
|
|
8
|
+
/**
|
|
9
|
+
* Tile grid.
|
|
10
|
+
*/
|
|
11
|
+
grid: import("../tilegrid/TileGrid.js").default;
|
|
12
|
+
/**
|
|
13
|
+
* WebGL helper.
|
|
14
|
+
*/
|
|
15
|
+
helper: import("../webgl/Helper.js").default;
|
|
16
|
+
/**
|
|
17
|
+
* The size in pixels of the gutter around image tiles to ignore.
|
|
18
|
+
*/
|
|
19
|
+
gutter?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @typedef {import("../Tile.js").default} BaseTileType
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* @template {BaseTileType} TileType
|
|
26
|
+
* @typedef {Object} TileRepresentationOptions
|
|
27
|
+
* @property {TileType} tile The tile.
|
|
28
|
+
* @property {import("../tilegrid/TileGrid.js").default} grid Tile grid.
|
|
29
|
+
* @property {import("../webgl/Helper.js").default} helper WebGL helper.
|
|
30
|
+
* @property {number} [gutter=0] The size in pixels of the gutter around image tiles to ignore.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* @classdesc
|
|
34
|
+
* Base class for representing a tile in a webgl context
|
|
35
|
+
* @template {import("../Tile.js").default} TileType
|
|
36
|
+
* @abstract
|
|
37
|
+
*/
|
|
38
|
+
declare class BaseTileRepresentation<TileType extends import("../Tile.js").default> extends EventTarget {
|
|
39
|
+
/**
|
|
40
|
+
* @param {TileRepresentationOptions<TileType>} options The tile representation options.
|
|
41
|
+
*/
|
|
42
|
+
constructor(options: TileRepresentationOptions<TileType>);
|
|
43
|
+
/**
|
|
44
|
+
* @type {TileType}
|
|
45
|
+
*/
|
|
46
|
+
tile: TileType;
|
|
47
|
+
handleTileChange_(): void;
|
|
48
|
+
/**
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @protected
|
|
51
|
+
*/
|
|
52
|
+
protected gutter_: number;
|
|
53
|
+
/**
|
|
54
|
+
* @type {import("../webgl/Helper.js").default}
|
|
55
|
+
* @protected
|
|
56
|
+
*/
|
|
57
|
+
protected helper_: import("../webgl/Helper.js").default;
|
|
58
|
+
loaded: boolean;
|
|
59
|
+
ready: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @param {TileType} tile Tile.
|
|
62
|
+
*/
|
|
63
|
+
setTile(tile: TileType): void;
|
|
64
|
+
/**
|
|
65
|
+
* @abstract
|
|
66
|
+
* @protected
|
|
67
|
+
*/
|
|
68
|
+
protected uploadTile(): void;
|
|
69
|
+
setReady(): void;
|
|
70
|
+
}
|
|
71
|
+
import EventTarget from '../events/Target.js';
|
|
72
|
+
//# sourceMappingURL=BaseTileRepresentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTileRepresentation.d.ts","sourceRoot":"","sources":["BaseTileRepresentation.js"],"names":[],"mappings":";2BAWa,OAAO,YAAY,EAAE,OAAO;;;;;UAM3B,QAAQ;;;;UACR,OAAO,yBAAyB,EAAE,OAAO;;;;YACzC,OAAO,oBAAoB,EAAE,OAAO;;;;;;AATlD;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,0BAA0B,QAAQ,CAAC,EAyB7C;IApBC;;OAEG;IACH,MAFU,QAAQ,CAET;IAwDX,0BAKC;IA1DC;;;OAGG;IACH,mBAHU,MAAM,CAGkB;IAElC;;;OAGG;IACH,mBAHU,OAAO,oBAAoB,EAAE,OAAO,CAGjB;IAE7B,gBAAmB;IACnB,eAAkB;IAGpB;;OAEG;IACH,cAFW,QAAQ,QAqBlB;IAED;;;OAGG;IACH,6BAEC;IAED,iBAGC;CAYF;wBArGuB,qBAAqB"}
|