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/Tile.js CHANGED
@@ -4,16 +4,15 @@
4
4
  import Event from '../events/Event.js';
5
5
  import Source from './Source.js';
6
6
  import TileCache from '../TileCache.js';
7
- import TileState from '../TileState.js';
8
7
  import {abstract} from '../util.js';
9
8
  import {assert} from '../asserts.js';
10
9
  import {equivalent} from '../proj.js';
11
- import {getKeyZXY, withinExtentAndZ} from '../tilecoord.js';
12
10
  import {
13
11
  getForProjection as getTileGridForProjection,
14
12
  wrapX,
15
13
  } from '../tilegrid.js';
16
14
  import {scale as scaleSize, toSize} from '../size.js';
15
+ import {withinExtentAndZ} from '../tilecoord.js';
17
16
 
18
17
  /***
19
18
  * @template Return
@@ -28,8 +27,7 @@ import {scale as scaleSize, toSize} from '../size.js';
28
27
  * @typedef {Object} Options
29
28
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
30
29
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
31
- * @property {number} [cacheSize] CacheSize.
32
- * @property {boolean} [opaque=false] Whether the layer is opaque.
30
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
33
31
  * @property {number} [tilePixelRatio] TilePixelRatio.
34
32
  * @property {import("../proj.js").ProjectionLike} [projection] Projection.
35
33
  * @property {import("./Source.js").State} [state] State.
@@ -47,6 +45,8 @@ import {scale as scaleSize, toSize} from '../size.js';
47
45
  * Abstract base class; normally only used for creating subclasses and not
48
46
  * instantiated in apps.
49
47
  * Base class for sources providing images divided into a tile grid.
48
+ *
49
+ * @template {import("../Tile.js").default} [TileType=import("../Tile.js").default]
50
50
  * @abstract
51
51
  * @api
52
52
  */
@@ -79,12 +79,6 @@ class TileSource extends Source {
79
79
  */
80
80
  this.un;
81
81
 
82
- /**
83
- * @private
84
- * @type {boolean}
85
- */
86
- this.opaque_ = options.opaque !== undefined ? options.opaque : false;
87
-
88
82
  /**
89
83
  * @private
90
84
  * @type {number}
@@ -157,44 +151,6 @@ class TileSource extends Source {
157
151
  }
158
152
  }
159
153
 
160
- /**
161
- * @param {import("../proj/Projection.js").default} projection Projection.
162
- * @param {number} z Zoom level.
163
- * @param {import("../TileRange.js").default} tileRange Tile range.
164
- * @param {function(import("../Tile.js").default):(boolean|void)} callback Called with each
165
- * loaded tile. If the callback returns `false`, the tile will not be
166
- * considered loaded.
167
- * @return {boolean} The tile range is fully covered with loaded tiles.
168
- */
169
- forEachLoadedTile(projection, z, tileRange, callback) {
170
- const tileCache = this.getTileCacheForProjection(projection);
171
- if (!tileCache) {
172
- return false;
173
- }
174
-
175
- let covered = true;
176
- let tile, tileCoordKey, loaded;
177
- for (let x = tileRange.minX; x <= tileRange.maxX; ++x) {
178
- for (let y = tileRange.minY; y <= tileRange.maxY; ++y) {
179
- tileCoordKey = getKeyZXY(z, x, y);
180
- loaded = false;
181
- if (tileCache.containsKey(tileCoordKey)) {
182
- tile = /** @type {!import("../Tile.js").default} */ (
183
- tileCache.get(tileCoordKey)
184
- );
185
- loaded = tile.getState() === TileState.LOADED;
186
- if (loaded) {
187
- loaded = callback(tile) !== false;
188
- }
189
- }
190
- if (!loaded) {
191
- covered = false;
192
- }
193
- }
194
- }
195
- return covered;
196
- }
197
-
198
154
  /**
199
155
  * @param {import("../proj/Projection.js").default} projection Projection.
200
156
  * @return {number} Gutter.
@@ -223,17 +179,10 @@ class TileSource extends Source {
223
179
  }
224
180
  }
225
181
 
226
- /**
227
- * @param {import("../proj/Projection.js").default} projection Projection.
228
- * @return {boolean} Opaque.
229
- */
230
- getOpaque(projection) {
231
- return this.opaque_;
232
- }
233
-
234
182
  /**
235
183
  * @param {import("../proj/Projection").default} [projection] Projection.
236
184
  * @return {Array<number>|null} Resolutions.
185
+ * @override
237
186
  */
238
187
  getResolutions(projection) {
239
188
  const tileGrid = projection
@@ -252,7 +201,7 @@ class TileSource extends Source {
252
201
  * @param {number} y Tile coordinate y.
253
202
  * @param {number} pixelRatio Pixel ratio.
254
203
  * @param {import("../proj/Projection.js").default} projection Projection.
255
- * @return {!import("../Tile.js").default} Tile.
204
+ * @return {TileType|null} Tile.
256
205
  */
257
206
  getTile(z, x, y, pixelRatio, projection) {
258
207
  return abstract();
@@ -345,23 +294,14 @@ class TileSource extends Source {
345
294
  this.tileCache.clear();
346
295
  }
347
296
 
297
+ /**
298
+ * @override
299
+ */
348
300
  refresh() {
349
301
  this.clear();
350
302
  super.refresh();
351
303
  }
352
304
 
353
- /**
354
- * Increases the cache size if needed
355
- * @param {number} tileCount Minimum number of tiles needed.
356
- * @param {import("../proj/Projection.js").default} projection Projection.
357
- */
358
- updateCacheSize(tileCount, projection) {
359
- const tileCache = this.getTileCacheForProjection(projection);
360
- if (tileCount > tileCache.highWaterMark) {
361
- tileCache.highWaterMark = tileCount;
362
- }
363
- }
364
-
365
305
  /**
366
306
  * Marks a tile coord as being used, without triggering a load.
367
307
  * @abstract
@@ -5,7 +5,7 @@ export type Options = {
5
5
  */
6
6
  attributions?: import("./Source.js").AttributionLike | undefined;
7
7
  /**
8
- * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
8
+ * Deprecated. Use the cacheSize option on the layer instead.
9
9
  */
10
10
  cacheSize?: number | undefined;
11
11
  /**
@@ -93,7 +93,7 @@ export type Options = {
93
93
  /**
94
94
  * @typedef {Object} Options
95
95
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
96
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
96
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
97
97
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
98
98
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
99
99
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -1 +1 @@
1
- {"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAsCC;IAnBC;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBA8BC;IAWD;;;;OAIG;IACH,gCAGC;CA+CF;sBA5OqB,gBAAgB"}
1
+ {"version":3,"file":"TileArcGISRest.d.ts","sourceRoot":"","sources":["TileArcGISRest.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkCc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvBjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAsCC;IAnBC;;;OAGG;IACH,gBAAgD;IAEhD;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAKjC;;;OAGG;IACH,yBAOC;IAED;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;;OASG;IACH,uBA8BC;IAYD;;;;OAIG;IACH,gCAGC;CA+CF;sBA7OqB,gBAAgB"}
@@ -12,7 +12,7 @@ import {hash as tileCoordHash} from '../tilecoord.js';
12
12
  /**
13
13
  * @typedef {Object} Options
14
14
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
15
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
15
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
16
16
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
17
17
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
18
18
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -178,6 +178,7 @@ class TileArcGISRest extends TileImage {
178
178
  * Get the tile pixel ratio for this source.
179
179
  * @param {number} pixelRatio Pixel ratio.
180
180
  * @return {number} Tile pixel ratio.
181
+ * @override
181
182
  */
182
183
  getTilePixelRatio(pixelRatio) {
183
184
  return this.hidpi_ ? pixelRatio : 1;
@@ -1 +1 @@
1
- {"version":3,"file":"TileDebug.d.ts","sourceRoot":"","sources":["TileDebug.js"],"names":[],"mappings":";;;;;iBAUc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;AAFjD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAmCC;CACF;gBAhEe,UAAU"}
1
+ {"version":3,"file":"TileDebug.d.ts","sourceRoot":"","sources":["TileDebug.js"],"names":[],"mappings":";;;;;iBAUc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;AAFjD;;;;;;;;;;;GAWG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAkCC;CACF;gBA/De,UAAU"}
@@ -37,7 +37,6 @@ class TileDebug extends XYZ {
37
37
  options = options || {};
38
38
 
39
39
  super({
40
- opaque: false,
41
40
  projection: options.projection,
42
41
  tileGrid: options.tileGrid,
43
42
  wrapX: options.wrapX !== undefined ? options.wrapX : true,
@@ -4,5 +4,5 @@ declare namespace _default {
4
4
  let TILELOADERROR: string;
5
5
  }
6
6
  export default _default;
7
- export type TileSourceEventTypes = 'tileloadstart' | 'tileloadend' | 'tileloaderror';
7
+ export type TileSourceEventTypes = "tileloadstart" | "tileloadend" | "tileloaderror";
8
8
  //# sourceMappingURL=TileEventType.d.ts.map
@@ -9,7 +9,7 @@ export type Options = {
9
9
  */
10
10
  attributionsCollapsible?: boolean | undefined;
11
11
  /**
12
- * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
12
+ * Deprecated. Use the cacheSize option on the layer instead.
13
13
  */
14
14
  cacheSize?: number | undefined;
15
15
  /**
@@ -23,10 +23,6 @@ export type Options = {
23
23
  * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
24
24
  */
25
25
  interpolate?: boolean | undefined;
26
- /**
27
- * Whether the layer is opaque.
28
- */
29
- opaque?: boolean | undefined;
30
26
  /**
31
27
  * Projection. Default is the view projection.
32
28
  */
@@ -66,7 +62,8 @@ export type Options = {
66
62
  */
67
63
  tilePixelRatio?: number | undefined;
68
64
  /**
69
- * Optional function to get tile URL given a tile coordinate and the projection.
65
+ * Deprecated. Use an ImageTile source and provide a function
66
+ * for the url option instead.
70
67
  */
71
68
  tileUrlFunction?: import("../Tile.js").UrlFunction | undefined;
72
69
  /**
@@ -105,13 +102,12 @@ export type Options = {
105
102
  * @typedef {Object} Options
106
103
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
107
104
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
108
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
105
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
109
106
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
110
107
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
111
108
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
112
109
  * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
113
110
  * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
114
- * @property {boolean} [opaque=false] Whether the layer is opaque.
115
111
  * @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
116
112
  * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
117
113
  * Higher values can increase reprojection performance, but decrease precision.
@@ -129,7 +125,8 @@ export type Options = {
129
125
  * service advertizes 256px by 256px tiles but actually sends 512px
130
126
  * by 512px images (for retina/hidpi devices) then `tilePixelRatio`
131
127
  * should be set to `2`.
132
- * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Optional function to get tile URL given a tile coordinate and the projection.
128
+ * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
129
+ * for the url option instead.
133
130
  * @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders.
134
131
  * A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be
135
132
  * used instead of defining each one separately in the `urls` option.
@@ -146,8 +143,7 @@ export type Options = {
146
143
  * zoom levels. See {@link module:ol/tilegrid/TileGrid~TileGrid#getZForResolution}.
147
144
  */
148
145
  /**
149
- * @classdesc
150
- * Base class for sources providing images divided into a tile grid.
146
+ * @deprecated Use the ol/source/ImageTile.js instead.
151
147
  *
152
148
  * @fires import("./Tile.js").TileSourceEvent
153
149
  * @api
@@ -213,8 +209,9 @@ declare class TileImage extends UrlTile {
213
209
  * @param {number} pixelRatio Pixel ratio.
214
210
  * @param {import("../proj/Projection.js").default} projection Projection.
215
211
  * @return {!(ImageTile|ReprojTile)} Tile.
212
+ * @override
216
213
  */
217
- getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): (ImageTile | ReprojTile);
214
+ override getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): (ImageTile | ReprojTile);
218
215
  /**
219
216
  * @param {number} z Tile coordinate z.
220
217
  * @param {number} x Tile coordinate x.
@@ -1 +1 @@
1
- {"version":3,"file":"TileImage.d.ts","sourceRoot":"","sources":["TileImage.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,qBAFY,OAAO,EA+DlB;IArCC;;;OAGG;IACH,uBAFW,MAAM,QAG+C;IAEhE;;;OAGG;IACH,qBAFU,gBAAgB,CAGuC;IAEjE;;;OAGG;IACH;YAFkB,MAAM,GAAE,SAAS;MAEH;IAEhC;;;OAGG;IACH;YAFkB,MAAM,GAAE,OAAO,yBAAyB,EAAE,OAAO;MAEpC;IAE/B;;;OAGG;IACH,oCAAqE;IAErE;;;OAGG;IACH,iCAAqC;IAkDvC;;OAEG;IACH,aAFY,MAAM,CAIjB;IAgED;;;;;;;;;OASG;IACH,oBAoBC;IAED;;;;;;;OAOG;IACH,WAPW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACrC,CAAC,SAAS,GAAC,U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IACH,6BARW,MAAM,KACN,MAAM,KACN,MAAM,cACN,MAAM,cACN,OAAQ,uBAAuB,EAAE,OAAO,GACtC,SAAS,CAkBrB;IAED;;;;OAIG;IACH,mCAHW,OAAO,QAYjB;IAED;;;;;;;;;;;OAWG;IACH,qCAJW,OAAO,YAAY,EAAE,cAAc,YACnC,OAAO,yBAAyB,EAAE,OAAO,QAWnD;CAWF;sBArZqB,iBAAiB;oBAInB,cAAc;sBAFZ,iBAAiB;uBADhB,mBAAmB"}
@@ -16,13 +16,12 @@ import {getUid} from '../util.js';
16
16
  * @typedef {Object} Options
17
17
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
18
18
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
19
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
19
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
20
20
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
21
21
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
22
22
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
23
23
  * @property {boolean} [interpolate=true] Use interpolated values when resampling. By default,
24
24
  * linear interpolation is used when resampling. Set to false to use the nearest neighbor instead.
25
- * @property {boolean} [opaque=false] Whether the layer is opaque.
26
25
  * @property {import("../proj.js").ProjectionLike} [projection] Projection. Default is the view projection.
27
26
  * @property {number} [reprojectionErrorThreshold=0.5] Maximum allowed reprojection error (in pixels).
28
27
  * Higher values can increase reprojection performance, but decrease precision.
@@ -40,7 +39,8 @@ import {getUid} from '../util.js';
40
39
  * service advertizes 256px by 256px tiles but actually sends 512px
41
40
  * by 512px images (for retina/hidpi devices) then `tilePixelRatio`
42
41
  * should be set to `2`.
43
- * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Optional function to get tile URL given a tile coordinate and the projection.
42
+ * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
43
+ * for the url option instead.
44
44
  * @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders.
45
45
  * A `{?-?}` template pattern, for example `subdomain{a-f}.domain.com`, may be
46
46
  * used instead of defining each one separately in the `urls` option.
@@ -58,8 +58,7 @@ import {getUid} from '../util.js';
58
58
  */
59
59
 
60
60
  /**
61
- * @classdesc
62
- * Base class for sources providing images divided into a tile grid.
61
+ * @deprecated Use the ol/source/ImageTile.js instead.
63
62
  *
64
63
  * @fires import("./Tile.js").TileSourceEvent
65
64
  * @api
@@ -72,7 +71,6 @@ class TileImage extends UrlTile {
72
71
  super({
73
72
  attributions: options.attributions,
74
73
  cacheSize: options.cacheSize,
75
- opaque: options.opaque,
76
74
  projection: options.projection,
77
75
  state: options.state,
78
76
  tileGrid: options.tileGrid,
@@ -133,6 +131,7 @@ class TileImage extends UrlTile {
133
131
 
134
132
  /**
135
133
  * @return {boolean} Can expire cache.
134
+ * @override
136
135
  */
137
136
  canExpireCache() {
138
137
  if (this.tileCache.canExpireCache()) {
@@ -150,6 +149,7 @@ class TileImage extends UrlTile {
150
149
  /**
151
150
  * @param {import("../proj/Projection.js").default} projection Projection.
152
151
  * @param {!Object<string, boolean>} usedTiles Used tiles.
152
+ * @override
153
153
  */
154
154
  expireCache(projection, usedTiles) {
155
155
  const usedTileCache = this.getTileCacheForProjection(projection);
@@ -166,6 +166,7 @@ class TileImage extends UrlTile {
166
166
  /**
167
167
  * @param {import("../proj/Projection.js").default} projection Projection.
168
168
  * @return {number} Gutter.
169
+ * @override
169
170
  */
170
171
  getGutterForProjection(projection) {
171
172
  if (
@@ -188,6 +189,7 @@ class TileImage extends UrlTile {
188
189
  /**
189
190
  * Return the key to be used for all tiles in the source.
190
191
  * @return {string} The key for all tiles.
192
+ * @override
191
193
  */
192
194
  getKey() {
193
195
  let key = super.getKey();
@@ -197,24 +199,10 @@ class TileImage extends UrlTile {
197
199
  return key;
198
200
  }
199
201
 
200
- /**
201
- * @param {import("../proj/Projection.js").default} projection Projection.
202
- * @return {boolean} Opaque.
203
- */
204
- getOpaque(projection) {
205
- if (
206
- this.getProjection() &&
207
- projection &&
208
- !equivalent(this.getProjection(), projection)
209
- ) {
210
- return false;
211
- }
212
- return super.getOpaque(projection);
213
- }
214
-
215
202
  /**
216
203
  * @param {import("../proj/Projection.js").default} projection Projection.
217
204
  * @return {!import("../tilegrid/TileGrid.js").default} Tile grid.
205
+ * @override
218
206
  */
219
207
  getTileGridForProjection(projection) {
220
208
  const thisProj = this.getProjection();
@@ -232,6 +220,7 @@ class TileImage extends UrlTile {
232
220
  /**
233
221
  * @param {import("../proj/Projection.js").default} projection Projection.
234
222
  * @return {import("../TileCache.js").default} Tile cache.
223
+ * @override
235
224
  */
236
225
  getTileCacheForProjection(projection) {
237
226
  const thisProj = this.getProjection();
@@ -286,6 +275,7 @@ class TileImage extends UrlTile {
286
275
  * @param {number} pixelRatio Pixel ratio.
287
276
  * @param {import("../proj/Projection.js").default} projection Projection.
288
277
  * @return {!(ImageTile|ReprojTile)} Tile.
278
+ * @override
289
279
  */
290
280
  getTile(z, x, y, pixelRatio, projection) {
291
281
  const sourceProjection = this.getProjection();
@@ -337,8 +327,6 @@ class TileImage extends UrlTile {
337
327
  newTile.key = key;
338
328
 
339
329
  if (tile) {
340
- newTile.interimTile = tile;
341
- newTile.refreshInterimChain();
342
330
  cache.replace(tileCoordKey, newTile);
343
331
  } else {
344
332
  cache.set(tileCoordKey, newTile);
@@ -356,31 +344,18 @@ class TileImage extends UrlTile {
356
344
  * @protected
357
345
  */
358
346
  getTileInternal(z, x, y, pixelRatio, projection) {
359
- let tile = null;
360
347
  const tileCoordKey = getKeyZXY(z, x, y);
361
348
  const key = this.getKey();
362
349
  if (!this.tileCache.containsKey(tileCoordKey)) {
363
- tile = this.createTile_(z, x, y, pixelRatio, projection, key);
350
+ const tile = this.createTile_(z, x, y, pixelRatio, projection, key);
364
351
  this.tileCache.set(tileCoordKey, tile);
365
- } else {
366
- tile = this.tileCache.get(tileCoordKey);
367
- if (tile.key != key) {
368
- // The source's params changed. If the tile has an interim tile and if we
369
- // can use it then we use it. Otherwise we create a new tile. In both
370
- // cases we attempt to assign an interim tile to the new tile.
371
- const interimTile = tile;
372
- tile = this.createTile_(z, x, y, pixelRatio, projection, key);
352
+ return tile;
353
+ }
373
354
 
374
- //make the new tile the head of the list,
375
- if (interimTile.getState() == TileState.IDLE) {
376
- //the old tile hasn't begun loading yet, and is now outdated, so we can simply discard it
377
- tile.interimTile = interimTile.interimTile;
378
- } else {
379
- tile.interimTile = interimTile;
380
- }
381
- tile.refreshInterimChain();
382
- this.tileCache.replace(tileCoordKey, tile);
383
- }
355
+ let tile = this.tileCache.get(tileCoordKey);
356
+ if (tile.key != key) {
357
+ tile = this.createTile_(z, x, y, pixelRatio, projection, key);
358
+ this.tileCache.replace(tileCoordKey, tile);
384
359
  }
385
360
  return tile;
386
361
  }
@@ -423,6 +398,9 @@ class TileImage extends UrlTile {
423
398
  }
424
399
  }
425
400
 
401
+ /**
402
+ * @override
403
+ */
426
404
  clear() {
427
405
  super.clear();
428
406
  for (const id in this.tileCacheForProjection) {
@@ -59,7 +59,7 @@ export type Options = {
59
59
  */
60
60
  attributions?: import("./Source.js").AttributionLike | undefined;
61
61
  /**
62
- * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
62
+ * Deprecated. Use the cacheSize option on the layer instead.
63
63
  */
64
64
  cacheSize?: number | undefined;
65
65
  /**
@@ -140,7 +140,7 @@ export type Options = {
140
140
  /**
141
141
  * @typedef {Object} Options
142
142
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
143
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
143
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
144
144
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
145
145
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
146
146
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -1 +1 @@
1
- {"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyBc,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT3B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgDjB;IA/BC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,kBAAiC;IAuBnC;;;OAGG;IACH,mBAeC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,eAHY,MAAM,CAKjB;IAED;;;OAGG;IACH,2CAFW,MAAM,QAuChB;IAED;;OAEG;IACH,sCAEC;CACF;sBAvMqB,gBAAgB"}
1
+ {"version":3,"file":"TileJSON.d.ts","sourceRoot":"","sources":["TileJSON.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyBc,KAAK,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT3B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAgDjB;IA/BC;;;OAGG;IACH,kBAAqB;IAErB;;;OAGG;IACH,kBAAiC;IAuBnC;;;OAGG;IACH,mBAeC;IAED;;;OAGG;IACH,oBAEC;IAED;;;OAGG;IACH,eAHY,MAAM,CAKjB;IAED;;;OAGG;IACH,2CAFW,MAAM,QAuChB;IAED;;OAEG;IACH,sCAEC;CACF;sBAvMqB,gBAAgB"}
@@ -34,7 +34,7 @@ import {jsonp as requestJSONP} from '../net.js';
34
34
  /**
35
35
  * @typedef {Object} Options
36
36
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
37
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
37
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
38
38
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
39
39
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
40
40
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -9,7 +9,7 @@ export type Options = {
9
9
  */
10
10
  attributionsCollapsible?: boolean | undefined;
11
11
  /**
12
- * Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
12
+ * Deprecated. Use the cacheSize option on the layer instead.
13
13
  */
14
14
  cacheSize?: number | undefined;
15
15
  /**
@@ -116,7 +116,7 @@ export type Options = {
116
116
  * @typedef {Object} Options
117
117
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
118
118
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
119
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
119
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
120
120
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
121
121
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
122
122
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -1 +1 @@
1
- {"version":3,"file":"TileWMS.d.ts","sourceRoot":"","sources":["TileWMS.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwBqB,MAAM;;;;;;;;;;;;;;;;;;;;;iBAeb,OAAO,YAA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B;IAEhB;;;OAGG;IACH,oBAAqC;IAErC;;;OAGG;IACH,eAAgE;IAEhE;;;OAGG;IACH,mBAA+B;IAMjC;;;;;;;;;;;;;OAaG;IACH,8BAVW,OAAO,kBAAkB,EAAE,UAAU,cACrC,MAAM,cACN,OAAO,YAAY,EAAE,cAAc,UACnC,GAAO,GAIN,MAAM,GAAC,SAAS,CA6D3B;IAED;;;;;;;;;;;;;OAaG;IACH,6DAHY,MAAM,GAAC,SAAS,CAmC3B;IAUD;;;;;OAKG;IACH,iBAEC;IAED;;;;;;;;OAQG;IACH,uBAwBC;IAYD;;;OAGG;IACH,yBAOC;IAED;;;;OAIG;IACH,gCAIC;IAED;;OAEG;IACH,mBAGC;CA4CF;sBA/YqB,gBAAgB"}
package/source/TileWMS.js CHANGED
@@ -16,7 +16,7 @@ import {hash as tileCoordHash} from '../tilecoord.js';
16
16
  * @typedef {Object} Options
17
17
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
18
18
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
19
- * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least the number of tiles in the viewport.
19
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
20
20
  * @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
21
21
  * you must provide a `crossOrigin` value if you want to access pixel data with the Canvas renderer.
22
22
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
@@ -84,15 +84,12 @@ class TileWMS extends TileImage {
84
84
 
85
85
  const params = Object.assign({}, options.params);
86
86
 
87
- const transparent = 'TRANSPARENT' in params ? params['TRANSPARENT'] : true;
88
-
89
87
  super({
90
88
  attributions: options.attributions,
91
89
  attributionsCollapsible: options.attributionsCollapsible,
92
90
  cacheSize: options.cacheSize,
93
91
  crossOrigin: options.crossOrigin,
94
92
  interpolate: options.interpolate,
95
- opaque: !transparent,
96
93
  projection: options.projection,
97
94
  reprojectionErrorThreshold: options.reprojectionErrorThreshold,
98
95
  tileClass: options.tileClass,
@@ -269,6 +266,7 @@ class TileWMS extends TileImage {
269
266
 
270
267
  /**
271
268
  * @return {number} Gutter.
269
+ * @override
272
270
  */
273
271
  getGutter() {
274
272
  return this.gutter_;
@@ -323,6 +321,7 @@ class TileWMS extends TileImage {
323
321
  * Get the tile pixel ratio for this source.
324
322
  * @param {number} pixelRatio Pixel ratio.
325
323
  * @return {number} Tile pixel ratio.
324
+ * @override
326
325
  */
327
326
  getTilePixelRatio(pixelRatio) {
328
327
  return !this.hidpi_ || this.serverType_ === undefined ? 1 : pixelRatio;
@@ -169,7 +169,7 @@ import Tile from '../Tile.js';
169
169
  * Layer source for UTFGrid interaction data loaded from TileJSON format.
170
170
  * @api
171
171
  */
172
- declare class UTFGrid extends TileSource {
172
+ declare class UTFGrid extends TileSource<Tile> {
173
173
  /**
174
174
  * @param {Options} options Source options.
175
175
  */
@@ -239,15 +239,17 @@ declare class UTFGrid extends TileSource {
239
239
  * @param {number} pixelRatio Pixel ratio.
240
240
  * @param {import("../proj/Projection.js").default} projection Projection.
241
241
  * @return {!CustomTile} Tile.
242
+ * @override
242
243
  */
243
- getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): CustomTile;
244
+ override getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): CustomTile;
244
245
  /**
245
246
  * Marks a tile coord as being used, without triggering a load.
246
247
  * @param {number} z Tile coordinate z.
247
248
  * @param {number} x Tile coordinate x.
248
249
  * @param {number} y Tile coordinate y.
250
+ * @override
249
251
  */
250
- useTile(z: number, x: number, y: number): void;
252
+ override useTile(z: number, x: number, y: number): void;
251
253
  }
252
254
  import TileSource from './Tile.js';
253
255
  //# sourceMappingURL=UTFGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UTFGrid.d.ts","sourceRoot":"","sources":["UTFGrid.js"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAEH;IACE;;;;;;;OAOG;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