ol 9.2.5-sh.1 → 10.0.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 (674) hide show
  1. package/Collection.d.ts +1 -1
  2. package/Collection.d.ts.map +1 -1
  3. package/DataTile.d.ts +15 -1
  4. package/DataTile.d.ts.map +1 -1
  5. package/DataTile.js +26 -1
  6. package/Feature.d.ts +1 -1
  7. package/Feature.d.ts.map +1 -1
  8. package/Geolocation.d.ts +2 -2
  9. package/Geolocation.d.ts.map +1 -1
  10. package/Geolocation.js +1 -0
  11. package/Image.d.ts +4 -4
  12. package/Image.d.ts.map +1 -1
  13. package/ImageCanvas.d.ts +2 -1
  14. package/ImageCanvas.d.ts.map +1 -1
  15. package/ImageCanvas.js +2 -0
  16. package/ImageTile.d.ts.map +1 -1
  17. package/ImageTile.js +1 -1
  18. package/Map.d.ts +5 -4
  19. package/Map.d.ts.map +1 -1
  20. package/Map.js +15 -14
  21. package/MapBrowserEvent.d.ts +4 -2
  22. package/MapBrowserEvent.d.ts.map +1 -1
  23. package/MapBrowserEvent.js +4 -0
  24. package/MapBrowserEventHandler.d.ts +4 -1
  25. package/MapBrowserEventHandler.d.ts.map +1 -1
  26. package/MapBrowserEventHandler.js +4 -0
  27. package/MapBrowserEventType.d.ts +1 -1
  28. package/MapEvent.d.ts.map +1 -1
  29. package/MapEventType.d.ts +1 -1
  30. package/Object.d.ts.map +1 -1
  31. package/ObjectEventType.d.ts +1 -1
  32. package/Observable.d.ts +2 -2
  33. package/Observable.d.ts.map +1 -1
  34. package/Overlay.d.ts +2 -2
  35. package/Overlay.d.ts.map +1 -1
  36. package/Overlay.js +2 -2
  37. package/README.md +1 -1
  38. package/Tile.d.ts +10 -30
  39. package/Tile.d.ts.map +1 -1
  40. package/Tile.js +6 -79
  41. package/TileCache.d.ts +2 -1
  42. package/TileCache.d.ts.map +1 -1
  43. package/TileCache.js +4 -0
  44. package/TileQueue.d.ts +3 -2
  45. package/TileQueue.d.ts.map +1 -1
  46. package/TileQueue.js +7 -4
  47. package/VectorRenderTile.d.ts +11 -16
  48. package/VectorRenderTile.d.ts.map +1 -1
  49. package/VectorRenderTile.js +19 -24
  50. package/VectorTile.d.ts +20 -17
  51. package/VectorTile.d.ts.map +1 -1
  52. package/VectorTile.js +14 -10
  53. package/View.d.ts +1 -1
  54. package/View.d.ts.map +1 -1
  55. package/array.d.ts +2 -2
  56. package/array.d.ts.map +1 -1
  57. package/asserts.d.ts.map +1 -1
  58. package/centerconstraint.d.ts.map +1 -1
  59. package/color.d.ts.map +1 -1
  60. package/color.js +2 -2
  61. package/console.d.ts +1 -1
  62. package/console.d.ts.map +1 -1
  63. package/control/Attribution.d.ts.map +1 -1
  64. package/control/Attribution.js +5 -12
  65. package/control/Control.d.ts.map +1 -1
  66. package/control/Control.js +4 -6
  67. package/control/FullScreen.d.ts +1 -1
  68. package/control/FullScreen.d.ts.map +1 -1
  69. package/control/FullScreen.js +1 -0
  70. package/control/MousePosition.d.ts +1 -1
  71. package/control/MousePosition.d.ts.map +1 -1
  72. package/control/MousePosition.js +1 -0
  73. package/control/OverviewMap.d.ts.map +1 -1
  74. package/control/OverviewMap.js +16 -13
  75. package/control/Rotate.d.ts +4 -1
  76. package/control/Rotate.d.ts.map +1 -1
  77. package/control/Rotate.js +3 -0
  78. package/control/ScaleLine.d.ts +3 -3
  79. package/control/ScaleLine.d.ts.map +1 -1
  80. package/control/ZoomSlider.d.ts.map +1 -1
  81. package/control/ZoomSlider.js +1 -0
  82. package/control/ZoomToExtent.d.ts.map +1 -1
  83. package/control/defaults.d.ts.map +1 -1
  84. package/coordinate.d.ts +1 -1
  85. package/coordinate.d.ts.map +1 -1
  86. package/css.d.ts.map +1 -1
  87. package/dist/ol.d.ts +10 -8
  88. package/dist/ol.d.ts.map +1 -1
  89. package/dist/ol.js +1 -3
  90. package/dist/ol.js.map +1 -1
  91. package/dom.d.ts +0 -5
  92. package/dom.d.ts.map +1 -1
  93. package/dom.js +1 -9
  94. package/events/SnapEvent.d.ts.map +1 -1
  95. package/events/Target.d.ts.map +1 -1
  96. package/events/Target.js +1 -0
  97. package/events/condition.d.ts +2 -2
  98. package/events/condition.d.ts.map +1 -1
  99. package/events/condition.js +1 -1
  100. package/events.d.ts.map +1 -1
  101. package/events.js +6 -4
  102. package/expr/cpu.d.ts +1 -1
  103. package/expr/cpu.d.ts.map +1 -1
  104. package/expr/cpu.js +2 -16
  105. package/expr/expression.d.ts +8 -15
  106. package/expr/expression.d.ts.map +1 -1
  107. package/expr/expression.js +388 -508
  108. package/expr/gpu.d.ts +3 -3
  109. package/expr/gpu.d.ts.map +1 -1
  110. package/expr/gpu.js +1 -14
  111. package/extent.d.ts +2 -2
  112. package/extent.d.ts.map +1 -1
  113. package/featureloader.d.ts +10 -10
  114. package/featureloader.d.ts.map +1 -1
  115. package/featureloader.js +6 -6
  116. package/format/EsriJSON.d.ts +9 -12
  117. package/format/EsriJSON.d.ts.map +1 -1
  118. package/format/EsriJSON.js +7 -0
  119. package/format/Feature.d.ts +14 -14
  120. package/format/Feature.d.ts.map +1 -1
  121. package/format/Feature.js +8 -6
  122. package/format/GML2.d.ts.map +1 -1
  123. package/format/GML2.js +7 -9
  124. package/format/GML3.d.ts +2 -1
  125. package/format/GML3.d.ts.map +1 -1
  126. package/format/GML3.js +23 -31
  127. package/format/GML32.d.ts.map +1 -1
  128. package/format/GML32.js +1 -0
  129. package/format/GMLBase.d.ts.map +1 -1
  130. package/format/GMLBase.js +3 -0
  131. package/format/GPX.d.ts.map +1 -1
  132. package/format/GPX.js +3 -0
  133. package/format/GeoJSON.d.ts +17 -13
  134. package/format/GeoJSON.d.ts.map +1 -1
  135. package/format/GeoJSON.js +25 -17
  136. package/format/IGC.d.ts +1 -1
  137. package/format/IGC.d.ts.map +1 -1
  138. package/format/IGC.js +2 -0
  139. package/format/IIIFInfo.d.ts.map +1 -1
  140. package/format/JSONFeature.d.ts +15 -31
  141. package/format/JSONFeature.d.ts.map +1 -1
  142. package/format/JSONFeature.js +20 -16
  143. package/format/KML.d.ts +6 -6
  144. package/format/KML.d.ts.map +1 -1
  145. package/format/KML.js +5 -1
  146. package/format/MVT.d.ts +15 -13
  147. package/format/MVT.d.ts.map +1 -1
  148. package/format/MVT.js +19 -20
  149. package/format/OSMXML.d.ts.map +1 -1
  150. package/format/OSMXML.js +1 -0
  151. package/format/OWS.d.ts.map +1 -1
  152. package/format/OWS.js +1 -0
  153. package/format/Polyline.d.ts +6 -3
  154. package/format/Polyline.d.ts.map +1 -1
  155. package/format/Polyline.js +6 -0
  156. package/format/TextFeature.d.ts +9 -14
  157. package/format/TextFeature.d.ts.map +1 -1
  158. package/format/TextFeature.js +8 -0
  159. package/format/TopoJSON.d.ts +1 -8
  160. package/format/TopoJSON.d.ts.map +1 -1
  161. package/format/TopoJSON.js +2 -0
  162. package/format/WFS.d.ts.map +1 -1
  163. package/format/WFS.js +3 -0
  164. package/format/WKB.d.ts +9 -5
  165. package/format/WKB.d.ts.map +1 -1
  166. package/format/WKB.js +8 -0
  167. package/format/WKT.d.ts.map +1 -1
  168. package/format/WKT.js +6 -0
  169. package/format/WMSCapabilities.d.ts.map +1 -1
  170. package/format/WMSCapabilities.js +1 -0
  171. package/format/WMSGetFeatureInfo.d.ts.map +1 -1
  172. package/format/WMSGetFeatureInfo.js +1 -0
  173. package/format/WMTSCapabilities.d.ts.map +1 -1
  174. package/format/WMTSCapabilities.js +1 -0
  175. package/format/XMLFeature.d.ts +11 -15
  176. package/format/XMLFeature.d.ts.map +1 -1
  177. package/format/XMLFeature.js +8 -0
  178. package/format/filter/Bbox.d.ts.map +1 -1
  179. package/format/filter/Comparison.d.ts.map +1 -1
  180. package/format/filter/ComparisonBinary.d.ts.map +1 -1
  181. package/format/filter/Contains.d.ts.map +1 -1
  182. package/format/filter/DWithin.d.ts.map +1 -1
  183. package/format/filter/Disjoint.d.ts.map +1 -1
  184. package/format/filter/During.d.ts.map +1 -1
  185. package/format/filter/EqualTo.d.ts.map +1 -1
  186. package/format/filter/Filter.d.ts.map +1 -1
  187. package/format/filter/GreaterThan.d.ts.map +1 -1
  188. package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
  189. package/format/filter/Intersects.d.ts.map +1 -1
  190. package/format/filter/IsBetween.d.ts.map +1 -1
  191. package/format/filter/IsLike.d.ts.map +1 -1
  192. package/format/filter/IsNull.d.ts.map +1 -1
  193. package/format/filter/LessThan.d.ts.map +1 -1
  194. package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
  195. package/format/filter/LogicalNary.d.ts.map +1 -1
  196. package/format/filter/Not.d.ts.map +1 -1
  197. package/format/filter/NotEqualTo.d.ts.map +1 -1
  198. package/format/filter/ResourceId.d.ts.map +1 -1
  199. package/format/filter/Spatial.d.ts.map +1 -1
  200. package/format/filter/Within.d.ts.map +1 -1
  201. package/format/filter.d.ts.map +1 -1
  202. package/functions.d.ts +2 -2
  203. package/functions.d.ts.map +1 -1
  204. package/functions.js +6 -5
  205. package/geom/Circle.d.ts +10 -3
  206. package/geom/Circle.d.ts.map +1 -1
  207. package/geom/Circle.js +13 -0
  208. package/geom/Geometry.d.ts +2 -2
  209. package/geom/GeometryCollection.d.ts +6 -3
  210. package/geom/GeometryCollection.d.ts.map +1 -1
  211. package/geom/GeometryCollection.js +13 -0
  212. package/geom/LineString.d.ts +9 -5
  213. package/geom/LineString.d.ts.map +1 -1
  214. package/geom/LineString.js +7 -0
  215. package/geom/LinearRing.d.ts +8 -4
  216. package/geom/LinearRing.d.ts.map +1 -1
  217. package/geom/LinearRing.js +7 -0
  218. package/geom/MultiLineString.d.ts +8 -4
  219. package/geom/MultiLineString.d.ts.map +1 -1
  220. package/geom/MultiLineString.js +7 -0
  221. package/geom/MultiPoint.d.ts +6 -3
  222. package/geom/MultiPoint.d.ts.map +1 -1
  223. package/geom/MultiPoint.js +6 -0
  224. package/geom/MultiPolygon.d.ts +8 -4
  225. package/geom/MultiPolygon.d.ts.map +1 -1
  226. package/geom/MultiPolygon.js +8 -0
  227. package/geom/Point.d.ts +4 -2
  228. package/geom/Point.d.ts.map +1 -1
  229. package/geom/Point.js +7 -0
  230. package/geom/Polygon.d.ts +8 -4
  231. package/geom/Polygon.d.ts.map +1 -1
  232. package/geom/Polygon.js +8 -0
  233. package/geom/SimpleGeometry.d.ts +2 -1
  234. package/geom/SimpleGeometry.d.ts.map +1 -1
  235. package/geom/SimpleGeometry.js +6 -0
  236. package/geom/flat/area.d.ts.map +1 -1
  237. package/geom/flat/area.js +9 -7
  238. package/geom/flat/center.d.ts.map +1 -1
  239. package/geom/flat/closest.d.ts.map +1 -1
  240. package/geom/flat/contains.d.ts.map +1 -1
  241. package/geom/flat/deflate.d.ts.map +1 -1
  242. package/geom/flat/flip.d.ts.map +1 -1
  243. package/geom/flat/geodesic.d.ts.map +1 -1
  244. package/geom/flat/inflate.d.ts.map +1 -1
  245. package/geom/flat/interiorpoint.d.ts.map +1 -1
  246. package/geom/flat/interpolate.d.ts.map +1 -1
  247. package/geom/flat/intersectsextent.d.ts.map +1 -1
  248. package/geom/flat/length.d.ts.map +1 -1
  249. package/geom/flat/linechunk.d.ts.map +1 -1
  250. package/geom/flat/orient.d.ts.map +1 -1
  251. package/geom/flat/reverse.d.ts.map +1 -1
  252. package/geom/flat/segments.d.ts +1 -1
  253. package/geom/flat/segments.d.ts.map +1 -1
  254. package/geom/flat/simplify.d.ts.map +1 -1
  255. package/geom/flat/straightchunk.d.ts.map +1 -1
  256. package/geom/flat/textpath.d.ts.map +1 -1
  257. package/geom/flat/topology.d.ts.map +1 -1
  258. package/geom/flat/transform.d.ts.map +1 -1
  259. package/interaction/DblClickDragZoom.d.ts.map +1 -1
  260. package/interaction/DblClickDragZoom.js +1 -0
  261. package/interaction/DoubleClickZoom.d.ts.map +1 -1
  262. package/interaction/DoubleClickZoom.js +1 -0
  263. package/interaction/DragAndDrop.d.ts +4 -3
  264. package/interaction/DragAndDrop.d.ts.map +1 -1
  265. package/interaction/DragAndDrop.js +2 -0
  266. package/interaction/DragBox.d.ts +3 -3
  267. package/interaction/DragBox.d.ts.map +1 -1
  268. package/interaction/DragBox.js +6 -2
  269. package/interaction/DragPan.d.ts +6 -4
  270. package/interaction/DragPan.d.ts.map +1 -1
  271. package/interaction/DragPan.js +6 -1
  272. package/interaction/DragRotate.d.ts +3 -3
  273. package/interaction/DragRotate.d.ts.map +1 -1
  274. package/interaction/DragRotate.js +5 -2
  275. package/interaction/DragRotateAndZoom.d.ts +2 -2
  276. package/interaction/DragRotateAndZoom.d.ts.map +1 -1
  277. package/interaction/DragRotateAndZoom.js +4 -1
  278. package/interaction/DragZoom.d.ts +3 -3
  279. package/interaction/DragZoom.d.ts.map +1 -1
  280. package/interaction/DragZoom.js +3 -2
  281. package/interaction/Draw.d.ts +9 -8
  282. package/interaction/Draw.d.ts.map +1 -1
  283. package/interaction/Draw.js +9 -5
  284. package/interaction/Extent.d.ts +4 -3
  285. package/interaction/Extent.d.ts.map +1 -1
  286. package/interaction/Extent.js +6 -1
  287. package/interaction/Interaction.d.ts +1 -1
  288. package/interaction/Interaction.d.ts.map +1 -1
  289. package/interaction/KeyboardPan.d.ts +2 -2
  290. package/interaction/KeyboardPan.d.ts.map +1 -1
  291. package/interaction/KeyboardPan.js +2 -1
  292. package/interaction/KeyboardZoom.d.ts +2 -2
  293. package/interaction/KeyboardZoom.d.ts.map +1 -1
  294. package/interaction/KeyboardZoom.js +2 -1
  295. package/interaction/Link.d.ts +1 -1
  296. package/interaction/Link.d.ts.map +1 -1
  297. package/interaction/Link.js +4 -0
  298. package/interaction/Modify.d.ts +15 -12
  299. package/interaction/Modify.d.ts.map +1 -1
  300. package/interaction/Modify.js +11 -3
  301. package/interaction/MouseWheelZoom.d.ts +3 -3
  302. package/interaction/MouseWheelZoom.d.ts.map +1 -1
  303. package/interaction/MouseWheelZoom.js +2 -1
  304. package/interaction/PinchRotate.d.ts.map +1 -1
  305. package/interaction/PinchRotate.js +3 -0
  306. package/interaction/PinchZoom.d.ts.map +1 -1
  307. package/interaction/PinchZoom.js +3 -0
  308. package/interaction/Pointer.d.ts.map +1 -1
  309. package/interaction/Pointer.js +1 -0
  310. package/interaction/Select.d.ts +14 -15
  311. package/interaction/Select.d.ts.map +1 -1
  312. package/interaction/Select.js +8 -6
  313. package/interaction/Snap.d.ts +3 -2
  314. package/interaction/Snap.d.ts.map +1 -1
  315. package/interaction/Snap.js +3 -0
  316. package/interaction/Translate.d.ts +11 -10
  317. package/interaction/Translate.d.ts.map +1 -1
  318. package/interaction/Translate.js +9 -4
  319. package/interaction/defaults.d.ts.map +1 -1
  320. package/layer/Base.d.ts +1 -1
  321. package/layer/Base.d.ts.map +1 -1
  322. package/layer/Base.js +1 -0
  323. package/layer/BaseImage.d.ts.map +1 -1
  324. package/layer/BaseTile.d.ts +22 -5
  325. package/layer/BaseTile.d.ts.map +1 -1
  326. package/layer/BaseTile.js +23 -3
  327. package/layer/BaseVector.d.ts +7 -6
  328. package/layer/BaseVector.d.ts.map +1 -1
  329. package/layer/BaseVector.js +9 -4
  330. package/layer/Graticule.d.ts +5 -3
  331. package/layer/Graticule.d.ts.map +1 -1
  332. package/layer/Graticule.js +2 -1
  333. package/layer/Group.d.ts +2 -2
  334. package/layer/Group.d.ts.map +1 -1
  335. package/layer/Group.js +3 -0
  336. package/layer/Heatmap.d.ts +16 -10
  337. package/layer/Heatmap.d.ts.map +1 -1
  338. package/layer/Heatmap.js +25 -12
  339. package/layer/Image.d.ts.map +1 -1
  340. package/layer/Image.js +4 -0
  341. package/layer/Layer.d.ts +4 -4
  342. package/layer/Layer.d.ts.map +1 -1
  343. package/layer/Layer.js +7 -8
  344. package/layer/Tile.d.ts +6 -3
  345. package/layer/Tile.d.ts.map +1 -1
  346. package/layer/Tile.js +7 -2
  347. package/layer/Vector.d.ts +19 -9
  348. package/layer/Vector.d.ts.map +1 -1
  349. package/layer/Vector.js +15 -5
  350. package/layer/VectorImage.d.ts +9 -7
  351. package/layer/VectorImage.d.ts.map +1 -1
  352. package/layer/VectorImage.js +9 -4
  353. package/layer/VectorTile.d.ts +50 -15
  354. package/layer/VectorTile.d.ts.map +1 -1
  355. package/layer/VectorTile.js +51 -12
  356. package/layer/WebGLPoints.d.ts +1 -2
  357. package/layer/WebGLPoints.d.ts.map +1 -1
  358. package/layer/WebGLPoints.js +3 -0
  359. package/layer/WebGLTile.d.ts +9 -12
  360. package/layer/WebGLTile.d.ts.map +1 -1
  361. package/layer/WebGLTile.js +20 -21
  362. package/loadingstrategy.d.ts.map +1 -1
  363. package/math.d.ts.map +1 -1
  364. package/net.d.ts.map +1 -1
  365. package/obj.d.ts.map +1 -1
  366. package/ol.css +4 -0
  367. package/package.json +4 -4
  368. package/pixel.d.ts.map +1 -1
  369. package/proj/Projection.d.ts +1 -1
  370. package/proj/Projection.d.ts.map +1 -1
  371. package/proj/Units.d.ts +1 -1
  372. package/proj/epsg3857.d.ts.map +1 -1
  373. package/proj/epsg4326.d.ts.map +1 -1
  374. package/proj/proj4.d.ts.map +1 -1
  375. package/proj.d.ts.map +1 -1
  376. package/render/Box.d.ts.map +1 -1
  377. package/render/Box.js +1 -0
  378. package/render/Event.d.ts.map +1 -1
  379. package/render/EventType.d.ts +2 -2
  380. package/render/Feature.d.ts +6 -4
  381. package/render/Feature.d.ts.map +1 -1
  382. package/render/Feature.js +2 -0
  383. package/render/canvas/Builder.d.ts.map +1 -1
  384. package/render/canvas/Builder.js +2 -0
  385. package/render/canvas/BuilderGroup.d.ts.map +1 -1
  386. package/render/canvas/Executor.d.ts +6 -27
  387. package/render/canvas/Executor.d.ts.map +1 -1
  388. package/render/canvas/Executor.js +7 -13
  389. package/render/canvas/ExecutorGroup.d.ts +4 -5
  390. package/render/canvas/ExecutorGroup.d.ts.map +1 -1
  391. package/render/canvas/ExecutorGroup.js +2 -1
  392. package/render/canvas/ImageBuilder.d.ts +2 -1
  393. package/render/canvas/ImageBuilder.d.ts.map +1 -1
  394. package/render/canvas/ImageBuilder.js +4 -0
  395. package/render/canvas/Immediate.d.ts +24 -12
  396. package/render/canvas/Immediate.d.ts.map +1 -1
  397. package/render/canvas/Immediate.js +14 -0
  398. package/render/canvas/Instruction.d.ts.map +1 -1
  399. package/render/canvas/LineStringBuilder.d.ts.map +1 -1
  400. package/render/canvas/LineStringBuilder.js +4 -0
  401. package/render/canvas/PolygonBuilder.d.ts.map +1 -1
  402. package/render/canvas/PolygonBuilder.js +4 -0
  403. package/render/canvas/TextBuilder.d.ts +4 -2
  404. package/render/canvas/TextBuilder.d.ts.map +1 -1
  405. package/render/canvas/TextBuilder.js +4 -0
  406. package/render/canvas/ZIndexContext.d.ts +2 -1
  407. package/render/canvas/ZIndexContext.d.ts.map +1 -1
  408. package/render/canvas/ZIndexContext.js +1 -0
  409. package/render/canvas/hitdetect.d.ts +1 -1
  410. package/render/canvas/hitdetect.d.ts.map +1 -1
  411. package/render/canvas/style.d.ts +3 -3
  412. package/render/canvas/style.d.ts.map +1 -1
  413. package/render/canvas/style.js +6 -5
  414. package/render/canvas.d.ts +1 -1
  415. package/render/canvas.d.ts.map +1 -1
  416. package/render/canvas.js +2 -1
  417. package/render/webgl/MixedGeometryBatch.d.ts +4 -1
  418. package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
  419. package/render/webgl/MixedGeometryBatch.js +4 -0
  420. package/render/webgl/VectorStyleRenderer.d.ts +56 -30
  421. package/render/webgl/VectorStyleRenderer.d.ts.map +1 -1
  422. package/render/webgl/VectorStyleRenderer.js +39 -0
  423. package/render/webgl/renderinstructions.d.ts +4 -4
  424. package/render/webgl/utils.d.ts +1 -1
  425. package/render/webgl/utils.d.ts.map +1 -1
  426. package/render.d.ts.map +1 -1
  427. package/renderer/Composite.d.ts +3 -2
  428. package/renderer/Composite.d.ts.map +1 -1
  429. package/renderer/Composite.js +10 -4
  430. package/renderer/Layer.d.ts +22 -29
  431. package/renderer/Layer.d.ts.map +1 -1
  432. package/renderer/Layer.js +33 -37
  433. package/renderer/Map.d.ts +1 -1
  434. package/renderer/Map.d.ts.map +1 -1
  435. package/renderer/canvas/ImageLayer.d.ts +6 -4
  436. package/renderer/canvas/ImageLayer.d.ts.map +1 -1
  437. package/renderer/canvas/ImageLayer.js +12 -9
  438. package/renderer/canvas/Layer.d.ts +4 -9
  439. package/renderer/canvas/Layer.d.ts.map +1 -1
  440. package/renderer/canvas/Layer.js +1 -6
  441. package/renderer/canvas/TileLayer.d.ts +106 -42
  442. package/renderer/canvas/TileLayer.d.ts.map +1 -1
  443. package/renderer/canvas/TileLayer.js +546 -330
  444. package/renderer/canvas/VectorImageLayer.d.ts +7 -4
  445. package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
  446. package/renderer/canvas/VectorImageLayer.js +10 -3
  447. package/renderer/canvas/VectorLayer.d.ts +7 -4
  448. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  449. package/renderer/canvas/VectorLayer.js +8 -0
  450. package/renderer/canvas/VectorTileLayer.d.ts +18 -16
  451. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  452. package/renderer/canvas/VectorTileLayer.js +79 -54
  453. package/renderer/vector.d.ts.map +1 -1
  454. package/renderer/webgl/Layer.d.ts +1 -6
  455. package/renderer/webgl/Layer.d.ts.map +1 -1
  456. package/renderer/webgl/Layer.js +2 -6
  457. package/renderer/webgl/PointsLayer.d.ts +23 -8
  458. package/renderer/webgl/PointsLayer.d.ts.map +1 -1
  459. package/renderer/webgl/PointsLayer.js +22 -1
  460. package/renderer/webgl/TileLayer.d.ts +16 -5
  461. package/renderer/webgl/TileLayer.d.ts.map +1 -1
  462. package/renderer/webgl/TileLayer.js +18 -0
  463. package/renderer/webgl/TileLayerBase.d.ts +7 -16
  464. package/renderer/webgl/TileLayerBase.d.ts.map +1 -1
  465. package/renderer/webgl/TileLayerBase.js +69 -84
  466. package/renderer/webgl/VectorLayer.d.ts +32 -8
  467. package/renderer/webgl/VectorLayer.d.ts.map +1 -1
  468. package/renderer/webgl/VectorLayer.js +53 -0
  469. package/renderer/webgl/VectorTileLayer.d.ts +34 -29
  470. package/renderer/webgl/VectorTileLayer.d.ts.map +1 -1
  471. package/renderer/webgl/VectorTileLayer.js +27 -0
  472. package/renderer/webgl/worldUtil.d.ts.map +1 -1
  473. package/reproj/DataTile.d.ts.map +1 -1
  474. package/reproj/DataTile.js +121 -119
  475. package/reproj/Image.d.ts +2 -1
  476. package/reproj/Image.d.ts.map +1 -1
  477. package/reproj/Image.js +4 -2
  478. package/reproj/Tile.d.ts.map +1 -1
  479. package/reproj/Tile.js +16 -19
  480. package/reproj/Triangulation.d.ts.map +1 -1
  481. package/reproj.d.ts +1 -1
  482. package/reproj.d.ts.map +1 -1
  483. package/resolution.d.ts.map +1 -1
  484. package/resolutionconstraint.d.ts.map +1 -1
  485. package/rotationconstraint.d.ts.map +1 -1
  486. package/size.d.ts.map +1 -1
  487. package/source/BingMaps.d.ts +3 -3
  488. package/source/BingMaps.d.ts.map +1 -1
  489. package/source/BingMaps.js +1 -2
  490. package/source/CartoDB.d.ts +2 -2
  491. package/source/CartoDB.d.ts.map +1 -1
  492. package/source/CartoDB.js +1 -1
  493. package/source/Cluster.d.ts +5 -5
  494. package/source/Cluster.d.ts.map +1 -1
  495. package/source/Cluster.js +5 -2
  496. package/source/DataTile.d.ts +51 -22
  497. package/source/DataTile.d.ts.map +1 -1
  498. package/source/DataTile.js +67 -9
  499. package/source/GeoTIFF.d.ts +4 -7
  500. package/source/GeoTIFF.d.ts.map +1 -1
  501. package/source/GeoTIFF.js +4 -3
  502. package/source/Google.d.ts +2 -1
  503. package/source/Google.d.ts.map +1 -1
  504. package/source/Google.js +4 -2
  505. package/source/IIIF.d.ts +1 -1
  506. package/source/IIIF.js +1 -1
  507. package/source/Image.d.ts +3 -2
  508. package/source/Image.d.ts.map +1 -1
  509. package/source/Image.js +1 -0
  510. package/source/ImageArcGISRest.d.ts.map +1 -1
  511. package/source/ImageArcGISRest.js +4 -0
  512. package/source/ImageCanvas.d.ts +2 -1
  513. package/source/ImageCanvas.d.ts.map +1 -1
  514. package/source/ImageCanvas.js +1 -0
  515. package/source/ImageMapGuide.d.ts.map +1 -1
  516. package/source/ImageMapGuide.js +4 -0
  517. package/source/ImageStatic.d.ts.map +1 -1
  518. package/source/ImageStatic.js +1 -0
  519. package/source/ImageTile.d.ts +102 -0
  520. package/source/ImageTile.d.ts.map +1 -0
  521. package/source/ImageTile.js +206 -0
  522. package/source/ImageWMS.d.ts.map +1 -1
  523. package/source/ImageWMS.js +4 -0
  524. package/source/OGCMapTile.d.ts +2 -2
  525. package/source/OGCMapTile.js +1 -1
  526. package/source/OGCVectorTile.d.ts +9 -9
  527. package/source/OGCVectorTile.d.ts.map +1 -1
  528. package/source/OGCVectorTile.js +4 -4
  529. package/source/OSM.d.ts +2 -7
  530. package/source/OSM.d.ts.map +1 -1
  531. package/source/OSM.js +1 -3
  532. package/source/Raster.d.ts +41 -26
  533. package/source/Raster.d.ts.map +1 -1
  534. package/source/Raster.js +83 -102
  535. package/source/Source.d.ts +1 -1
  536. package/source/Source.d.ts.map +1 -1
  537. package/source/Source.js +5 -14
  538. package/source/StadiaMaps.d.ts +2 -2
  539. package/source/StadiaMaps.d.ts.map +1 -1
  540. package/source/StadiaMaps.js +2 -18
  541. package/source/Tile.d.ts +7 -36
  542. package/source/Tile.d.ts.map +1 -1
  543. package/source/Tile.js +9 -69
  544. package/source/TileArcGISRest.d.ts +2 -2
  545. package/source/TileArcGISRest.d.ts.map +1 -1
  546. package/source/TileArcGISRest.js +2 -1
  547. package/source/TileDebug.d.ts.map +1 -1
  548. package/source/TileDebug.js +0 -1
  549. package/source/TileEventType.d.ts +1 -1
  550. package/source/TileImage.d.ts +9 -12
  551. package/source/TileImage.d.ts.map +1 -1
  552. package/source/TileImage.js +21 -43
  553. package/source/TileJSON.d.ts +2 -2
  554. package/source/TileJSON.d.ts.map +1 -1
  555. package/source/TileJSON.js +1 -1
  556. package/source/TileWMS.d.ts +2 -2
  557. package/source/TileWMS.d.ts.map +1 -1
  558. package/source/TileWMS.js +3 -4
  559. package/source/UTFGrid.d.ts +5 -3
  560. package/source/UTFGrid.d.ts.map +1 -1
  561. package/source/UTFGrid.js +7 -8
  562. package/source/UrlTile.d.ts +16 -13
  563. package/source/UrlTile.d.ts.map +1 -1
  564. package/source/UrlTile.js +13 -7
  565. package/source/Vector.d.ts +21 -21
  566. package/source/Vector.d.ts.map +1 -1
  567. package/source/Vector.js +16 -13
  568. package/source/VectorEventType.d.ts +1 -1
  569. package/source/VectorTile.d.ts +13 -24
  570. package/source/VectorTile.d.ts.map +1 -1
  571. package/source/VectorTile.js +19 -87
  572. package/source/WMTS.d.ts +3 -3
  573. package/source/WMTS.d.ts.map +1 -1
  574. package/source/WMTS.js +5 -4
  575. package/source/XYZ.d.ts +14 -17
  576. package/source/XYZ.d.ts.map +1 -1
  577. package/source/XYZ.js +8 -8
  578. package/source/Zoomify.d.ts +5 -4
  579. package/source/Zoomify.d.ts.map +1 -1
  580. package/source/Zoomify.js +5 -2
  581. package/source/arcgisRest.d.ts +4 -4
  582. package/source/arcgisRest.d.ts.map +1 -1
  583. package/source/arcgisRest.js +5 -5
  584. package/source/mapguide.d.ts +3 -3
  585. package/source/mapguide.d.ts.map +1 -1
  586. package/source/mapguide.js +11 -8
  587. package/source/ogcTileUtil.d.ts +2 -2
  588. package/source/ogcTileUtil.d.ts.map +1 -1
  589. package/source/ogcTileUtil.js +7 -7
  590. package/source/static.d.ts +3 -3
  591. package/source/static.d.ts.map +1 -1
  592. package/source/static.js +7 -7
  593. package/source/wms.d.ts +2 -2
  594. package/source/wms.d.ts.map +1 -1
  595. package/source/wms.js +16 -19
  596. package/source.d.ts +1 -0
  597. package/source.d.ts.map +1 -1
  598. package/source.js +1 -0
  599. package/sphere.d.ts +1 -1
  600. package/structs/LRUCache.d.ts.map +1 -1
  601. package/structs/PriorityQueue.d.ts.map +1 -1
  602. package/structs/RBush.d.ts +10 -32
  603. package/structs/RBush.d.ts.map +1 -1
  604. package/structs/RBush.js +9 -12
  605. package/style/Circle.d.ts +2 -1
  606. package/style/Circle.d.ts.map +1 -1
  607. package/style/Circle.js +2 -1
  608. package/style/Fill.d.ts +3 -3
  609. package/style/Fill.d.ts.map +1 -1
  610. package/style/Fill.js +1 -1
  611. package/style/Icon.d.ts +8 -5
  612. package/style/Icon.d.ts.map +1 -1
  613. package/style/Icon.js +21 -0
  614. package/style/IconImage.d.ts.map +1 -1
  615. package/style/IconImage.js +3 -2
  616. package/style/IconImageCache.d.ts.map +1 -1
  617. package/style/Image.d.ts +3 -3
  618. package/style/Image.d.ts.map +1 -1
  619. package/style/RegularShape.d.ts +11 -5
  620. package/style/RegularShape.d.ts.map +1 -1
  621. package/style/RegularShape.js +23 -5
  622. package/style/Stroke.d.ts.map +1 -1
  623. package/style/Style.d.ts +5 -5
  624. package/style/Style.d.ts.map +1 -1
  625. package/style/Style.js +2 -2
  626. package/style/Text.d.ts +2 -2
  627. package/style/Text.d.ts.map +1 -1
  628. package/style/flat.d.ts.map +1 -1
  629. package/style/webgl.d.ts.map +1 -1
  630. package/tilecoord.d.ts +7 -0
  631. package/tilecoord.d.ts.map +1 -1
  632. package/tilecoord.js +11 -1
  633. package/tilegrid/TileGrid.d.ts +1 -1
  634. package/tilegrid/TileGrid.d.ts.map +1 -1
  635. package/tilegrid/WMTS.d.ts.map +1 -1
  636. package/tilegrid/WMTS.js +1 -1
  637. package/tileurlfunction.d.ts +3 -7
  638. package/tileurlfunction.d.ts.map +1 -1
  639. package/tileurlfunction.js +14 -47
  640. package/transform.d.ts +15 -15
  641. package/transform.d.ts.map +1 -1
  642. package/uri.d.ts +23 -3
  643. package/uri.d.ts.map +1 -1
  644. package/uri.js +75 -0
  645. package/util.d.ts.map +1 -1
  646. package/util.js +1 -1
  647. package/vec/mat4.d.ts.map +1 -1
  648. package/webgl/BaseTileRepresentation.d.ts +3 -3
  649. package/webgl/BaseTileRepresentation.d.ts.map +1 -1
  650. package/webgl/BaseTileRepresentation.js +9 -2
  651. package/webgl/Buffer.d.ts.map +1 -1
  652. package/webgl/Helper.d.ts.map +1 -1
  653. package/webgl/Helper.js +1 -0
  654. package/webgl/PostProcessingPass.d.ts +48 -12
  655. package/webgl/PostProcessingPass.d.ts.map +1 -1
  656. package/webgl/PostProcessingPass.js +42 -6
  657. package/webgl/RenderTarget.d.ts.map +1 -1
  658. package/webgl/ShaderBuilder.d.ts +1 -1
  659. package/webgl/TileGeometry.d.ts.map +1 -1
  660. package/webgl/TileGeometry.js +4 -1
  661. package/webgl/TileTexture.d.ts.map +1 -1
  662. package/webgl/TileTexture.js +14 -8
  663. package/webgl/styleparser.d.ts.map +1 -1
  664. package/webgl/styleparser.js +54 -66
  665. package/webgl.d.ts.map +1 -1
  666. package/worker/webgl.js +1 -1
  667. package/xml.d.ts.map +1 -1
  668. package/xml.js +27 -39
  669. package/source/SentinelHub.d.ts +0 -507
  670. package/source/SentinelHub.d.ts.map +0 -1
  671. package/source/SentinelHub.js +0 -616
  672. package/structs/LinkedList.d.ts +0 -130
  673. package/structs/LinkedList.d.ts.map +0 -1
  674. package/structs/LinkedList.js +0 -259
package/source/Raster.js CHANGED
@@ -16,35 +16,6 @@ import {create as createTransform} from '../transform.js';
16
16
  import {equals, getCenter, getHeight, getWidth} from '../extent.js';
17
17
  import {getUid} from '../util.js';
18
18
 
19
- let hasImageData = true;
20
- try {
21
- new ImageData(10, 10);
22
- } catch (_) {
23
- hasImageData = false;
24
- }
25
-
26
- /** @type {CanvasRenderingContext2D} */
27
- let context;
28
-
29
- /**
30
- * @param {Uint8ClampedArray} data Image data.
31
- * @param {number} width Number of columns.
32
- * @param {number} height Number of rows.
33
- * @return {ImageData} Image data.
34
- */
35
- export function newImageData(data, width, height) {
36
- if (hasImageData) {
37
- return new ImageData(data, width, height);
38
- }
39
-
40
- if (!context) {
41
- context = document.createElement('canvas').getContext('2d');
42
- }
43
- const imageData = context.createImageData(width, height);
44
- imageData.data.set(data);
45
- return imageData;
46
- }
47
-
48
19
  /**
49
20
  * @typedef {Object} MinionData
50
21
  * @property {Array<ArrayBuffer>} buffers Array of buffers.
@@ -64,20 +35,6 @@ export function newImageData(data, width, height) {
64
35
  * buffer.
65
36
  */
66
37
  function createMinion(operation) {
67
- let workerHasImageData = true;
68
- try {
69
- new ImageData(10, 10);
70
- } catch (_) {
71
- workerHasImageData = false;
72
- }
73
-
74
- function newWorkerImageData(data, width, height) {
75
- if (workerHasImageData) {
76
- return new ImageData(data, width, height);
77
- }
78
- return {data: data, width: width, height: height};
79
- }
80
-
81
38
  return function (data) {
82
39
  // bracket notation for minification support
83
40
  const buffers = data['buffers'];
@@ -92,7 +49,7 @@ function createMinion(operation) {
92
49
  if (imageOps) {
93
50
  const images = new Array(numBuffers);
94
51
  for (let b = 0; b < numBuffers; ++b) {
95
- images[b] = newWorkerImageData(
52
+ images[b] = new ImageData(
96
53
  new Uint8ClampedArray(buffers[b]),
97
54
  width,
98
55
  height,
@@ -218,11 +175,15 @@ export class Processor extends Disposable {
218
175
  constructor(config) {
219
176
  super();
220
177
 
221
- this._imageOps = !!config.imageOps;
178
+ /**
179
+ * @type {boolean}
180
+ * @private
181
+ */
182
+ this.imageOps_ = !!config.imageOps;
222
183
  let threads;
223
184
  if (config.threads === 0) {
224
185
  threads = 0;
225
- } else if (this._imageOps) {
186
+ } else if (this.imageOps_) {
226
187
  threads = 1;
227
188
  } else {
228
189
  threads = config.threads || 1;
@@ -234,36 +195,48 @@ export class Processor extends Disposable {
234
195
  const workers = new Array(threads);
235
196
  if (threads) {
236
197
  for (let i = 0; i < threads; ++i) {
237
- workers[i] = createWorker(config, this._onWorkerMessage.bind(this, i));
198
+ workers[i] = createWorker(config, this.onWorkerMessage_.bind(this, i));
238
199
  }
239
200
  } else {
240
201
  workers[0] = createFauxWorker(
241
202
  config,
242
- this._onWorkerMessage.bind(this, 0),
203
+ this.onWorkerMessage_.bind(this, 0),
243
204
  );
244
205
  }
245
- this._workers = workers;
206
+ /**
207
+ * @type {Array<Worker>}
208
+ * @private
209
+ */
210
+ this.workers_ = workers;
246
211
 
247
212
  /**
248
213
  * @type {Array<Job>}
249
214
  * @private
250
215
  */
251
- this._queue = [];
216
+ this.queue_ = [];
252
217
 
253
- this._maxQueueLength = config.queue || Infinity;
254
- this._running = 0;
218
+ /**
219
+ * @type {number}
220
+ * @private
221
+ */
222
+ this.maxQueueLength_ = config.queue || Infinity;
223
+ /**
224
+ * @type {number}
225
+ * @private
226
+ */
227
+ this.running_ = 0;
255
228
 
256
229
  /**
257
230
  * @type {Object<number, any>}
258
231
  * @private
259
232
  */
260
- this._dataLookup = {};
233
+ this.dataLookup_ = {};
261
234
 
262
235
  /**
263
- * @type {Job}
236
+ * @type {Job|null}
264
237
  * @private
265
238
  */
266
- this._job = null;
239
+ this.job_ = null;
267
240
  }
268
241
 
269
242
  /**
@@ -276,48 +249,48 @@ export class Processor extends Disposable {
276
249
  * generated by operations. The third is the user data object.
277
250
  */
278
251
  process(inputs, meta, callback) {
279
- this._enqueue({
252
+ this.enqueue_({
280
253
  inputs: inputs,
281
254
  meta: meta,
282
255
  callback: callback,
283
256
  });
284
- this._dispatch();
257
+ this.dispatch_();
285
258
  }
286
259
 
287
260
  /**
288
261
  * Add a job to the queue.
289
262
  * @param {Job} job The job.
290
263
  */
291
- _enqueue(job) {
292
- this._queue.push(job);
293
- while (this._queue.length > this._maxQueueLength) {
294
- this._queue.shift().callback(null, null);
264
+ enqueue_(job) {
265
+ this.queue_.push(job);
266
+ while (this.queue_.length > this.maxQueueLength_) {
267
+ this.queue_.shift().callback(null, null);
295
268
  }
296
269
  }
297
270
 
298
271
  /**
299
272
  * Dispatch a job.
300
273
  */
301
- _dispatch() {
302
- if (this._running || this._queue.length === 0) {
274
+ dispatch_() {
275
+ if (this.running_ || this.queue_.length === 0) {
303
276
  return;
304
277
  }
305
278
 
306
- const job = this._queue.shift();
307
- this._job = job;
279
+ const job = this.queue_.shift();
280
+ this.job_ = job;
308
281
  const width = job.inputs[0].width;
309
282
  const height = job.inputs[0].height;
310
283
  const buffers = job.inputs.map(function (input) {
311
284
  return input.data.buffer;
312
285
  });
313
- const threads = this._workers.length;
314
- this._running = threads;
286
+ const threads = this.workers_.length;
287
+ this.running_ = threads;
315
288
  if (threads === 1) {
316
- this._workers[0].postMessage(
289
+ this.workers_[0].postMessage(
317
290
  {
318
291
  buffers: buffers,
319
292
  meta: job.meta,
320
- imageOps: this._imageOps,
293
+ imageOps: this.imageOps_,
321
294
  width: width,
322
295
  height: height,
323
296
  },
@@ -334,11 +307,11 @@ export class Processor extends Disposable {
334
307
  for (let j = 0, jj = buffers.length; j < jj; ++j) {
335
308
  slices.push(buffers[j].slice(offset, offset + segmentLength));
336
309
  }
337
- this._workers[i].postMessage(
310
+ this.workers_[i].postMessage(
338
311
  {
339
312
  buffers: slices,
340
313
  meta: job.meta,
341
- imageOps: this._imageOps,
314
+ imageOps: this.imageOps_,
342
315
  width: width,
343
316
  height: height,
344
317
  },
@@ -352,14 +325,14 @@ export class Processor extends Disposable {
352
325
  * @param {number} index The worker index.
353
326
  * @param {MessageEvent} event The message event.
354
327
  */
355
- _onWorkerMessage(index, event) {
328
+ onWorkerMessage_(index, event) {
356
329
  if (this.disposed) {
357
330
  return;
358
331
  }
359
- this._dataLookup[index] = event.data;
360
- --this._running;
361
- if (this._running === 0) {
362
- this._resolveJob();
332
+ this.dataLookup_[index] = event.data;
333
+ --this.running_;
334
+ if (this.running_ === 0) {
335
+ this.resolveJob_();
363
336
  }
364
337
  }
365
338
 
@@ -367,43 +340,44 @@ export class Processor extends Disposable {
367
340
  * Resolve a job. If there are no more worker threads, the processor callback
368
341
  * will be called.
369
342
  */
370
- _resolveJob() {
371
- const job = this._job;
372
- const threads = this._workers.length;
343
+ resolveJob_() {
344
+ const job = this.job_;
345
+ const threads = this.workers_.length;
373
346
  let data, meta;
374
347
  if (threads === 1) {
375
- data = new Uint8ClampedArray(this._dataLookup[0]['buffer']);
376
- meta = this._dataLookup[0]['meta'];
348
+ data = new Uint8ClampedArray(this.dataLookup_[0]['buffer']);
349
+ meta = this.dataLookup_[0]['meta'];
377
350
  } else {
378
351
  const length = job.inputs[0].data.length;
379
352
  data = new Uint8ClampedArray(length);
380
353
  meta = new Array(threads);
381
354
  const segmentLength = 4 * Math.ceil(length / 4 / threads);
382
355
  for (let i = 0; i < threads; ++i) {
383
- const buffer = this._dataLookup[i]['buffer'];
356
+ const buffer = this.dataLookup_[i]['buffer'];
384
357
  const offset = i * segmentLength;
385
358
  data.set(new Uint8ClampedArray(buffer), offset);
386
- meta[i] = this._dataLookup[i]['meta'];
359
+ meta[i] = this.dataLookup_[i]['meta'];
387
360
  }
388
361
  }
389
- this._job = null;
390
- this._dataLookup = {};
362
+ this.job_ = null;
363
+ this.dataLookup_ = {};
391
364
  job.callback(
392
365
  null,
393
- newImageData(data, job.inputs[0].width, job.inputs[0].height),
366
+ new ImageData(data, job.inputs[0].width, job.inputs[0].height),
394
367
  meta,
395
368
  );
396
- this._dispatch();
369
+ this.dispatch_();
397
370
  }
398
371
 
399
372
  /**
400
373
  * Terminate all workers associated with the processor.
374
+ * @override
401
375
  */
402
376
  disposeInternal() {
403
- for (let i = 0; i < this._workers.length; ++i) {
404
- this._workers[i].terminate();
377
+ for (let i = 0; i < this.workers_.length; ++i) {
378
+ this.workers_[i].terminate();
405
379
  }
406
- this._workers.length = 0;
380
+ this.workers_.length = 0;
407
381
  }
408
382
  }
409
383
 
@@ -592,7 +566,10 @@ class RasterSource extends ImageSource {
592
566
  this.layers_[i].addEventListener(EventType.CHANGE, changed);
593
567
  }
594
568
 
595
- /** @type {boolean} */
569
+ /**
570
+ * @private
571
+ * @type {boolean}
572
+ */
596
573
  this.useResolutions_ = options.resolutions !== null;
597
574
 
598
575
  /**
@@ -620,6 +597,7 @@ class RasterSource extends ImageSource {
620
597
  /**
621
598
  * The most recently rendered revision.
622
599
  * @type {number}
600
+ * @private
623
601
  */
624
602
  this.renderedRevision_;
625
603
 
@@ -652,13 +630,10 @@ class RasterSource extends ImageSource {
652
630
  };
653
631
 
654
632
  this.setAttributions(function (frameState) {
633
+ /** @type {Array<string>} */
655
634
  const attributions = [];
656
- for (
657
- let index = 0, iMax = options.sources.length;
658
- index < iMax;
659
- ++index
660
- ) {
661
- const sourceOrLayer = options.sources[index];
635
+ for (let i = 0, iMax = options.sources.length; i < iMax; ++i) {
636
+ const sourceOrLayer = options.sources[i];
662
637
  const source =
663
638
  sourceOrLayer instanceof Source
664
639
  ? sourceOrLayer
@@ -666,13 +641,14 @@ class RasterSource extends ImageSource {
666
641
  if (!source) {
667
642
  continue;
668
643
  }
669
- const attributionGetter = source.getAttributions();
670
- if (typeof attributionGetter === 'function') {
671
- const sourceAttribution = attributionGetter(frameState);
672
- attributions.push.apply(attributions, sourceAttribution);
644
+ const sourceAttributions = source.getAttributions()?.(frameState);
645
+ if (typeof sourceAttributions === 'string') {
646
+ attributions.push(sourceAttributions);
647
+ } else if (sourceAttributions !== undefined) {
648
+ attributions.push(...sourceAttributions);
673
649
  }
674
650
  }
675
- return attributions.length !== 0 ? attributions : null;
651
+ return attributions;
676
652
  });
677
653
 
678
654
  if (options.operation !== undefined) {
@@ -762,6 +738,7 @@ class RasterSource extends ImageSource {
762
738
  * @param {number} pixelRatio Pixel ratio.
763
739
  * @param {import("../proj/Projection.js").default} projection Projection.
764
740
  * @return {import("../ImageCanvas.js").default} Single image.
741
+ * @override
765
742
  */
766
743
  getImage(extent, resolution, pixelRatio, projection) {
767
744
  if (!this.allSourcesReady_()) {
@@ -884,6 +861,7 @@ class RasterSource extends ImageSource {
884
861
  /**
885
862
  * @param {import("../proj/Projection").default} [projection] Projection.
886
863
  * @return {Array<number>|null} Resolutions.
864
+ * @override
887
865
  */
888
866
  getResolutions(projection) {
889
867
  if (!this.useResolutions_) {
@@ -902,6 +880,9 @@ class RasterSource extends ImageSource {
902
880
  return resolutions;
903
881
  }
904
882
 
883
+ /**
884
+ * @override
885
+ */
905
886
  disposeInternal() {
906
887
  if (this.processor_) {
907
888
  this.processor_.dispose();
@@ -2,7 +2,7 @@ export default Source;
2
2
  /**
3
3
  * State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
4
4
  */
5
- export type State = 'undefined' | 'loading' | 'ready' | 'error';
5
+ export type State = "undefined" | "loading" | "ready" | "error";
6
6
  /**
7
7
  * A function that takes a {@link import ("../View.js").ViewStateLayerStateExtent} and returns a string or
8
8
  * an array of strings representing source attributions.
@@ -1 +1 @@
1
- {"version":3,"file":"Source.d.ts","sourceRoot":"","sources":["Source.js"],"names":[],"mappings":";;;;oBAOa,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO;;;;;iCAQlC,OAAO,YAAY,EAAE,yBAAyB,KAAG,CAAC,MAAM,GAAC,MAAM,MAAM,CAAC,CAAC;;;;;;;;;8BAWhF,MAAM,GAAC,MAAM,MAAM,CAAC,GAAC,WAAW;;;;;;;;;;;;;iBAO/B,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;AA3BjD;;;GAGG;AAEH;;;;;GAKG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAwEjB;IAnEC;;;OAGG;IACH,sBAFU,OAAO,uBAAuB,EAAE,OAAO,GAAC,IAAI,CAEH;IAEnD;;;OAGG;IACH,sBAA4D;IAE5D;;;OAGG;IACH,iCAGU;IAEV;;;;OAIG;IACH,SAFU,OAAO,CAEG;IAEpB;;;OAGG;IACH,eAAmE;IAEnE;;;OAGG;IACH,eAAiE;IAEjE;;;OAGG;IACH,qBAAyC;IAEzC;;;OAGG;IACH,+BAFmB,OAAO,YAAY,EAAE,WAAW,KAAE,IAAI,CAEjC;IAExB;;;OAGG;IACH,+BAFmB,KAAK,KAAE,IAAI,CAEN;IAGxB;;;OAGG;IACH,qBAGE;IAGJ;;;;OAIG;IACH,mBAHa,WAAW,QAKvB;IAED;;;OAGG;IACH,8BAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,iBAHY,OAAO,uBAAuB,EAAE,OAAO,GAAC,IAAI,CAKvD;IAED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,YAAY,EAAE,WAAW,KAAE,IAAI,CAEjC;IAExB;;;OAGG;IACH,wBAFU,CAAS,IAAK,EAAL,KAAK,KAAE,IAAI,CAEN;IAGxB;;;OAGG;IACH,qBAGE;IAGJ;;;;OAIG;IACH,mBAHa,WAAW,OAAA,CAKvB;IAED;;;OAGG;IACH,8BAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,iBAHY,OAAO,uBAAuB,EAAE,OAAO,GAAC,IAAI,CAKvD;IAED;;;OAGG;IACH,0EAFY,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI,CAI7B;IAED;;OAEG;IACH,WAFY,OAAO,CAAC,OAAO,YAAY,EAAE,WAAW,CAAC,CAIpD;IAED;;;;OAIG;IACH,YAHY,OAAO,aAAa,EAAE,KAAK,CAKtC;IAED;;OAEG;IACH,YAFY,OAAO,GAAC,SAAS,CAI5B;IAED;;OAEG;IACH,kBAFY,OAAO,CAIlB;IAED;;;OAGG;IACH,gBAEC;IAED;;;;;;OAMG;IACH,8BALW,eAAe,GAAC,SAAS,QAQnC;IAED;;;OAGG;IACH,gBAFW,OAAO,aAAa,EAAE,KAAK,QAKrC;CACF;uBApNsB,cAAc"}
package/source/Source.js CHANGED
@@ -71,10 +71,7 @@ class Source extends BaseObject {
71
71
  * @private
72
72
  * @type {boolean}
73
73
  */
74
- this.attributionsCollapsible_ =
75
- options.attributionsCollapsible !== undefined
76
- ? options.attributionsCollapsible
77
- : true;
74
+ this.attributionsCollapsible_ = options.attributionsCollapsible ?? true;
78
75
 
79
76
  /**
80
77
  * This source is currently loading data. Sources that defer loading to the
@@ -227,19 +224,13 @@ function adaptAttributions(attributionLike) {
227
224
  if (!attributionLike) {
228
225
  return null;
229
226
  }
230
- if (Array.isArray(attributionLike)) {
231
- return function (frameState) {
232
- return attributionLike;
233
- };
234
- }
235
-
236
227
  if (typeof attributionLike === 'function') {
237
228
  return attributionLike;
238
229
  }
239
-
240
- return function (frameState) {
241
- return [attributionLike];
242
- };
230
+ if (!Array.isArray(attributionLike)) {
231
+ attributionLike = [attributionLike];
232
+ }
233
+ return (frameState) => attributionLike;
243
234
  }
244
235
 
245
236
  export default Source;
@@ -1,7 +1,7 @@
1
1
  export default StadiaMaps;
2
2
  export type Options = {
3
3
  /**
4
- * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
4
+ * Deprecated. Use the cacheSize option on the layer instead.
5
5
  */
6
6
  cacheSize?: number | undefined;
7
7
  /**
@@ -64,7 +64,7 @@ export type Options = {
64
64
  };
65
65
  /**
66
66
  * @typedef {Object} Options
67
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
67
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
68
68
  * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
69
69
  * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
70
70
  * @property {string} layer Layer name. Valid values: `alidade_smooth`, `alidade_smooth_dark`, `outdoors`, `stamen_terrain`, `stamen_terrain_background`, `stamen_terrain_labels`, `stamen_terrain_lines`, `stamen_toner_background`, `stamen_toner`, `stamen_toner_labels`, `stamen_toner_lines`, `stamen_toner_lite`, `stamen_watercolor`, and `osm_bright`.
@@ -1 +1 @@
1
- {"version":3,"file":"StadiaMaps.d.ts","sourceRoot":"","sources":["StadiaMaps.js"],"names":[],"mappings":";;;;;;;;;;;;;;WAwHc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AALpB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAsDjB;CACF;gBAzMe,UAAU"}
1
+ {"version":3,"file":"StadiaMaps.d.ts","sourceRoot":"","sources":["StadiaMaps.js"],"names":[],"mappings":";;;;;;;;;;;;;;WAyGc,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AALpB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqDjB;CACF;gBAzLe,UAAU"}
@@ -27,68 +27,53 @@ const STAMEN_ATTRIBUTION =
27
27
  '&copy; <a href="https://stamen.com/" target="_blank">Stamen Design</a>';
28
28
 
29
29
  /**
30
- * @type {Object<string, {extension: string, opaque: boolean}>}
30
+ * @type {Object<string, {extension: string}>}
31
31
  */
32
32
  const LayerConfig = {
33
33
  'stamen_terrain': {
34
34
  extension: 'png',
35
- opaque: true,
36
35
  },
37
36
  'stamen_terrain_background': {
38
37
  extension: 'png',
39
- opaque: true,
40
38
  },
41
39
  'stamen_terrain_labels': {
42
40
  extension: 'png',
43
- opaque: false,
44
41
  },
45
42
  'stamen_terrain_lines': {
46
43
  extension: 'png',
47
- opaque: false,
48
44
  },
49
45
  'stamen_toner_background': {
50
46
  extension: 'png',
51
- opaque: true,
52
47
  },
53
48
  'stamen_toner': {
54
49
  extension: 'png',
55
- opaque: true,
56
50
  },
57
51
  'stamen_toner_labels': {
58
52
  extension: 'png',
59
- opaque: false,
60
53
  },
61
54
  'stamen_toner_lines': {
62
55
  extension: 'png',
63
- opaque: false,
64
56
  },
65
57
  'stamen_toner_lite': {
66
58
  extension: 'png',
67
- opaque: true,
68
59
  },
69
60
  'stamen_watercolor': {
70
61
  extension: 'jpg',
71
- opaque: true,
72
62
  },
73
63
  'alidade_smooth': {
74
64
  extension: 'png',
75
- opaque: true,
76
65
  },
77
66
  'alidade_smooth_dark': {
78
67
  extension: 'png',
79
- opaque: true,
80
68
  },
81
69
  'alidade_satellite': {
82
70
  extension: 'png',
83
- opaque: true,
84
71
  },
85
72
  'outdoors': {
86
73
  extension: 'png',
87
- opaque: true,
88
74
  },
89
75
  'osm_bright': {
90
76
  extension: 'png',
91
- opaque: true,
92
77
  },
93
78
  };
94
79
 
@@ -115,7 +100,7 @@ const ProviderConfig = {
115
100
 
116
101
  /**
117
102
  * @typedef {Object} Options
118
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
103
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
119
104
  * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
120
105
  * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
121
106
  * @property {string} layer Layer name. Valid values: `alidade_smooth`, `alidade_smooth_dark`, `outdoors`, `stamen_terrain`, `stamen_terrain_background`, `stamen_terrain_labels`, `stamen_terrain_lines`, `stamen_toner_background`, `stamen_toner`, `stamen_toner_labels`, `stamen_toner_lines`, `stamen_toner_lite`, `stamen_watercolor`, and `osm_bright`.
@@ -193,7 +178,6 @@ class StadiaMaps extends XYZ {
193
178
  options.minZoom !== undefined
194
179
  ? options.minZoom
195
180
  : providerConfig.minZoom,
196
- opaque: layerConfig.opaque,
197
181
  reprojectionErrorThreshold: options.reprojectionErrorThreshold,
198
182
  tileLoadFunction: options.tileLoadFunction,
199
183
  transition: options.transition,
package/source/Tile.d.ts CHANGED
@@ -31,13 +31,9 @@ export type Options = {
31
31
  */
32
32
  attributionsCollapsible?: boolean | undefined;
33
33
  /**
34
- * CacheSize.
34
+ * Deprecated. Use the cacheSize option on the layer instead.
35
35
  */
36
36
  cacheSize?: number | undefined;
37
- /**
38
- * Whether the layer is opaque.
39
- */
40
- opaque?: boolean | undefined;
41
37
  /**
42
38
  * TilePixelRatio.
43
39
  */
@@ -89,8 +85,7 @@ import Event from '../events/Event.js';
89
85
  * @typedef {Object} Options
90
86
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
91
87
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
92
- * @property {number} [cacheSize] CacheSize.
93
- * @property {boolean} [opaque=false] Whether the layer is opaque.
88
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
94
89
  * @property {number} [tilePixelRatio] TilePixelRatio.
95
90
  * @property {import("../proj.js").ProjectionLike} [projection] Projection.
96
91
  * @property {import("./Source.js").State} [state] State.
@@ -107,10 +102,12 @@ import Event from '../events/Event.js';
107
102
  * Abstract base class; normally only used for creating subclasses and not
108
103
  * instantiated in apps.
109
104
  * Base class for sources providing images divided into a tile grid.
105
+ *
106
+ * @template {import("../Tile.js").default} [TileType=import("../Tile.js").default]
110
107
  * @abstract
111
108
  * @api
112
109
  */
113
- declare class TileSource extends Source {
110
+ declare class TileSource<TileType extends import("../Tile.js").default = import("../Tile.js").default> extends Source {
114
111
  /**
115
112
  * @param {Options} options SourceTile source options.
116
113
  */
@@ -127,11 +124,6 @@ declare class TileSource extends Source {
127
124
  * @type {TileSourceOnSignature<void>}
128
125
  */
129
126
  un: TileSourceOnSignature<void>;
130
- /**
131
- * @private
132
- * @type {boolean}
133
- */
134
- private opaque_;
135
127
  /**
136
128
  * @private
137
129
  * @type {number}
@@ -180,16 +172,6 @@ declare class TileSource extends Source {
180
172
  expireCache(projection: import("../proj/Projection.js").default, usedTiles: {
181
173
  [x: string]: boolean;
182
174
  }): void;
183
- /**
184
- * @param {import("../proj/Projection.js").default} projection Projection.
185
- * @param {number} z Zoom level.
186
- * @param {import("../TileRange.js").default} tileRange Tile range.
187
- * @param {function(import("../Tile.js").default):(boolean|void)} callback Called with each
188
- * loaded tile. If the callback returns `false`, the tile will not be
189
- * considered loaded.
190
- * @return {boolean} The tile range is fully covered with loaded tiles.
191
- */
192
- forEachLoadedTile(projection: import("../proj/Projection.js").default, z: number, tileRange: import("../TileRange.js").default, callback: (arg0: import("../Tile.js").default) => (boolean | void)): boolean;
193
175
  /**
194
176
  * @param {import("../proj/Projection.js").default} projection Projection.
195
177
  * @return {number} Gutter.
@@ -206,11 +188,6 @@ declare class TileSource extends Source {
206
188
  * @protected
207
189
  */
208
190
  protected setKey(key: string): void;
209
- /**
210
- * @param {import("../proj/Projection.js").default} projection Projection.
211
- * @return {boolean} Opaque.
212
- */
213
- getOpaque(projection: import("../proj/Projection.js").default): boolean;
214
191
  /**
215
192
  * @abstract
216
193
  * @param {number} z Tile coordinate z.
@@ -218,9 +195,9 @@ declare class TileSource extends Source {
218
195
  * @param {number} y Tile coordinate y.
219
196
  * @param {number} pixelRatio Pixel ratio.
220
197
  * @param {import("../proj/Projection.js").default} projection Projection.
221
- * @return {!import("../Tile.js").default} Tile.
198
+ * @return {TileType|null} Tile.
222
199
  */
223
- getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): import("../Tile.js").default;
200
+ getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): TileType | null;
224
201
  /**
225
202
  * Return the tile grid of the tile source.
226
203
  * @return {import("../tilegrid/TileGrid.js").default|null} Tile grid.
@@ -268,12 +245,6 @@ declare class TileSource extends Source {
268
245
  * @api
269
246
  */
270
247
  clear(): void;
271
- /**
272
- * Increases the cache size if needed
273
- * @param {number} tileCount Minimum number of tiles needed.
274
- * @param {import("../proj/Projection.js").default} projection Projection.
275
- */
276
- updateCacheSize(tileCount: number, projection: import("../proj/Projection.js").default): void;
277
248
  /**
278
249
  * Marks a tile coord as being used, without triggering a load.
279
250
  * @abstract
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["Tile.js"],"names":[],"mappings":"AAuXA;;;;GAIG;AACH;IACE;;;OAGG;IACH,kBAHW,MAAM,QACN,OAAO,YAAY,EAAE,OAAO,EAWtC;IANC;;;;OAIG;IACH,MAHU,OAAO,YAAY,EAAE,OAAO,CAGtB;CAEnB;;;;;4CAxXY,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,iBAAiB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MA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