ol 10.2.2-pr.1 → 10.3.0

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.
Files changed (454) hide show
  1. package/Collection.d.ts +1 -1
  2. package/Collection.d.ts.map +1 -1
  3. package/Feature.d.ts +2 -2
  4. package/Feature.d.ts.map +1 -1
  5. package/Geolocation.d.ts +1 -1
  6. package/Geolocation.d.ts.map +1 -1
  7. package/Image.d.ts +3 -3
  8. package/Image.d.ts.map +1 -1
  9. package/ImageCanvas.d.ts +1 -1
  10. package/ImageCanvas.d.ts.map +1 -1
  11. package/ImageTile.d.ts +1 -1
  12. package/ImageTile.d.ts.map +1 -1
  13. package/Map.d.ts +7 -7
  14. package/Map.d.ts.map +1 -1
  15. package/Map.js +1 -1
  16. package/MapBrowserEvent.d.ts +1 -1
  17. package/MapBrowserEvent.d.ts.map +1 -1
  18. package/MapBrowserEventHandler.d.ts +1 -1
  19. package/MapBrowserEventHandler.d.ts.map +1 -1
  20. package/MapEvent.d.ts +1 -1
  21. package/MapEvent.d.ts.map +1 -1
  22. package/Object.d.ts +4 -4
  23. package/Object.d.ts.map +1 -1
  24. package/Overlay.d.ts +1 -1
  25. package/Overlay.d.ts.map +1 -1
  26. package/Tile.d.ts +1 -1
  27. package/Tile.d.ts.map +1 -1
  28. package/TileCache.d.ts +1 -1
  29. package/TileRange.d.ts +1 -1
  30. package/TileRange.d.ts.map +1 -1
  31. package/VectorRenderTile.d.ts.map +1 -1
  32. package/VectorTile.d.ts +1 -1
  33. package/VectorTile.d.ts.map +1 -1
  34. package/View.d.ts +24 -24
  35. package/View.d.ts.map +1 -1
  36. package/array.d.ts +2 -2
  37. package/array.d.ts.map +1 -1
  38. package/centerconstraint.d.ts +1 -1
  39. package/centerconstraint.d.ts.map +1 -1
  40. package/control/Attribution.d.ts +1 -1
  41. package/control/Attribution.d.ts.map +1 -1
  42. package/control/Control.d.ts.map +1 -1
  43. package/control/Control.js +3 -1
  44. package/control/FullScreen.d.ts +1 -1
  45. package/control/FullScreen.d.ts.map +1 -1
  46. package/control/MousePosition.d.ts +1 -1
  47. package/control/MousePosition.d.ts.map +1 -1
  48. package/control/OverviewMap.d.ts +1 -1
  49. package/control/OverviewMap.d.ts.map +1 -1
  50. package/control/Rotate.d.ts +1 -1
  51. package/control/Rotate.d.ts.map +1 -1
  52. package/control/ScaleLine.d.ts +1 -1
  53. package/control/ScaleLine.d.ts.map +1 -1
  54. package/control/Zoom.d.ts +1 -1
  55. package/control/Zoom.d.ts.map +1 -1
  56. package/control/ZoomSlider.d.ts +1 -1
  57. package/control/ZoomSlider.d.ts.map +1 -1
  58. package/control/ZoomToExtent.d.ts +1 -1
  59. package/control/ZoomToExtent.d.ts.map +1 -1
  60. package/control/defaults.d.ts +1 -1
  61. package/control/defaults.d.ts.map +1 -1
  62. package/coordinate.d.ts +6 -6
  63. package/coordinate.d.ts.map +1 -1
  64. package/dist/ol.d.ts +6 -0
  65. package/dist/ol.d.ts.map +1 -1
  66. package/dist/ol.js +1 -1
  67. package/dist/ol.js.map +1 -1
  68. package/dom.d.ts +1 -1
  69. package/dom.d.ts.map +1 -1
  70. package/events/Target.d.ts +1 -1
  71. package/events/Target.d.ts.map +1 -1
  72. package/events/condition.d.ts.map +1 -1
  73. package/events.d.ts +1 -1
  74. package/events.d.ts.map +1 -1
  75. package/expr/expression.d.ts.map +1 -1
  76. package/expr/gpu.d.ts +10 -13
  77. package/expr/gpu.d.ts.map +1 -1
  78. package/expr/gpu.js +16 -19
  79. package/extent.d.ts +13 -13
  80. package/extent.d.ts.map +1 -1
  81. package/format/EsriJSON.d.ts +5 -5
  82. package/format/EsriJSON.d.ts.map +1 -1
  83. package/format/Feature.d.ts +11 -11
  84. package/format/Feature.d.ts.map +1 -1
  85. package/format/GML2.d.ts.map +1 -1
  86. package/format/GML3.d.ts +1 -1
  87. package/format/GML3.d.ts.map +1 -1
  88. package/format/GMLBase.d.ts +1 -1
  89. package/format/GMLBase.d.ts.map +1 -1
  90. package/format/GPX.d.ts +1 -1
  91. package/format/GPX.d.ts.map +1 -1
  92. package/format/GeoJSON.d.ts +5 -5
  93. package/format/GeoJSON.d.ts.map +1 -1
  94. package/format/IGC.d.ts +1 -1
  95. package/format/IGC.d.ts.map +1 -1
  96. package/format/IIIFInfo.d.ts +3 -3
  97. package/format/IIIFInfo.d.ts.map +1 -1
  98. package/format/JSONFeature.d.ts +9 -9
  99. package/format/JSONFeature.d.ts.map +1 -1
  100. package/format/KML.d.ts +1 -1
  101. package/format/KML.d.ts.map +1 -1
  102. package/format/MVT.d.ts +2 -2
  103. package/format/MVT.d.ts.map +1 -1
  104. package/format/Polyline.d.ts +8 -8
  105. package/format/Polyline.d.ts.map +1 -1
  106. package/format/TextFeature.d.ts +10 -10
  107. package/format/TextFeature.d.ts.map +1 -1
  108. package/format/TopoJSON.d.ts +1 -1
  109. package/format/TopoJSON.d.ts.map +1 -1
  110. package/format/WFS.d.ts +2 -2
  111. package/format/WFS.d.ts.map +1 -1
  112. package/format/WKB.d.ts +5 -5
  113. package/format/WKB.d.ts.map +1 -1
  114. package/format/WKT.d.ts +1 -1
  115. package/format/WKT.d.ts.map +1 -1
  116. package/format/WMSGetFeatureInfo.d.ts +1 -1
  117. package/format/WMSGetFeatureInfo.d.ts.map +1 -1
  118. package/format/XMLFeature.d.ts +13 -13
  119. package/format/XMLFeature.d.ts.map +1 -1
  120. package/format/filter/Bbox.d.ts +1 -1
  121. package/format/filter/Bbox.d.ts.map +1 -1
  122. package/format/filter/ComparisonBinary.d.ts +1 -1
  123. package/format/filter/ComparisonBinary.d.ts.map +1 -1
  124. package/format/filter/Contains.d.ts +1 -1
  125. package/format/filter/Contains.d.ts.map +1 -1
  126. package/format/filter/DWithin.d.ts +1 -1
  127. package/format/filter/DWithin.d.ts.map +1 -1
  128. package/format/filter/Disjoint.d.ts +1 -1
  129. package/format/filter/Disjoint.d.ts.map +1 -1
  130. package/format/filter/EqualTo.d.ts +1 -1
  131. package/format/filter/EqualTo.d.ts.map +1 -1
  132. package/format/filter/Intersects.d.ts +1 -1
  133. package/format/filter/Intersects.d.ts.map +1 -1
  134. package/format/filter/IsLike.d.ts +1 -1
  135. package/format/filter/IsLike.d.ts.map +1 -1
  136. package/format/filter/NotEqualTo.d.ts +1 -1
  137. package/format/filter/NotEqualTo.d.ts.map +1 -1
  138. package/format/filter/Spatial.d.ts +1 -1
  139. package/format/filter/Spatial.d.ts.map +1 -1
  140. package/format/filter/Within.d.ts +1 -1
  141. package/format/filter/Within.d.ts.map +1 -1
  142. package/format/filter.d.ts +9 -9
  143. package/format/filter.d.ts.map +1 -1
  144. package/geom/Circle.d.ts +2 -2
  145. package/geom/Circle.d.ts.map +1 -1
  146. package/geom/Geometry.d.ts +4 -4
  147. package/geom/Geometry.d.ts.map +1 -1
  148. package/geom/LineString.d.ts +4 -4
  149. package/geom/LineString.d.ts.map +1 -1
  150. package/geom/LinearRing.d.ts +2 -2
  151. package/geom/LinearRing.d.ts.map +1 -1
  152. package/geom/MultiLineString.d.ts +3 -3
  153. package/geom/MultiLineString.d.ts.map +1 -1
  154. package/geom/MultiPoint.d.ts +2 -2
  155. package/geom/MultiPoint.d.ts.map +1 -1
  156. package/geom/MultiPolygon.d.ts +3 -3
  157. package/geom/MultiPolygon.d.ts.map +1 -1
  158. package/geom/Point.d.ts +1 -1
  159. package/geom/Point.d.ts.map +1 -1
  160. package/geom/Polygon.d.ts +6 -6
  161. package/geom/Polygon.d.ts.map +1 -1
  162. package/geom/SimpleGeometry.d.ts +2 -2
  163. package/geom/SimpleGeometry.d.ts.map +1 -1
  164. package/geom/flat/closest.d.ts +3 -3
  165. package/geom/flat/closest.d.ts.map +1 -1
  166. package/geom/flat/deflate.d.ts +2 -2
  167. package/geom/flat/deflate.d.ts.map +1 -1
  168. package/geom/flat/flip.d.ts +1 -1
  169. package/geom/flat/flip.d.ts.map +1 -1
  170. package/geom/flat/inflate.d.ts +3 -3
  171. package/geom/flat/inflate.d.ts.map +1 -1
  172. package/geom/flat/interiorpoint.d.ts +1 -1
  173. package/geom/flat/interiorpoint.d.ts.map +1 -1
  174. package/geom/flat/interpolate.d.ts +1 -1
  175. package/geom/flat/interpolate.d.ts.map +1 -1
  176. package/geom/flat/orient.d.ts +4 -4
  177. package/geom/flat/orient.d.ts.map +1 -1
  178. package/geom/flat/simplify.d.ts +1 -1
  179. package/geom/flat/simplify.d.ts.map +1 -1
  180. package/geom/flat/textpath.d.ts.map +1 -1
  181. package/geom/flat/transform.d.ts +4 -4
  182. package/geom/flat/transform.d.ts.map +1 -1
  183. package/interaction/DblClickDragZoom.d.ts +1 -1
  184. package/interaction/DblClickDragZoom.d.ts.map +1 -1
  185. package/interaction/DoubleClickZoom.d.ts +1 -1
  186. package/interaction/DoubleClickZoom.d.ts.map +1 -1
  187. package/interaction/DragAndDrop.d.ts +2 -2
  188. package/interaction/DragAndDrop.d.ts.map +1 -1
  189. package/interaction/DragBox.d.ts +1 -1
  190. package/interaction/DragBox.d.ts.map +1 -1
  191. package/interaction/DragPan.d.ts +1 -1
  192. package/interaction/DragPan.d.ts.map +1 -1
  193. package/interaction/DragRotate.d.ts +1 -1
  194. package/interaction/DragRotate.d.ts.map +1 -1
  195. package/interaction/DragRotateAndZoom.d.ts +1 -1
  196. package/interaction/DragRotateAndZoom.d.ts.map +1 -1
  197. package/interaction/DragZoom.d.ts +1 -1
  198. package/interaction/DragZoom.d.ts.map +1 -1
  199. package/interaction/Draw.d.ts +1 -1
  200. package/interaction/Draw.d.ts.map +1 -1
  201. package/interaction/Extent.d.ts +1 -1
  202. package/interaction/Extent.d.ts.map +1 -1
  203. package/interaction/Interaction.d.ts +3 -3
  204. package/interaction/Interaction.d.ts.map +1 -1
  205. package/interaction/KeyboardPan.d.ts +1 -1
  206. package/interaction/KeyboardPan.d.ts.map +1 -1
  207. package/interaction/KeyboardZoom.d.ts +1 -1
  208. package/interaction/KeyboardZoom.d.ts.map +1 -1
  209. package/interaction/Link.d.ts +1 -1
  210. package/interaction/Link.d.ts.map +1 -1
  211. package/interaction/Modify.d.ts +2 -2
  212. package/interaction/Modify.d.ts.map +1 -1
  213. package/interaction/Modify.js +3 -0
  214. package/interaction/MouseWheelZoom.d.ts +1 -1
  215. package/interaction/MouseWheelZoom.d.ts.map +1 -1
  216. package/interaction/PinchRotate.d.ts +1 -1
  217. package/interaction/PinchRotate.d.ts.map +1 -1
  218. package/interaction/PinchZoom.d.ts +1 -1
  219. package/interaction/PinchZoom.d.ts.map +1 -1
  220. package/interaction/Pointer.d.ts +1 -1
  221. package/interaction/Pointer.d.ts.map +1 -1
  222. package/interaction/Select.d.ts +1 -1
  223. package/interaction/Select.d.ts.map +1 -1
  224. package/interaction/Snap.d.ts +3 -3
  225. package/interaction/Snap.d.ts.map +1 -1
  226. package/interaction/Translate.d.ts +1 -1
  227. package/interaction/Translate.d.ts.map +1 -1
  228. package/interaction/defaults.d.ts +1 -1
  229. package/interaction/defaults.d.ts.map +1 -1
  230. package/layer/Base.d.ts +4 -4
  231. package/layer/Base.d.ts.map +1 -1
  232. package/layer/BaseImage.d.ts +1 -1
  233. package/layer/BaseImage.d.ts.map +1 -1
  234. package/layer/BaseTile.d.ts +8 -1
  235. package/layer/BaseTile.d.ts.map +1 -1
  236. package/layer/BaseTile.js +2 -0
  237. package/layer/BaseVector.d.ts +7 -2
  238. package/layer/BaseVector.d.ts.map +1 -1
  239. package/layer/BaseVector.js +9 -0
  240. package/layer/Flow.d.ts.map +1 -1
  241. package/layer/Graticule.d.ts +1 -1
  242. package/layer/Graticule.d.ts.map +1 -1
  243. package/layer/Group.d.ts +1 -1
  244. package/layer/Group.d.ts.map +1 -1
  245. package/layer/Heatmap.d.ts +1 -1
  246. package/layer/Heatmap.d.ts.map +1 -1
  247. package/layer/Heatmap.js +3 -3
  248. package/layer/Image.d.ts +1 -1
  249. package/layer/Image.d.ts.map +1 -1
  250. package/layer/Layer.d.ts +6 -2
  251. package/layer/Layer.d.ts.map +1 -1
  252. package/layer/Layer.js +9 -3
  253. package/layer/Tile.d.ts +1 -1
  254. package/layer/Tile.d.ts.map +1 -1
  255. package/layer/Vector.d.ts +1 -1
  256. package/layer/Vector.d.ts.map +1 -1
  257. package/layer/VectorImage.d.ts +1 -1
  258. package/layer/VectorImage.d.ts.map +1 -1
  259. package/layer/VectorTile.d.ts +1 -1
  260. package/layer/VectorTile.d.ts.map +1 -1
  261. package/layer/WebGLPoints.d.ts +17 -4
  262. package/layer/WebGLPoints.d.ts.map +1 -1
  263. package/layer/WebGLPoints.js +8 -4
  264. package/layer/WebGLTile.d.ts.map +1 -1
  265. package/layer/WebGLTile.js +0 -1
  266. package/layer/WebGLVector.d.ts +173 -0
  267. package/layer/WebGLVector.d.ts.map +1 -0
  268. package/layer/WebGLVector.js +120 -0
  269. package/net.d.ts +1 -1
  270. package/net.d.ts.map +1 -1
  271. package/obj.d.ts.map +1 -1
  272. package/package.json +1 -1
  273. package/proj/epsg3857.d.ts +2 -2
  274. package/proj/epsg3857.d.ts.map +1 -1
  275. package/proj/proj4.d.ts.map +1 -1
  276. package/proj.d.ts +5 -5
  277. package/proj.d.ts.map +1 -1
  278. package/render/Event.d.ts +1 -1
  279. package/render/Event.d.ts.map +1 -1
  280. package/render/Feature.d.ts +2 -2
  281. package/render/Feature.d.ts.map +1 -1
  282. package/render/VectorContext.d.ts +13 -17
  283. package/render/VectorContext.d.ts.map +1 -1
  284. package/render/canvas/Executor.d.ts +3 -3
  285. package/render/canvas/Executor.d.ts.map +1 -1
  286. package/render/canvas/ExecutorGroup.d.ts +2 -2
  287. package/render/canvas/ExecutorGroup.d.ts.map +1 -1
  288. package/render/canvas/Immediate.d.ts +1 -1
  289. package/render/canvas/Immediate.d.ts.map +1 -1
  290. package/render/canvas/hitdetect.d.ts +1 -1
  291. package/render/canvas/hitdetect.d.ts.map +1 -1
  292. package/render/canvas.d.ts.map +1 -1
  293. package/render/webgl/MixedGeometryBatch.d.ts +2 -2
  294. package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
  295. package/render/webgl/VectorStyleRenderer.d.ts +3 -2
  296. package/render/webgl/VectorStyleRenderer.d.ts.map +1 -1
  297. package/render/webgl/VectorStyleRenderer.js +4 -2
  298. package/render/webgl/utils.d.ts +2 -2
  299. package/render/webgl/utils.d.ts.map +1 -1
  300. package/render.d.ts +1 -1
  301. package/render.d.ts.map +1 -1
  302. package/renderer/Map.d.ts.map +1 -1
  303. package/renderer/canvas/ImageLayer.d.ts.map +1 -1
  304. package/renderer/canvas/Layer.d.ts +1 -1
  305. package/renderer/canvas/Layer.d.ts.map +1 -1
  306. package/renderer/canvas/TileLayer.d.ts +1 -1
  307. package/renderer/canvas/TileLayer.d.ts.map +1 -1
  308. package/renderer/canvas/TileLayer.js +25 -16
  309. package/renderer/canvas/VectorLayer.d.ts +2 -2
  310. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  311. package/renderer/canvas/VectorTileLayer.d.ts +1 -1
  312. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  313. package/renderer/canvas/VectorTileLayer.js +2 -2
  314. package/renderer/vector.d.ts +1 -1
  315. package/renderer/vector.d.ts.map +1 -1
  316. package/renderer/webgl/FlowLayer.d.ts +1 -1
  317. package/renderer/webgl/FlowLayer.d.ts.map +1 -1
  318. package/renderer/webgl/Layer.d.ts +1 -1
  319. package/renderer/webgl/Layer.d.ts.map +1 -1
  320. package/renderer/webgl/PointsLayer.d.ts.map +1 -1
  321. package/renderer/webgl/PointsLayer.js +2 -2
  322. package/renderer/webgl/TileLayerBase.d.ts +1 -1
  323. package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
  324. package/renderer/webgl/VectorLayer.d.ts +12 -0
  325. package/renderer/webgl/VectorLayer.d.ts.map +1 -1
  326. package/renderer/webgl/VectorLayer.js +19 -7
  327. package/renderer/webgl/VectorTileLayer.d.ts +16 -0
  328. package/renderer/webgl/VectorTileLayer.d.ts.map +1 -1
  329. package/renderer/webgl/VectorTileLayer.js +11 -0
  330. package/reproj/Tile.d.ts +1 -1
  331. package/reproj/Tile.d.ts.map +1 -1
  332. package/reproj/Triangulation.d.ts +1 -1
  333. package/reproj/Triangulation.d.ts.map +1 -1
  334. package/reproj/glreproj.d.ts +2 -2
  335. package/reproj/glreproj.d.ts.map +1 -1
  336. package/reproj.d.ts +1 -1
  337. package/reproj.d.ts.map +1 -1
  338. package/resolutionconstraint.d.ts +3 -3
  339. package/resolutionconstraint.d.ts.map +1 -1
  340. package/rotationconstraint.d.ts +1 -1
  341. package/rotationconstraint.d.ts.map +1 -1
  342. package/size.d.ts +3 -3
  343. package/size.d.ts.map +1 -1
  344. package/source/Cluster.d.ts +1 -1
  345. package/source/Cluster.d.ts.map +1 -1
  346. package/source/DataTile.d.ts +1 -1
  347. package/source/DataTile.d.ts.map +1 -1
  348. package/source/IIIF.d.ts +1 -1
  349. package/source/IIIF.d.ts.map +1 -1
  350. package/source/ImageArcGISRest.d.ts +1 -1
  351. package/source/ImageArcGISRest.d.ts.map +1 -1
  352. package/source/ImageCanvas.d.ts +1 -1
  353. package/source/ImageCanvas.d.ts.map +1 -1
  354. package/source/ImageTile.d.ts +1 -1
  355. package/source/ImageTile.d.ts.map +1 -1
  356. package/source/ImageWMS.d.ts +2 -2
  357. package/source/ImageWMS.d.ts.map +1 -1
  358. package/source/OSM.d.ts +1 -1
  359. package/source/OSM.d.ts.map +1 -1
  360. package/source/Raster.d.ts +1 -1
  361. package/source/Raster.d.ts.map +1 -1
  362. package/source/SentinelHub.d.ts +2 -2
  363. package/source/SentinelHub.d.ts.map +1 -1
  364. package/source/SentinelHub.js +6 -14
  365. package/source/Source.d.ts +1 -1
  366. package/source/Source.d.ts.map +1 -1
  367. package/source/Tile.d.ts +1 -1
  368. package/source/Tile.d.ts.map +1 -1
  369. package/source/TileArcGISRest.d.ts +1 -1
  370. package/source/TileArcGISRest.d.ts.map +1 -1
  371. package/source/TileDebug.d.ts +1 -1
  372. package/source/TileDebug.d.ts.map +1 -1
  373. package/source/TileWMS.d.ts +2 -2
  374. package/source/TileWMS.d.ts.map +1 -1
  375. package/source/UTFGrid.d.ts +2 -2
  376. package/source/UTFGrid.d.ts.map +1 -1
  377. package/source/UrlTile.d.ts +1 -1
  378. package/source/UrlTile.d.ts.map +1 -1
  379. package/source/Vector.d.ts +6 -6
  380. package/source/Vector.d.ts.map +1 -1
  381. package/source/VectorTile.d.ts.map +1 -1
  382. package/source/WMTS.js +1 -1
  383. package/source/XYZ.d.ts +1 -1
  384. package/source/XYZ.d.ts.map +1 -1
  385. package/source/Zoomify.d.ts +1 -1
  386. package/source/Zoomify.d.ts.map +1 -1
  387. package/source/ogcTileUtil.d.ts +2 -2
  388. package/source/ogcTileUtil.d.ts.map +1 -1
  389. package/source/wms.d.ts +1 -1
  390. package/source/wms.d.ts.map +1 -1
  391. package/sphere.d.ts +4 -4
  392. package/sphere.d.ts.map +1 -1
  393. package/string.d.ts +1 -1
  394. package/string.d.ts.map +1 -1
  395. package/structs/LRUCache.d.ts +2 -2
  396. package/structs/LRUCache.d.ts.map +1 -1
  397. package/structs/RBush.d.ts +2 -2
  398. package/structs/RBush.d.ts.map +1 -1
  399. package/style/Circle.d.ts +1 -1
  400. package/style/Circle.d.ts.map +1 -1
  401. package/style/Fill.d.ts +1 -1
  402. package/style/Fill.d.ts.map +1 -1
  403. package/style/Icon.d.ts +1 -1
  404. package/style/Icon.d.ts.map +1 -1
  405. package/style/IconImage.d.ts +1 -1
  406. package/style/IconImage.d.ts.map +1 -1
  407. package/style/IconImageCache.d.ts +1 -1
  408. package/style/IconImageCache.d.ts.map +1 -1
  409. package/style/Image.d.ts.map +1 -1
  410. package/style/RegularShape.d.ts.map +1 -1
  411. package/style/RegularShape.js +2 -4
  412. package/style/Stroke.d.ts +1 -1
  413. package/style/Stroke.d.ts.map +1 -1
  414. package/style/Style.d.ts +1 -1
  415. package/style/Style.d.ts.map +1 -1
  416. package/style/Text.d.ts +1 -1
  417. package/style/Text.d.ts.map +1 -1
  418. package/style/flat.d.ts +8 -0
  419. package/style/flat.js +7 -0
  420. package/style/webgl.d.ts +0 -7
  421. package/style/webgl.d.ts.map +1 -1
  422. package/style/webgl.js +0 -2
  423. package/tilecoord.d.ts +1 -1
  424. package/tilecoord.d.ts.map +1 -1
  425. package/tilegrid/TileGrid.d.ts +8 -9
  426. package/tilegrid/TileGrid.d.ts.map +1 -1
  427. package/tilegrid/WMTS.d.ts +1 -1
  428. package/tilegrid/WMTS.d.ts.map +1 -1
  429. package/tilegrid.d.ts +3 -3
  430. package/tilegrid.d.ts.map +1 -1
  431. package/uri.d.ts +1 -1
  432. package/uri.d.ts.map +1 -1
  433. package/util.d.ts.map +1 -1
  434. package/util.js +1 -1
  435. package/vec/mat4.d.ts +4 -4
  436. package/vec/mat4.d.ts.map +1 -1
  437. package/webgl/Buffer.d.ts +1 -1
  438. package/webgl/Buffer.d.ts.map +1 -1
  439. package/webgl/Canvas.d.ts +3 -3
  440. package/webgl/Canvas.d.ts.map +1 -1
  441. package/webgl/Helper.d.ts +7 -7
  442. package/webgl/Helper.d.ts.map +1 -1
  443. package/webgl/PaletteTexture.d.ts +1 -1
  444. package/webgl/PaletteTexture.d.ts.map +1 -1
  445. package/webgl/PostProcessingPass.d.ts +1 -1
  446. package/webgl/PostProcessingPass.d.ts.map +1 -1
  447. package/webgl/RenderTarget.d.ts +1 -1
  448. package/webgl/RenderTarget.d.ts.map +1 -1
  449. package/webgl/ShaderBuilder.js +15 -15
  450. package/webgl/styleparser.d.ts +3 -2
  451. package/webgl/styleparser.d.ts.map +1 -1
  452. package/webgl/styleparser.js +57 -23
  453. package/xml.d.ts +11 -11
  454. package/xml.d.ts.map +1 -1
package/layer/Layer.d.ts CHANGED
@@ -299,7 +299,7 @@ declare class Layer<SourceType extends import("../source/Source.js").default = i
299
299
  * @return {boolean} The layer is visible in the map view.
300
300
  * @api
301
301
  */
302
- isVisible(view?: View | import("../View.js").ViewStateLayerStateExtent | undefined): boolean;
302
+ isVisible(view?: View | import("../View.js").ViewStateLayerStateExtent): boolean;
303
303
  /**
304
304
  * Get the attributions of the source of this layer for the given view.
305
305
  * @param {View|import("../View.js").ViewStateLayerStateExtent} [view] View or {@link import("../Map.js").FrameState}.
@@ -307,7 +307,7 @@ declare class Layer<SourceType extends import("../source/Source.js").default = i
307
307
  * @return {Array<string>} Attributions for this layer at the given view.
308
308
  * @api
309
309
  */
310
- getAttributions(view?: View | import("../View.js").ViewStateLayerStateExtent | undefined): Array<string>;
310
+ getAttributions(view?: View | import("../View.js").ViewStateLayerStateExtent): Array<string>;
311
311
  /**
312
312
  * Called when a layer is not visible during a map render.
313
313
  */
@@ -373,6 +373,10 @@ declare class Layer<SourceType extends import("../source/Source.js").default = i
373
373
  * @protected
374
374
  */
375
375
  protected createRenderer(): RendererType;
376
+ /**
377
+ * This will clear the renderer so that a new one can be created next time it is needed
378
+ */
379
+ clearRenderer(): void;
376
380
  }
377
381
  import BaseLayer from './Base.js';
378
382
  import View from '../View.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Layer.d.ts","sourceRoot":"","sources":["Layer.js"],"names":[],"mappings":"AAohBA;;;;;;GAMG;AACH,mCAJW,KAAK,aACL,OAAO,YAAY,EAAE,KAAK,GACzB,OAAO,CAelB;;6BA3hBY,CAAS,IAA8B,EAA9B,OAAO,WAAW,EAAE,UAAU,KAAE,WAAW;6BAIpD,aAAa,GAAC,eAAe;;;;6BAI7B,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,QAAQ,EAAE,yBAAyB,GAC5E,cAAc,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC9D,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,GACvI,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO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AHW,OAAO,WAAW,EAAE,UAAU,cAC9B,OAAO,mBAAmB,EAAE,KAAK,QAEF;IAE1C;;;OAGG;IACH,2BAFW,OAAO,WAAW,EAAE,UAAU,QAQxC;IAED;;;OAGG;IACH,oBAFW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAO1C;IAED;;;OAGG;IACH,kBAFY,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,CAI3C;IAED;;;;;;;;;;OAUG;IACH,YAHW,OAAO,WAAW,EAAE,OAAO,GAAC,IAAI,QAyB1C;IAED;;;OAGG;IACH,0BAYC;IAED;;;;;OAKG;IACH,kBAJW,UAAU,GAAC,IAAI,QAMzB;IAED;;;OAGG;IACH,eAFY,YAAY,GAAC,IAAI,CAO5B;IAED;;OAEG;IACH,eAFY,OAAO,CAIlB;IAED;;;;OAIG;IACH,4BAHY,YAAY,CAKvB;IAED;;OAEG;IACH,sBAKC;CAWF;sBArhBqB,WAAW;iBAIhB,YAAY"}
package/layer/Layer.js CHANGED
@@ -516,15 +516,21 @@ class Layer extends BaseLayer {
516
516
  }
517
517
 
518
518
  /**
519
- * Clean up.
520
- * @override
519
+ * This will clear the renderer so that a new one can be created next time it is needed
521
520
  */
522
- disposeInternal() {
521
+ clearRenderer() {
523
522
  if (this.renderer_) {
524
523
  this.renderer_.dispose();
525
524
  delete this.renderer_;
526
525
  }
526
+ }
527
527
 
528
+ /**
529
+ * Clean up.
530
+ * @override
531
+ */
532
+ disposeInternal() {
533
+ this.clearRenderer();
528
534
  this.setSource(null);
529
535
  super.disposeInternal();
530
536
  }
package/layer/Tile.d.ts CHANGED
@@ -15,7 +15,7 @@ declare class TileLayer<TileSourceType extends import("../source/Tile.js").defau
15
15
  /**
16
16
  * @param {import("./BaseTile.js").Options<TileSourceType>} [options] Tile layer options.
17
17
  */
18
- constructor(options?: import("./BaseTile.js").Options<TileSourceType> | undefined);
18
+ constructor(options?: import("./BaseTile.js").Options<TileSourceType>);
19
19
  /**
20
20
  * @override
21
21
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH,wBAJoD,cAAc,SAArD,OAAQ,mBAAmB,EAAE,OAAQ;IAKhD;;OAEG;IACH,mFAEC;IAED;;OAEG;IACH,yDAIC;CACF;oCA9BmC,iCAAiC;0BAD3C,eAAe"}
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":";AAMA;;;;;;;;;;;GAWG;AACH,wBAJoD,cAAc,SAArD,OAAQ,mBAAmB,EAAE,OAAQ;IAKhD;;OAEG;IACH,sBAFW,OAAO,eAAe,EAAE,OAAO,CAAC,cAAc,CAAC,EAIzD;IAED;;OAEG;IACH,yDAIC;CACF;oCA9BmC,iCAAiC;0BAD3C,eAAe"}
package/layer/Vector.d.ts CHANGED
@@ -175,7 +175,7 @@ declare class VectorLayer<VectorSourceType extends import("../source/Vector.js")
175
175
  /**
176
176
  * @param {Options<VectorSourceType, FeatureType>} [options] Options.
177
177
  */
178
- constructor(options?: Options<VectorSourceType, FeatureType> | undefined);
178
+ constructor(options?: Options<VectorSourceType, FeatureType>);
179
179
  }
180
180
  import CanvasVectorLayerRenderer from '../renderer/canvas/VectorLayer.js';
181
181
  import BaseVectorLayer from './BaseVector.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":";oBAOmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,0BALmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,0EAEC;CAQF;sCAnFqC,mCAAmC;4BAD7C,iBAAiB"}
1
+ {"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":";oBAOmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAFlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,0BALmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,sBAFW,OAAO,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAIhD;CAQF;sCAnFqC,mCAAmC;4BAD7C,iBAAiB"}
@@ -164,7 +164,7 @@ declare class VectorImageLayer<VectorSourceType extends import("../source/Vector
164
164
  /**
165
165
  * @param {Options<VectorSourceType, FeatureType>} [options] Options.
166
166
  */
167
- constructor(options?: Options<VectorSourceType, FeatureType> | undefined);
167
+ constructor(options?: Options<VectorSourceType, FeatureType>);
168
168
  /**
169
169
  * @type {number}
170
170
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"VectorImage.d.ts","sourceRoot":"","sources":["VectorImage.js"],"names":[],"mappings":";oBAOmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,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orTileLayer<VectorTileSourceType extends import("../source/Vec
238
238
  /**
239
239
  * @param {Options<VectorTileSourceType, FeatureType>} [options] Options.
240
240
  */
241
- constructor(options?: Options<VectorTileSourceType, FeatureType> | undefined);
241
+ constructor(options?: Options<VectorTileSourceType, FeatureType>);
242
242
  /***
243
243
  * @type {VectorTileLayerOnSignature<import("../events").EventsKey>}
244
244
  */
@@ -1 +1 @@
1
- {"version":3,"file":"VectorTile.d.ts","sourceRoot":"","sources":["VectorTile.js"],"names":[],"mappings":";;;;uCASa,MAAM,IACN,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,QAAQ,EAAE,yBAAyB,GAClF,OAAa,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,OAAO,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,GACvI,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,QAAQ,EAAE,yBAAyB,GAC7H,OAAa,YAAY,EAAE,cAAc,GAAC,gBAAgB,GAAC,+BAA+B,GAAC,OAAO,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,CAAC;mCAI3I,QAAQ,GAAG,QAAQ;;;;iCAInB,CAAC,IACD,CAAC,SAAS,OAAO,yBAAyB,EAAE,OAAO,CAAC,MAAM,CAA6C,SAAnC,OAAO,eAAe,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK;oBAI1D,oBAAoB,SAA9E,OAAQ,yBAAyB,EAAE,OAAO,CAAC,WAAW,CAAE,mDACpB,WAAW,SAA/C,OAAQ,YAAY,EAAE,WAAY;;;;;;;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,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,sBAFW,OAAO,CAAC,oBAAoB,EAAE,WAAW,CAAC,EAkEpD;IArDC;;OAEG;IACH,IAFU,0BAA0B,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAE5D;IAEP;;OAEG;IACH,MAFU,0BAA0B,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,CAE1D;IAET;;OAEG;IACH,IAFU,0BAA0B,CAAC,IAAI,CAAC,CAEnC;IAEP;;;OAGG;IACH,mBAA2B;IAQ3B;;;OAGG;IACH,oBAA6B;IAoD/B;;;;;;;;;;;OAWG;IACH,4BAJW,OAAO,cAAc,EAAE,MAAM,GAC5B,KAAK,CAAC,WAAW,CAAC,CAO7B;IAED;;OAEG;IACH,iBAFY,oBAAoB,CAI/B;IAED;;;;;OAKG;IACH,cAJY,MAAM,CAMjB;IAED;;;;;OAKG;IACH,6BAJY,OAAO,CAQlB;IAED;;;;;OAKG;IACH,oBAJW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,kDAJW,OAAO,QAMjB;CACF;0CAzQyC,uCAAuC;4BADrD,iBAAiB"}
@@ -4,6 +4,15 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
4
4
  * Literal style to apply to the layer features.
5
5
  */
6
6
  style: import("../style/webgl.js").WebGLStyle;
7
+ /**
8
+ * Style variables. Each variable must hold a literal value (not
9
+ * an expression). These variables can be used as {@link import ("../expr/expression.js").ExpressionValue expressions} in the styles properties
10
+ * using the `['var', 'varName']` operator.
11
+ * To update style variables, use the {@link import ("./WebGLPoints.js").default#updateStyleVariables} method.
12
+ */
13
+ variables?: {
14
+ [x: string]: string | number | boolean | number[];
15
+ } | undefined;
7
16
  /**
8
17
  * A CSS class name to set to the layer element.
9
18
  */
@@ -68,6 +77,10 @@ export type Options<VectorSourceType extends import("../source/Vector.js").defau
68
77
  * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
69
78
  * @typedef {Object} Options
70
79
  * @property {import('../style/webgl.js').WebGLStyle} style Literal style to apply to the layer features.
80
+ * @property {import('../style/flat.js').StyleVariables} [variables] Style variables. Each variable must hold a literal value (not
81
+ * an expression). These variables can be used as {@link import("../expr/expression.js").ExpressionValue expressions} in the styles properties
82
+ * using the `['var', 'varName']` operator.
83
+ * To update style variables, use the {@link import("./WebGLPoints.js").default#updateStyleVariables} method.
71
84
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
72
85
  * @property {number} [opacity=1] Opacity (0, 1).
73
86
  * @property {boolean} [visible=true] Visibility.
@@ -131,15 +144,15 @@ declare class WebGLPointsLayer<VectorSourceType extends import("../source/Vector
131
144
  */
132
145
  constructor(options: Options<VectorSourceType>);
133
146
  /**
147
+ * @type {import('../style/flat.js').StyleVariables}
134
148
  * @private
135
- * @type {import('../webgl/styleparser.js').StyleParseResult}
136
149
  */
137
- private parseResult_;
150
+ private styleVariables_;
138
151
  /**
139
- * @type {Object<string, (string|number|Array<number>|boolean)>}
140
152
  * @private
153
+ * @type {import('../webgl/styleparser.js').StyleParseResult}
141
154
  */
142
- private styleVariables_;
155
+ private parseResult_;
143
156
  /**
144
157
  * @private
145
158
  * @type {boolean}
@@ -1 +1 @@
1
- {"version":3,"file":"WebGLPoints.d.ts","sourceRoot":"","sources":["WebGLPoints.js"],"names":[],"mappings":";oBAQuF,gBAAgB,SAA1F,OAAQ,qBAAqB,EAAE,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAE;;;;WAExE,OAAO,mBAAmB,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAHpD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,+BALuF,gBAAgB,SAA1F,OAAQ,qBAAqB,EAAE,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAE;IAMpF;;OAEG;IACH,qBAFW,OAAO,CAAC,gBAAgB,CAAC,EAwBnC;IAjBC;;;OAGG;IACH,qBAAoD;IAEpD;;;OAGG;IACH,wBAAoD;IAEpD;;;OAGG;IACH,8BAA0D;IAyB5D;;;OAGG;IACH,gCAFW;YAAO,MAAM,GAAE,MAAM;KAAC,QAKhC;CACF;qCA3HoC,kCAAkC;kBADrD,YAAY"}
1
+ {"version":3,"file":"WebGLPoints.d.ts","sourceRoot":"","sources":["WebGLPoints.js"],"names":[],"mappings":";oBAQuF,gBAAgB,SAA1F,OAAQ,qBAAqB,EAAE,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAE;;;;WAExE,OAAO,mBAAmB,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAHpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,+BALuF,gBAAgB,SAA1F,OAAQ,qBAAqB,EAAE,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAE;IAMpF;;OAEG;IACH,qBAFW,OAAO,CAAC,gBAAgB,CAAC,EAwBnC;IAjBC;;;OAGG;IACH,wBAA8C;IAE9C;;;OAGG;IACH,qBAA0E;IAE1E;;;OAGG;IACH,8BAA0D;IAyB5D;;;OAGG;IACH;;aAGC;CACF;qCA/HoC,kCAAkC;kBADrD,YAAY"}
@@ -9,6 +9,10 @@ import {parseLiteralStyle} from '../webgl/styleparser.js';
9
9
  * @template {import("../source/Vector.js").default<import('../Feature').FeatureLike>} VectorSourceType
10
10
  * @typedef {Object} Options
11
11
  * @property {import('../style/webgl.js').WebGLStyle} style Literal style to apply to the layer features.
12
+ * @property {import('../style/flat.js').StyleVariables} [variables] Style variables. Each variable must hold a literal value (not
13
+ * an expression). These variables can be used as {@link import("../expr/expression.js").ExpressionValue expressions} in the styles properties
14
+ * using the `['var', 'varName']` operator.
15
+ * To update style variables, use the {@link import("./WebGLPoints.js").default#updateStyleVariables} method.
12
16
  * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
13
17
  * @property {number} [opacity=1] Opacity (0, 1).
14
18
  * @property {boolean} [visible=true] Visibility.
@@ -77,16 +81,16 @@ class WebGLPointsLayer extends Layer {
77
81
  super(baseOptions);
78
82
 
79
83
  /**
84
+ * @type {import('../style/flat.js').StyleVariables}
80
85
  * @private
81
- * @type {import('../webgl/styleparser.js').StyleParseResult}
82
86
  */
83
- this.parseResult_ = parseLiteralStyle(options.style);
87
+ this.styleVariables_ = options.variables || {};
84
88
 
85
89
  /**
86
- * @type {Object<string, (string|number|Array<number>|boolean)>}
87
90
  * @private
91
+ * @type {import('../webgl/styleparser.js').StyleParseResult}
88
92
  */
89
- this.styleVariables_ = options.style.variables || {};
93
+ this.parseResult_ = parseLiteralStyle(options.style, this.styleVariables_);
90
94
 
91
95
  /**
92
96
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"WebGLTile.d.ts","sourceRoot":"","sources":["WebGLTile.js"],"names":[],"mappings":";yBAmBa,OAAO,uBAAuB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,OAAO,GAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wIA+C/E,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,KAAE,KAAK,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAiBnF,MAAM;;;;oBACN,MAAM;;;;cACN;YAAO,MAAM,GAAC,OAAO,oBAAoB,EAAE,YAAY;KAAC;;;;qBACxD,KAAK,CAAC,OAAO,4BAA4B,EAAE,OAAO,CAAC;;AA0LjE;;;;;;;;;;;;GAYG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,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;;;;;GAYG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAyCjB;IA/BC;;;OAGG;IACH,iBAA+B;IAE/B;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,4BAA8B;IAE9B;;;OAGG;IACH,eAAmB;IAEnB;;;OAGG;IACH,wBAAkD;IAKpD;;;;;OAKG;IACH,mBAJW,OAAO,cAAc,EAAE,MAAM,cAC7B,MAAM,GACL,KAAK,CAAC,UAAU,CAAC,CAW5B;IAED;;;OAGG;IACH,4BAHY,UAAU,CAKrB;IAWD;;OAEG;IACH,4BAkBC;IAED;;;OAGG;IACH,4BAMC;IAED;;OAEG;IACH,wDAUC;IAED;;;;OAIG;IACH,0BAJW,OAAO,QAAQ,EAAE,UAAU,WAC3B,KAAK,CAAC,UAAU,CAAC,GAChB,WAAW,CAYtB;IAED;;;;;;OAMG;IACH,4BANY,OAAO,WAAW,EAAE,UAAU,OAAA,UAC/B,WAAW,GAEV,WAAW,CAuCtB;IAED;;;;;;;OAOG;IACH,gBAFW,KAAK,QAgBf;IAED;;;;OAIG;IACH;;aAGC;CACF;mCApfM,gCAAgC;0BALb,eAAe"}
@@ -123,7 +123,6 @@ function parseStyle(style, bandCount) {
123
123
  ...newCompilationContext(),
124
124
  inFragmentShader: true,
125
125
  bandCount: bandCount,
126
- style: style,
127
126
  };
128
127
 
129
128
  const pipeline = [];
@@ -0,0 +1,173 @@
1
+ export default WebGLVectorLayer;
2
+ /**
3
+ * *
4
+ */
5
+ export type ExtractedFeatureType<T> = T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never;
6
+ export type Options<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> = {
7
+ /**
8
+ * A CSS class name to set to the layer element.
9
+ */
10
+ className?: string | undefined;
11
+ /**
12
+ * Opacity (0, 1).
13
+ */
14
+ opacity?: number | undefined;
15
+ /**
16
+ * Visibility.
17
+ */
18
+ visible?: boolean | undefined;
19
+ /**
20
+ * The bounding extent for layer rendering. The layer will not be
21
+ * rendered outside of this extent.
22
+ * FIXME: not supported yet
23
+ */
24
+ extent?: import("../extent.js").Extent | undefined;
25
+ /**
26
+ * The z-index for layer rendering. At rendering time, the layers
27
+ * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
28
+ * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
29
+ * method was used.
30
+ */
31
+ zIndex?: number | undefined;
32
+ /**
33
+ * The minimum resolution (inclusive) at which this layer will be
34
+ * visible.
35
+ */
36
+ minResolution?: number | undefined;
37
+ /**
38
+ * The maximum resolution (exclusive) below which this layer will
39
+ * be visible.
40
+ */
41
+ maxResolution?: number | undefined;
42
+ /**
43
+ * The minimum view zoom level (exclusive) above which this layer will be
44
+ * visible.
45
+ */
46
+ minZoom?: number | undefined;
47
+ /**
48
+ * The maximum view zoom level (inclusive) at which this layer will
49
+ * be visible.
50
+ */
51
+ maxZoom?: number | undefined;
52
+ /**
53
+ * Source.
54
+ */
55
+ source?: VectorSourceType | undefined;
56
+ /**
57
+ * Layer style.
58
+ */
59
+ style: import("../style/webgl.js").WebGLStyle;
60
+ /**
61
+ * Style variables. Each variable must hold a literal value (not
62
+ * an expression). These variables can be used as {@link import ("../expr/expression.js").ExpressionValue expressions} in the styles properties
63
+ * using the `['var', 'varName']` operator.
64
+ * To update style variables, use the {@link import ("./WebGLVector.js").default#updateStyleVariables} method.
65
+ */
66
+ variables?: {
67
+ [x: string]: string | number | boolean | number[];
68
+ } | undefined;
69
+ /**
70
+ * Background color for the layer. If not specified, no background
71
+ * will be rendered.
72
+ * FIXME: not supported yet
73
+ */
74
+ background?: import("./Base.js").BackgroundColor | undefined;
75
+ /**
76
+ * Setting this to true will provide a slight performance boost, but will
77
+ * prevent all hit detection on the layer.
78
+ */
79
+ disableHitDetection?: boolean | undefined;
80
+ /**
81
+ * Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
82
+ */
83
+ properties?: {
84
+ [x: string]: any;
85
+ } | undefined;
86
+ };
87
+ /***
88
+ * @template T
89
+ * @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
90
+ */
91
+ /**
92
+ * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
93
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
94
+ * @typedef {Object} Options
95
+ * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
96
+ * @property {number} [opacity=1] Opacity (0, 1).
97
+ * @property {boolean} [visible=true] Visibility.
98
+ * @property {import("../extent.js").Extent} [extent] The bounding extent for layer rendering. The layer will not be
99
+ * rendered outside of this extent.
100
+ * FIXME: not supported yet
101
+ * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers
102
+ * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
103
+ * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
104
+ * method was used.
105
+ * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
106
+ * visible.
107
+ * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
108
+ * be visible.
109
+ * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be
110
+ * visible.
111
+ * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
112
+ * be visible.
113
+ * @property {VectorSourceType} [source] Source.
114
+ * @property {import('../style/webgl.js').WebGLStyle} style Layer style.
115
+ * @property {import('../style/flat.js').StyleVariables} [variables] Style variables. Each variable must hold a literal value (not
116
+ * an expression). These variables can be used as {@link import("../expr/expression.js").ExpressionValue expressions} in the styles properties
117
+ * using the `['var', 'varName']` operator.
118
+ * To update style variables, use the {@link import("./WebGLVector.js").default#updateStyleVariables} method.
119
+ * @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
120
+ * will be rendered.
121
+ * FIXME: not supported yet
122
+ * @property {boolean} [disableHitDetection=false] Setting this to true will provide a slight performance boost, but will
123
+ * prevent all hit detection on the layer.
124
+ * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
125
+ */
126
+ /**
127
+ * @classdesc
128
+ * Layer optimized for rendering large vector datasets.
129
+ *
130
+ * **Important: a `WebGLVector` layer must be manually disposed when removed, otherwise the underlying WebGL context
131
+ * will not be garbage collected.**
132
+ *
133
+ * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
134
+ * property on the layer object; for example, setting `title: 'My Title'` in the
135
+ * options means that `title` is observable, and has get/set accessors.
136
+ *
137
+ * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
138
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
139
+ * @extends {Layer<VectorSourceType, WebGLVectorLayerRenderer>}
140
+ */
141
+ declare class WebGLVectorLayer<VectorSourceType extends import("../source/Vector.js").default<FeatureType> = import("../source/Vector.js").default<any>, FeatureType extends import("../Feature.js").FeatureLike = ExtractedFeatureType<VectorSourceType>> extends Layer<VectorSourceType, WebGLVectorLayerRenderer> {
142
+ /**
143
+ * @param {Options<VectorSourceType, FeatureType>} [options] Options.
144
+ */
145
+ constructor(options?: Options<VectorSourceType, FeatureType>);
146
+ /**
147
+ * @type {import('../style/flat.js').StyleVariables}
148
+ * @private
149
+ */
150
+ private styleVariables_;
151
+ /**
152
+ * @private
153
+ */
154
+ private style_;
155
+ /**
156
+ * @private
157
+ */
158
+ private hitDetectionDisabled_;
159
+ /**
160
+ * Update any variables used by the layer style and trigger a re-render.
161
+ * @param {import('../style/flat.js').StyleVariables} variables Variables to update.
162
+ */
163
+ updateStyleVariables(variables: import("../style/flat.js").StyleVariables): void;
164
+ /**
165
+ * Set the layer style.
166
+ * @param {import('../style/webgl.js').WebGLStyle} style Layer style.
167
+ */
168
+ setStyle(style: import("../style/webgl.js").WebGLStyle): void;
169
+ style: import("../style/webgl.js").WebGLStyle | undefined;
170
+ }
171
+ import WebGLVectorLayerRenderer from '../renderer/webgl/VectorLayer.js';
172
+ import Layer from './Layer.js';
173
+ //# sourceMappingURL=WebGLVector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebGLVector.d.ts","sourceRoot":"","sources":["WebGLVector.js"],"names":[],"mappings":";;;;iCAOa,CAAC,IACD,CAAC,SAAS,OAAO,qBAAqB,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,OAAO,eAAe,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,KAAK;oBAI1D,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAqBpC,OAAO,mBAAmB,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5BpD;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;;;;;;;;;;;;GAcG;AACH,+BAJmE,gBAAgB,SAAtE,OAAQ,qBAAqB,EAAE,OAAO,CAAC,WAAW,CAAE,+CACb,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAIhD;;OAEG;IACH,sBAFW,OAAO,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAsBhD;IAfC;;;OAGG;IACH,wBAA8C;IAE9C;;OAEG;IACH,eAA2B;IAE3B;;OAEG;IACH,8BAA0D;IAc5D;;;OAGG;IACH,gCAFW,OAAO,kBAAkB,EAAE,cAAc,QAKnD;IAED;;;OAGG;IACH,gBAFW,OAAO,mBAAmB,EAAE,UAAU,QAMhD;IAHC,0DAAkB;CAIrB;qCAjHoC,kCAAkC;kBADrD,YAAY"}
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @module ol/layer/WebGLVector
3
+ */
4
+ import Layer from './Layer.js';
5
+ import WebGLVectorLayerRenderer from '../renderer/webgl/VectorLayer.js';
6
+
7
+ /***
8
+ * @template T
9
+ * @typedef {T extends import("../source/Vector.js").default<infer U extends import("../Feature.js").FeatureLike> ? U : never} ExtractedFeatureType
10
+ */
11
+
12
+ /**
13
+ * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
14
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
15
+ * @typedef {Object} Options
16
+ * @property {string} [className='ol-layer'] A CSS class name to set to the layer element.
17
+ * @property {number} [opacity=1] Opacity (0, 1).
18
+ * @property {boolean} [visible=true] Visibility.
19
+ * @property {import("../extent.js").Extent} [extent] The bounding extent for layer rendering. The layer will not be
20
+ * rendered outside of this extent.
21
+ * FIXME: not supported yet
22
+ * @property {number} [zIndex] The z-index for layer rendering. At rendering time, the layers
23
+ * will be ordered, first by Z-index and then by position. When `undefined`, a `zIndex` of 0 is assumed
24
+ * for layers that are added to the map's `layers` collection, or `Infinity` when the layer's `setMap()`
25
+ * method was used.
26
+ * @property {number} [minResolution] The minimum resolution (inclusive) at which this layer will be
27
+ * visible.
28
+ * @property {number} [maxResolution] The maximum resolution (exclusive) below which this layer will
29
+ * be visible.
30
+ * @property {number} [minZoom] The minimum view zoom level (exclusive) above which this layer will be
31
+ * visible.
32
+ * @property {number} [maxZoom] The maximum view zoom level (inclusive) at which this layer will
33
+ * be visible.
34
+ * @property {VectorSourceType} [source] Source.
35
+ * @property {import('../style/webgl.js').WebGLStyle} style Layer style.
36
+ * @property {import('../style/flat.js').StyleVariables} [variables] Style variables. Each variable must hold a literal value (not
37
+ * an expression). These variables can be used as {@link import("../expr/expression.js").ExpressionValue expressions} in the styles properties
38
+ * using the `['var', 'varName']` operator.
39
+ * To update style variables, use the {@link import("./WebGLVector.js").default#updateStyleVariables} method.
40
+ * @property {import("./Base.js").BackgroundColor} [background] Background color for the layer. If not specified, no background
41
+ * will be rendered.
42
+ * FIXME: not supported yet
43
+ * @property {boolean} [disableHitDetection=false] Setting this to true will provide a slight performance boost, but will
44
+ * prevent all hit detection on the layer.
45
+ * @property {Object<string, *>} [properties] Arbitrary observable properties. Can be accessed with `#get()` and `#set()`.
46
+ */
47
+
48
+ /**
49
+ * @classdesc
50
+ * Layer optimized for rendering large vector datasets.
51
+ *
52
+ * **Important: a `WebGLVector` layer must be manually disposed when removed, otherwise the underlying WebGL context
53
+ * will not be garbage collected.**
54
+ *
55
+ * Note that any property set in the options is set as a {@link module:ol/Object~BaseObject}
56
+ * property on the layer object; for example, setting `title: 'My Title'` in the
57
+ * options means that `title` is observable, and has get/set accessors.
58
+ *
59
+ * @template {import("../source/Vector.js").default<FeatureType>} [VectorSourceType=import("../source/Vector.js").default<*>]
60
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=ExtractedFeatureType<VectorSourceType>]
61
+ * @extends {Layer<VectorSourceType, WebGLVectorLayerRenderer>}
62
+ */
63
+ class WebGLVectorLayer extends Layer {
64
+ /**
65
+ * @param {Options<VectorSourceType, FeatureType>} [options] Options.
66
+ */
67
+ constructor(options) {
68
+ const baseOptions = Object.assign({}, options);
69
+
70
+ super(baseOptions);
71
+
72
+ /**
73
+ * @type {import('../style/flat.js').StyleVariables}
74
+ * @private
75
+ */
76
+ this.styleVariables_ = options.variables || {};
77
+
78
+ /**
79
+ * @private
80
+ */
81
+ this.style_ = options.style;
82
+
83
+ /**
84
+ * @private
85
+ */
86
+ this.hitDetectionDisabled_ = !!options.disableHitDetection;
87
+ }
88
+
89
+ /**
90
+ * @override
91
+ */
92
+ createRenderer() {
93
+ return new WebGLVectorLayerRenderer(this, {
94
+ style: this.style_,
95
+ variables: this.styleVariables_,
96
+ disableHitDetection: this.hitDetectionDisabled_,
97
+ });
98
+ }
99
+
100
+ /**
101
+ * Update any variables used by the layer style and trigger a re-render.
102
+ * @param {import('../style/flat.js').StyleVariables} variables Variables to update.
103
+ */
104
+ updateStyleVariables(variables) {
105
+ Object.assign(this.styleVariables_, variables);
106
+ this.changed();
107
+ }
108
+
109
+ /**
110
+ * Set the layer style.
111
+ * @param {import('../style/webgl.js').WebGLStyle} style Layer style.
112
+ */
113
+ setStyle(style) {
114
+ this.style = style;
115
+ this.clearRenderer();
116
+ this.changed();
117
+ }
118
+ }
119
+
120
+ export default WebGLVectorLayer;
package/net.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * @param {string} [callbackParam] Custom query parameter for the JSONP
10
10
  * callback. Default is 'callback'.
11
11
  */
12
- export function jsonp(url: string, callback: Function, errback?: Function | undefined, callbackParam?: string | undefined): void;
12
+ export function jsonp(url: string, callback: Function, errback?: Function, callbackParam?: string): void;
13
13
  /**
14
14
  * @param {string} url The URL.
15
15
  * @return {Promise<Object>} A promise that resolves to the JSON response.
package/net.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"net.d.ts","sourceRoot":"","sources":["net.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,2BAPW,MAAM,gGAiChB;AAyCD;;;GAGG;AACH,6BAHW,MAAM,GACL,OAAO,KAAQ,CAwC1B;AAED;;;;GAIG;AACH,iCAJW,MAAM,OACN,MAAM,GACL,MAAM,CAOjB;AAGD,4CAKC;AAED,mCAEC;AAzGD;IACE;;OAEG;IACH,sBAFW,cAAc,EAexB;IAJC;;OAEG;IACH,UAFU,cAAc,CAEA;CAE3B;AAED;IACE;;OAEG;IACH,oBAFW,cAAc,EAcxB;IAJC;;OAEG;IACH,QAFU,cAAc,CAEJ;CAEvB"}
1
+ {"version":3,"file":"net.d.ts","sourceRoot":"","sources":["net.js"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,2BAPW,MAAM,0DAIN,MAAM,QA6BhB;AAyCD;;;GAGG;AACH,6BAHW,MAAM,GACL,OAAO,KAAQ,CAwC1B;AAED;;;;GAIG;AACH,iCAJW,MAAM,OACN,MAAM,GACL,MAAM,CAOjB;AAGD,4CAKC;AAED,mCAEC;AAzGD;IACE;;OAEG;IACH,sBAFW,cAAc,EAexB;IAJC;;OAEG;IACH,UAFU,cAAc,CAEA;CAE3B;AAED;IACE;;OAEG;IACH,oBAFW,cAAc,EAcxB;IAJC;;OAEG;IACH,QAFU,cAAc,CAEJ;CAEvB"}
package/obj.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["obj.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,8BAFW;QAAO,MAAM,GAAE,OAAO;CAAC,QAMjC;AAED;;;;GAIG;AACH,sCAFY,OAAO,CAQlB"}
1
+ {"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["obj.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH;;SAIC;AAED;;;;GAIG;AACH,sCAFY,OAAO,CAQlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ol",
3
- "version": "10.2.2-pr.1",
3
+ "version": "10.3.0",
4
4
  "description": "OpenLayers mapping library",
5
5
  "keywords": [
6
6
  "map",
@@ -7,7 +7,7 @@
7
7
  * @param {number} [stride] Stride (default is `dimension`).
8
8
  * @return {Array<number>} Output array of coordinate values.
9
9
  */
10
- export function fromEPSG4326(input: Array<number>, output?: number[] | undefined, dimension?: number | undefined, stride?: number | undefined): Array<number>;
10
+ export function fromEPSG4326(input: Array<number>, output?: Array<number>, dimension?: number, stride?: number): Array<number>;
11
11
  /**
12
12
  * Transformation from EPSG:3857 to EPSG:4326.
13
13
  *
@@ -17,7 +17,7 @@ export function fromEPSG4326(input: Array<number>, output?: number[] | undefined
17
17
  * @param {number} [stride] Stride (default is `dimension`).
18
18
  * @return {Array<number>} Output array of coordinate values.
19
19
  */
20
- export function toEPSG4326(input: Array<number>, output?: number[] | undefined, dimension?: number | undefined, stride?: number | undefined): Array<number>;
20
+ export function toEPSG4326(input: Array<number>, output?: Array<number>, dimension?: number, stride?: number): Array<number>;
21
21
  /**
22
22
  * Radius of WGS84 sphere
23
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"epsg3857.d.ts","sourceRoot":"","sources":["epsg3857.js"],"names":[],"mappings":"AA2EA;;;;;;;;GAQG;AACH,oCANW,KAAK,CAAC,MAAM,CAAC,+FAIZ,KAAK,CAAC,MAAM,CAAC,CAyBxB;AAED;;;;;;;;GAQG;AACH,kCANW,KAAK,CAAC,MAAM,CAAC,+FAIZ,KAAK,CAAC,MAAM,CAAC,CAoBxB;AAnID;;;;;GAKG;AACH,qBAFU,MAAM,CAEc;AAE9B;;;GAGG;AACH,wBAFU,MAAM,CAE0B;AAE1C;;;GAGG;AACH,qBAFU,OAAO,cAAc,EAAE,MAAM,CAE8B;AAErE;;;GAGG;AACH,2BAFU,OAAO,cAAc,EAAE,MAAM,CAEU;AAEjD;;;;GAIG;AACH,yBAFU,MAAM,CAEmD;AAwBnE;;;;;GAKG;AACH,0BAFU,KAAK,CAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAShD"}
1
+ {"version":3,"file":"epsg3857.d.ts","sourceRoot":"","sources":["epsg3857.js"],"names":[],"mappings":"AA2EA;;;;;;;;GAQG;AACH,oCANW,KAAK,CAAC,MAAM,CAAC,WACb,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,WACN,MAAM,GACL,KAAK,CAAC,MAAM,CAAC,CAyBxB;AAED;;;;;;;;GAQG;AACH,kCANW,KAAK,CAAC,MAAM,CAAC,WACb,KAAK,CAAC,MAAM,CAAC,cACb,MAAM,WACN,MAAM,GACL,KAAK,CAAC,MAAM,CAAC,CAoBxB;AAnID;;;;;GAKG;AACH,qBAFU,MAAM,CAEc;AAE9B;;;GAGG;AACH,wBAFU,MAAM,CAE0B;AAE1C;;;GAGG;AACH,qBAFU,OAAO,cAAc,EAAE,MAAM,CAE8B;AAErE;;;GAGG;AACH,2BAFU,OAAO,cAAc,EAAE,MAAM,CAEU;AAEjD;;;;GAIG;AACH,yBAFU,MAAM,CAEmD;AAwBnE;;;;;GAKG;AACH,0BAFU,KAAK,CAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAShD"}
@@ -1 +1 @@
1
- {"version":3,"file":"proj4.d.ts","sourceRoot":"","sources":["proj4.js"],"names":[],"mappings":"AAkBA;;GAEG;AACH,gCAFY,OAAO,CAIlB;AAED;;GAEG;AACH,mCAEC;AAED;;;;;;;;;;GAUG;AACH,gCAHW,sBAAe,QAgDzB;AAcD;;;;;;;;GAQG;AACH,oCAHW,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,QAK1C;AAED;;;;GAIG;AACH,iCAFY,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,CAI3C;AAED;;;;;;;;;;;;;GAaG;AACH,mCAJW,MAAM,GAAC,MAAM,GACZ,OAAO,CAAC,UAAU,CAAC,CAsB9B;AAED;;;;;;;;;GASG;AACH,wCAJW,MAAM,GACL,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,CA0D3C;uBA7NsB,iBAAiB"}
1
+ {"version":3,"file":"proj4.d.ts","sourceRoot":"","sources":["proj4.js"],"names":[],"mappings":"AAkBA;;GAEG;AACH,gCAFY,OAAO,CAIlB;AAED;;GAEG;AACH,mCAEC;AAED;;;;;;;;;;GAUG;AACH,8DA6CC;AAcD;;;;;;;;GAQG;AACH,oCAHW,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,QAK1C;AAED;;;;GAIG;AACH,iCAFY,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,CAI3C;AAED;;;;;;;;;;;;;GAaG;AACH,mCAJW,MAAM,GAAC,MAAM,GACZ,OAAO,CAAC,UAAU,CAAC,CAsB9B;AAED;;;;;;;;;GASG;AACH,wCAJW,MAAM,GACL,CAAS,IAAM,EAAN,MAAM,KAAE,OAAO,CAAC,MAAM,CAAC,CA0D3C;uBA7NsB,iBAAiB"}