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/UTFGrid.js CHANGED
@@ -136,14 +136,9 @@ export class CustomTile extends Tile {
136
136
  forDataAtCoordinate(coordinate, callback, request) {
137
137
  if (this.state == TileState.EMPTY && request === true) {
138
138
  this.state = TileState.IDLE;
139
- listenOnce(
140
- this,
141
- EventType.CHANGE,
142
- function (e) {
143
- callback(this.getData(coordinate));
144
- },
145
- this,
146
- );
139
+ listenOnce(this, EventType.CHANGE, (e) => {
140
+ callback(this.getData(coordinate));
141
+ });
147
142
  this.loadInternal_();
148
143
  } else {
149
144
  if (request === true) {
@@ -159,6 +154,7 @@ export class CustomTile extends Tile {
159
154
  /**
160
155
  * Return the key to be used for all tiles in the source.
161
156
  * @return {string} The key for all tiles.
157
+ * @override
162
158
  */
163
159
  getKey() {
164
160
  return this.src_;
@@ -239,6 +235,7 @@ export class CustomTile extends Tile {
239
235
  }
240
236
 
241
237
  /**
238
+ * @override
242
239
  */
243
240
  load() {
244
241
  if (this.preemptive_) {
@@ -473,6 +470,7 @@ class UTFGrid extends TileSource {
473
470
  * @param {number} pixelRatio Pixel ratio.
474
471
  * @param {import("../proj/Projection.js").default} projection Projection.
475
472
  * @return {!CustomTile} Tile.
473
+ * @override
476
474
  */
477
475
  getTile(z, x, y, pixelRatio, projection) {
478
476
  const tileCoordKey = getKeyZXY(z, x, y);
@@ -502,6 +500,7 @@ class UTFGrid extends TileSource {
502
500
  * @param {number} z Tile coordinate z.
503
501
  * @param {number} x Tile coordinate x.
504
502
  * @param {number} y Tile coordinate y.
503
+ * @override
505
504
  */
506
505
  useTile(z, x, y) {
507
506
  const tileCoordKey = getKeyZXY(z, x, y);
@@ -9,13 +9,9 @@ export type Options = {
9
9
  */
10
10
  attributionsCollapsible?: boolean | undefined;
11
11
  /**
12
- * Cache size.
12
+ * Deprecated. Use the cacheSize option on the layer instead.
13
13
  */
14
14
  cacheSize?: number | undefined;
15
- /**
16
- * Whether the layer is opaque.
17
- */
18
- opaque?: boolean | undefined;
19
15
  /**
20
16
  * Projection.
21
17
  */
@@ -37,7 +33,8 @@ export type Options = {
37
33
  */
38
34
  tilePixelRatio?: number | undefined;
39
35
  /**
40
- * TileUrlFunction.
36
+ * Deprecated. Use an ImageTile source and provide a function
37
+ * for the url option instead.
41
38
  */
42
39
  tileUrlFunction?: import("../Tile.js").UrlFunction | undefined;
43
40
  /**
@@ -74,14 +71,14 @@ export type Options = {
74
71
  * @typedef {Object} Options
75
72
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
76
73
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
77
- * @property {number} [cacheSize] Cache size.
78
- * @property {boolean} [opaque=false] Whether the layer is opaque.
74
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
79
75
  * @property {import("../proj.js").ProjectionLike} [projection] Projection.
80
76
  * @property {import("./Source.js").State} [state] State.
81
77
  * @property {import("../tilegrid/TileGrid.js").default} [tileGrid] TileGrid.
82
78
  * @property {import("../Tile.js").LoadFunction} tileLoadFunction TileLoadFunction.
83
79
  * @property {number} [tilePixelRatio] TilePixelRatio.
84
- * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] TileUrlFunction.
80
+ * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
81
+ * for the url option instead.
85
82
  * @property {string} [url] Url.
86
83
  * @property {Array<string>} [urls] Urls.
87
84
  * @property {boolean} [wrapX=true] WrapX.
@@ -92,12 +89,11 @@ export type Options = {
92
89
  * the nearest neighbor is used when resampling.
93
90
  */
94
91
  /**
95
- * @classdesc
96
- * Base class for sources providing tiles divided into a tile grid over http.
92
+ * @deprecated Use the ol/source/ImageTile.js instead.
97
93
  *
98
94
  * @fires import("./Tile.js").TileSourceEvent
99
95
  */
100
- declare class UrlTile extends TileSource {
96
+ declare class UrlTile extends TileSource<import("../Tile.js").default> {
101
97
  /**
102
98
  * @param {Options} options Image tile options.
103
99
  */
@@ -130,18 +126,21 @@ declare class UrlTile extends TileSource {
130
126
  */
131
127
  private tileLoadingKeys_;
132
128
  /**
129
+ * Deprecated. Use an ImageTile source instead.
133
130
  * Return the tile load function of the source.
134
131
  * @return {import("../Tile.js").LoadFunction} TileLoadFunction
135
132
  * @api
136
133
  */
137
134
  getTileLoadFunction(): import("../Tile.js").LoadFunction;
138
135
  /**
136
+ * Deprecated. Use an ImageTile source instead.
139
137
  * Return the tile URL function of the source.
140
138
  * @return {import("../Tile.js").UrlFunction} TileUrlFunction
141
139
  * @api
142
140
  */
143
141
  getTileUrlFunction(): import("../Tile.js").UrlFunction;
144
142
  /**
143
+ * Deprecated. Use an ImageTile source instead.
145
144
  * Return the URLs used for this source.
146
145
  * When a tileUrlFunction is used instead of url or urls,
147
146
  * null will be returned.
@@ -156,12 +155,14 @@ declare class UrlTile extends TileSource {
156
155
  */
157
156
  protected handleTileChange(event: import("../events/Event.js").default): void;
158
157
  /**
158
+ * Deprecated. Use an ImageTile source instead.
159
159
  * Set the tile load function of the source.
160
160
  * @param {import("../Tile.js").LoadFunction} tileLoadFunction Tile load function.
161
161
  * @api
162
162
  */
163
163
  setTileLoadFunction(tileLoadFunction: import("../Tile.js").LoadFunction): void;
164
164
  /**
165
+ * Deprecated. Use an ImageTile source instead.
165
166
  * Set the tile URL function of the source.
166
167
  * @param {import("../Tile.js").UrlFunction} tileUrlFunction Tile URL function.
167
168
  * @param {string} [key] Optional new tile key for the source.
@@ -175,6 +176,7 @@ declare class UrlTile extends TileSource {
175
176
  */
176
177
  setUrl(url: string): void;
177
178
  /**
179
+ * Deprecated. Use an ImageTile source instead.
178
180
  * Set the URLs to use for requests.
179
181
  * @param {Array<string>} urls URLs.
180
182
  * @api
@@ -185,8 +187,9 @@ declare class UrlTile extends TileSource {
185
187
  * @param {number} z Tile coordinate z.
186
188
  * @param {number} x Tile coordinate x.
187
189
  * @param {number} y Tile coordinate y.
190
+ * @override
188
191
  */
189
- useTile(z: number, x: number, y: number): void;
192
+ override useTile(z: number, x: number, y: number): void;
190
193
  }
191
194
  import TileSource from './Tile.js';
192
195
  //# sourceMappingURL=UrlTile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UrlTile.d.ts","sourceRoot":"","sources":["UrlTile.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;iBAgBc,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;sBAGnC,OAAO,YAAY,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT/C;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqDjB;IAlCC;;;OAGG;IACH,iCAC4D;IAE5D;;;OAGG;IACH,4BAFU,OAAO,YAAY,EAAE,YAAY,CAEK;IAwIlD;;;;;OAKG;IACH,2BALW,OAAO,iBAAiB,EAAE,SAAS,cACnC,MAAM,cACN,OAAO,uBAAuB,EAAE,OAAO,GACtC,MAAM,GAAC,SAAS,CAI3B;IA1I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OAGG;IACH,yBAA0B;IAG5B;;;;;OAKG;IACH,uBAHY,OAAO,YAAY,EAAE,YAAY,CAK5C;IAED;;;;;OAKG;IACH,sBAHY,OAAO,YAAY,EAAE,WAAW,CAO3C;IAED;;;;;;;OAOG;IACH,WAHa,KAAK,CAAC,MAAM,CAAC,GAAC,IAAI,CAK9B;IAED;;;;OAIG;IACH,kCAHW,OAAO,oBAAoB,EAAE,OAAO,QAuB9C;IAED;;;;;OAKG;IACH,sCAHW,OAAO,YAAY,EAAE,YAAY,QAO3C;IAED;;;;;;OAMG;IACH,oCAJW,OAAO,YAAY,EAAE,WAAW,kCAY1C;IAED;;;;OAIG;IACH,YAHW,MAAM,QAOhB;IAED;;;;;OAKG;IACH,cAHW,KAAK,CAAC,MAAM,CAAC,QAWvB;IAYD;;;;;;OAMG;IACH,oBALW,MAAM,KACN,MAAM,KACN,MAAM,QAQhB;CACF;uBAtOyC,WAAW"}
package/source/UrlTile.js CHANGED
@@ -4,7 +4,8 @@
4
4
  import TileEventType from './TileEventType.js';
5
5
  import TileSource, {TileSourceEvent} from './Tile.js';
6
6
  import TileState from '../TileState.js';
7
- import {createFromTemplates, expandUrl} from '../tileurlfunction.js';
7
+ import {createFromTemplates} from '../tileurlfunction.js';
8
+ import {expandUrl} from '../uri.js';
8
9
  import {getKeyZXY} from '../tilecoord.js';
9
10
  import {getUid} from '../util.js';
10
11
 
@@ -12,14 +13,14 @@ import {getUid} from '../util.js';
12
13
  * @typedef {Object} Options
13
14
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
14
15
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
15
- * @property {number} [cacheSize] Cache size.
16
- * @property {boolean} [opaque=false] Whether the layer is opaque.
16
+ * @property {number} [cacheSize] Deprecated. Use the cacheSize option on the layer instead.
17
17
  * @property {import("../proj.js").ProjectionLike} [projection] Projection.
18
18
  * @property {import("./Source.js").State} [state] State.
19
19
  * @property {import("../tilegrid/TileGrid.js").default} [tileGrid] TileGrid.
20
20
  * @property {import("../Tile.js").LoadFunction} tileLoadFunction TileLoadFunction.
21
21
  * @property {number} [tilePixelRatio] TilePixelRatio.
22
- * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] TileUrlFunction.
22
+ * @property {import("../Tile.js").UrlFunction} [tileUrlFunction] Deprecated. Use an ImageTile source and provide a function
23
+ * for the url option instead.
23
24
  * @property {string} [url] Url.
24
25
  * @property {Array<string>} [urls] Urls.
25
26
  * @property {boolean} [wrapX=true] WrapX.
@@ -31,8 +32,7 @@ import {getUid} from '../util.js';
31
32
  */
32
33
 
33
34
  /**
34
- * @classdesc
35
- * Base class for sources providing tiles divided into a tile grid over http.
35
+ * @deprecated Use the ol/source/ImageTile.js instead.
36
36
  *
37
37
  * @fires import("./Tile.js").TileSourceEvent
38
38
  */
@@ -44,7 +44,6 @@ class UrlTile extends TileSource {
44
44
  super({
45
45
  attributions: options.attributions,
46
46
  cacheSize: options.cacheSize,
47
- opaque: options.opaque,
48
47
  projection: options.projection,
49
48
  state: options.state,
50
49
  tileGrid: options.tileGrid,
@@ -94,6 +93,7 @@ class UrlTile extends TileSource {
94
93
  }
95
94
 
96
95
  /**
96
+ * Deprecated. Use an ImageTile source instead.
97
97
  * Return the tile load function of the source.
98
98
  * @return {import("../Tile.js").LoadFunction} TileLoadFunction
99
99
  * @api
@@ -103,6 +103,7 @@ class UrlTile extends TileSource {
103
103
  }
104
104
 
105
105
  /**
106
+ * Deprecated. Use an ImageTile source instead.
106
107
  * Return the tile URL function of the source.
107
108
  * @return {import("../Tile.js").UrlFunction} TileUrlFunction
108
109
  * @api
@@ -114,6 +115,7 @@ class UrlTile extends TileSource {
114
115
  }
115
116
 
116
117
  /**
118
+ * Deprecated. Use an ImageTile source instead.
117
119
  * Return the URLs used for this source.
118
120
  * When a tileUrlFunction is used instead of url or urls,
119
121
  * null will be returned.
@@ -152,6 +154,7 @@ class UrlTile extends TileSource {
152
154
  }
153
155
 
154
156
  /**
157
+ * Deprecated. Use an ImageTile source instead.
155
158
  * Set the tile load function of the source.
156
159
  * @param {import("../Tile.js").LoadFunction} tileLoadFunction Tile load function.
157
160
  * @api
@@ -163,6 +166,7 @@ class UrlTile extends TileSource {
163
166
  }
164
167
 
165
168
  /**
169
+ * Deprecated. Use an ImageTile source instead.
166
170
  * Set the tile URL function of the source.
167
171
  * @param {import("../Tile.js").UrlFunction} tileUrlFunction Tile URL function.
168
172
  * @param {string} [key] Optional new tile key for the source.
@@ -190,6 +194,7 @@ class UrlTile extends TileSource {
190
194
  }
191
195
 
192
196
  /**
197
+ * Deprecated. Use an ImageTile source instead.
193
198
  * Set the URLs to use for requests.
194
199
  * @param {Array<string>} urls URLs.
195
200
  * @api
@@ -219,6 +224,7 @@ class UrlTile extends TileSource {
219
224
  * @param {number} z Tile coordinate z.
220
225
  * @param {number} x Tile coordinate x.
221
226
  * @param {number} y Tile coordinate y.
227
+ * @override
222
228
  */
223
229
  useTile(z, x, y) {
224
230
  const tileCoordKey = getKeyZXY(z, x, y);
@@ -10,27 +10,27 @@
10
10
  * @classdesc
11
11
  * Events emitted by {@link module:ol/source/Vector~VectorSource} instances are instances of this
12
12
  * type.
13
- * @template {import("../Feature.js").FeatureLike} [FeatureClass=import("../Feature.js").default]
13
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
14
14
  */
15
- export class VectorSourceEvent<FeatureClass extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>> extends Event {
15
+ export class VectorSourceEvent<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>> extends Event {
16
16
  /**
17
17
  * @param {string} type Type.
18
- * @param {FeatureClass} [feature] Feature.
19
- * @param {Array<FeatureClass>} [features] Features.
18
+ * @param {FeatureType} [feature] Feature.
19
+ * @param {Array<FeatureType>} [features] Features.
20
20
  */
21
- constructor(type: string, feature?: FeatureClass | undefined, features?: FeatureClass[] | undefined);
21
+ constructor(type: string, feature?: FeatureType | undefined, features?: FeatureType[] | undefined);
22
22
  /**
23
23
  * The added or removed feature for the `ADDFEATURE` and `REMOVEFEATURE` events, `undefined` otherwise.
24
- * @type {FeatureClass|undefined}
24
+ * @type {FeatureType|undefined}
25
25
  * @api
26
26
  */
27
- feature: FeatureClass | undefined;
27
+ feature: FeatureType | undefined;
28
28
  /**
29
29
  * The loaded features for the `FEATURESLOADED` event, `undefined` otherwise.
30
- * @type {Array<FeatureClass>|undefined}
30
+ * @type {Array<FeatureType>|undefined}
31
31
  * @api
32
32
  */
33
- features: Array<FeatureClass> | undefined;
33
+ features: Array<FeatureType> | undefined;
34
34
  }
35
35
  export default VectorSource;
36
36
  /**
@@ -47,7 +47,7 @@ export type FeatureClassOrArrayOfRenderFeatures<T extends import("../Feature.js"
47
47
  * *
48
48
  */
49
49
  export type VectorSourceOnSignature<Return, FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>> = import("../Observable").OnSignature<import("../Observable").EventTypes, import("../events/Event.js").default, Return> & import("../Observable").OnSignature<import("../ObjectEventType").Types, import("../Object").ObjectEvent, Return> & import("../Observable").OnSignature<import("./VectorEventType").VectorSourceEventTypes, VectorSourceEvent<FeatureType>, Return> & import("../Observable").CombinedOnSignature<import("../Observable").EventTypes | import("../ObjectEventType").Types | import("./VectorEventType").VectorSourceEventTypes, Return>;
50
- export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
50
+ export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom.js").Geometry>> = {
51
51
  /**
52
52
  * Attributions.
53
53
  */
@@ -61,7 +61,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
61
61
  * The feature format used by the XHR
62
62
  * feature loader when `url` is set. Required if `url` is set, otherwise ignored.
63
63
  */
64
- format?: import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>> | undefined;
64
+ format?: import("../format/Feature.js").default<FeatureType> | undefined;
65
65
  /**
66
66
  * The loader function used to load features, from a remote source for example.
67
67
  * If this is not set and `url` is set, the source will create and use an XHR
@@ -174,13 +174,13 @@ import Event from '../events/Event.js';
174
174
  * import("./VectorEventType").VectorSourceEventTypes, Return>} VectorSourceOnSignature
175
175
  */
176
176
  /**
177
- * @template {import("../Feature.js").FeatureLike} FeatureType
177
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
178
178
  * @typedef {Object} Options
179
179
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
180
180
  * @property {Array<FeatureType>|Collection<FeatureType>} [features]
181
181
  * Features. If provided as {@link module:ol/Collection~Collection}, the features in the source
182
182
  * and the collection will stay in sync.
183
- * @property {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>} [format] The feature format used by the XHR
183
+ * @property {import("../format/Feature.js").default<FeatureType>} [format] The feature format used by the XHR
184
184
  * feature loader when `url` is set. Required if `url` is set, otherwise ignored.
185
185
  * @property {import("../featureloader.js").FeatureLoader<FeatureType>} [loader]
186
186
  * The loader function used to load features, from a remote source for example.
@@ -299,7 +299,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
299
299
  private loader_;
300
300
  /**
301
301
  * @private
302
- * @type {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined}
302
+ * @type {import("../format/Feature.js").default<FeatureType>|null}
303
303
  */
304
304
  private format_;
305
305
  /**
@@ -365,7 +365,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
365
365
  * instead. A feature will not be added to the source if feature with
366
366
  * the same id is already there. The reason for this behavior is to avoid
367
367
  * feature duplication when using bbox or tile loading strategies.
368
- * Note: this also applies if an {@link module:ol/Collection~Collection} is used for features,
368
+ * Note: this also applies if a {@link module:ol/Collection~Collection} is used for features,
369
369
  * meaning that if a feature with a duplicate id is added in the collection, it will
370
370
  * be removed from it right away.
371
371
  * @param {FeatureType} feature Feature to add.
@@ -443,7 +443,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
443
443
  * @return {T|undefined} The return value from the last call to the callback.
444
444
  * @template T
445
445
  */
446
- forEachFeatureAtCoordinateDirect<T_1>(coordinate: import("../coordinate.js").Coordinate, callback: (arg0: FeatureType) => T_1): T_1 | undefined;
446
+ forEachFeatureAtCoordinateDirect<T>(coordinate: import("../coordinate.js").Coordinate, callback: (arg0: FeatureType) => T): T | undefined;
447
447
  /**
448
448
  * Iterate through all features whose bounding box intersects the provided
449
449
  * extent (note that the feature's geometry may not intersect the extent),
@@ -463,7 +463,7 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
463
463
  * @template T
464
464
  * @api
465
465
  */
466
- forEachFeatureInExtent<T_2>(extent: import("../extent.js").Extent, callback: (arg0: FeatureType) => T_2): T_2 | undefined;
466
+ forEachFeatureInExtent<T>(extent: import("../extent.js").Extent, callback: (arg0: FeatureType) => T): T | undefined;
467
467
  /**
468
468
  * Iterate through all features whose geometry intersects the provided extent,
469
469
  * calling the callback with each feature. If the callback returns a "truthy"
@@ -479,11 +479,11 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
479
479
  * @template T
480
480
  * @api
481
481
  */
482
- forEachFeatureIntersectingExtent<T_3>(extent: import("../extent.js").Extent, callback: (arg0: FeatureType) => T_3): T_3 | undefined;
482
+ forEachFeatureIntersectingExtent<T>(extent: import("../extent.js").Extent, callback: (arg0: FeatureType) => T): T | undefined;
483
483
  /**
484
484
  * Get the features collection associated with this source. Will be `null`
485
485
  * unless the source was configured with `useSpatialIndex` set to `false`, or
486
- * with an {@link module:ol/Collection~Collection} as `features`.
486
+ * with a {@link module:ol/Collection~Collection} as `features`.
487
487
  * @return {Collection<FeatureType>|null} The collection of features.
488
488
  * @api
489
489
  */
@@ -565,10 +565,10 @@ declare class VectorSource<FeatureType extends import("../Feature.js").FeatureLi
565
565
  /**
566
566
  * Get the format associated with this source.
567
567
  *
568
- * @return {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined} The feature format.
568
+ * @return {import("../format/Feature.js").default<FeatureType>|null}} The feature format.
569
569
  * @api
570
570
  */
571
- getFormat(): import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>> | undefined;
571
+ getFormat(): import("../format/Feature.js").default<FeatureType> | null;
572
572
  /**
573
573
  * @return {boolean} The source can have overlapping geometries.
574
574
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["Vector.js"],"names":[],"mappings":"AAuBA;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;;;OAIG;IACH,kBAJW,MAAM,6EAoBhB;IAbC;;;;OAIG;IACH,SAHU,YAAY,GAAC,SAAS,CAGV;IAEtB;;;;OAIG;IACH,UAHU,MAAM,YAAY,CAAC,GAAC,SAAS,CAGf;CAE3B;;;;;;;qCAjCqB,OAAO,cAAc,EAAE,MAAM,QAAE,MAAM,QAAE,OAAO,uBAAuB,EAAE,OAAO,KAAG,MAAM,OAAO,cAAc,EAAE,MAAM,CAAC;;;;kKAqC9H,CAAC,SAAS,aAAa,GAAG,CAAC,GAAC,MAAM,CAAC,CAAC,GAAG,CAAC;;;;wKAMxC,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,mBAAmB,EAAE,sBAAsB,EAAE,kBAAkB,WAAW,CAAC,EAAE,MAAM,CAAC,GACnI,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,OAAa,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,C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D;;;;OAIG;IACH,2BAHW,OAAO,cAAc,EAAE,MAAM,QAevC;IAED;;;;;;OAMG;IACH,yBAHW,KAAK,CAAC,WAAW,CAAC,QAW5B;IAED;;;;;;OAMG;IACH,uBAHW,WAAW,QAWrB;IAED;;;;;OAKG;IACH,yCAJW,WAAW,GACV,OAAO,CAyClB;IAED;;;;;OAKG;IACH,2BAOC;IAED;;;;;OAKG;IACH,kBAHW,OAAO,qBAAqB,EAAE,aAAa,CAAC,WAAW,CAAC,QAKlE;IAED;;;;OAIG;IACH,YAHW,MAAM,GAAC,OAAO,qBAAqB,EAAE,kBAAkB,QAOjE;CACF;0BAxpCyB,sBAAsB;uBANzB,kBAAkB;mBAOtB,aAAa"}
package/source/Vector.js CHANGED
@@ -34,27 +34,27 @@ import {xhr} from '../featureloader.js';
34
34
  * @classdesc
35
35
  * Events emitted by {@link module:ol/source/Vector~VectorSource} instances are instances of this
36
36
  * type.
37
- * @template {import("../Feature.js").FeatureLike} [FeatureClass=import("../Feature.js").default]
37
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
38
38
  */
39
39
  export class VectorSourceEvent extends Event {
40
40
  /**
41
41
  * @param {string} type Type.
42
- * @param {FeatureClass} [feature] Feature.
43
- * @param {Array<FeatureClass>} [features] Features.
42
+ * @param {FeatureType} [feature] Feature.
43
+ * @param {Array<FeatureType>} [features] Features.
44
44
  */
45
45
  constructor(type, feature, features) {
46
46
  super(type);
47
47
 
48
48
  /**
49
49
  * The added or removed feature for the `ADDFEATURE` and `REMOVEFEATURE` events, `undefined` otherwise.
50
- * @type {FeatureClass|undefined}
50
+ * @type {FeatureType|undefined}
51
51
  * @api
52
52
  */
53
53
  this.feature = feature;
54
54
 
55
55
  /**
56
56
  * The loaded features for the `FEATURESLOADED` event, `undefined` otherwise.
57
- * @type {Array<FeatureClass>|undefined}
57
+ * @type {Array<FeatureType>|undefined}
58
58
  * @api
59
59
  */
60
60
  this.features = features;
@@ -77,13 +77,13 @@ export class VectorSourceEvent extends Event {
77
77
  */
78
78
 
79
79
  /**
80
- * @template {import("../Feature.js").FeatureLike} FeatureType
80
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
81
81
  * @typedef {Object} Options
82
82
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
83
83
  * @property {Array<FeatureType>|Collection<FeatureType>} [features]
84
84
  * Features. If provided as {@link module:ol/Collection~Collection}, the features in the source
85
85
  * and the collection will stay in sync.
86
- * @property {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>} [format] The feature format used by the XHR
86
+ * @property {import("../format/Feature.js").default<FeatureType>} [format] The feature format used by the XHR
87
87
  * feature loader when `url` is set. Required if `url` is set, otherwise ignored.
88
88
  * @property {import("../featureloader.js").FeatureLoader<FeatureType>} [loader]
89
89
  * The loader function used to load features, from a remote source for example.
@@ -217,9 +217,9 @@ class VectorSource extends Source {
217
217
 
218
218
  /**
219
219
  * @private
220
- * @type {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined}
220
+ * @type {import("../format/Feature.js").default<FeatureType>|null}
221
221
  */
222
- this.format_ = options.format;
222
+ this.format_ = options.format || null;
223
223
 
224
224
  /**
225
225
  * @private
@@ -328,7 +328,7 @@ class VectorSource extends Source {
328
328
  * instead. A feature will not be added to the source if feature with
329
329
  * the same id is already there. The reason for this behavior is to avoid
330
330
  * feature duplication when using bbox or tile loading strategies.
331
- * Note: this also applies if an {@link module:ol/Collection~Collection} is used for features,
331
+ * Note: this also applies if a {@link module:ol/Collection~Collection} is used for features,
332
332
  * meaning that if a feature with a duplicate id is added in the collection, it will
333
333
  * be removed from it right away.
334
334
  * @param {FeatureType} feature Feature to add.
@@ -448,7 +448,7 @@ class VectorSource extends Source {
448
448
  const extents = [];
449
449
  /** @type {Array<FeatureType>} */
450
450
  const newFeatures = [];
451
- /** @type Array<FeatureType> */
451
+ /** @type {Array<FeatureType>} */
452
452
  const geometryFeatures = [];
453
453
 
454
454
  for (let i = 0, length = features.length; i < length; i++) {
@@ -706,7 +706,7 @@ class VectorSource extends Source {
706
706
  /**
707
707
  * Get the features collection associated with this source. Will be `null`
708
708
  * unless the source was configured with `useSpatialIndex` set to `false`, or
709
- * with an {@link module:ol/Collection~Collection} as `features`.
709
+ * with a {@link module:ol/Collection~Collection} as `features`.
710
710
  * @return {Collection<FeatureType>|null} The collection of features.
711
711
  * @api
712
712
  */
@@ -889,7 +889,7 @@ class VectorSource extends Source {
889
889
  /**
890
890
  * Get the format associated with this source.
891
891
  *
892
- * @return {import("../format/Feature.js").default<import('../format/Feature.js').FeatureToFeatureClass<FeatureType>>|undefined} The feature format.
892
+ * @return {import("../format/Feature.js").default<FeatureType>|null}} The feature format.
893
893
  * @api
894
894
  */
895
895
  getFormat() {
@@ -1041,6 +1041,9 @@ class VectorSource extends Source {
1041
1041
  this.loader_.length < 4 ? false : this.loadingExtentsCount_ > 0;
1042
1042
  }
1043
1043
 
1044
+ /**
1045
+ * @override
1046
+ */
1044
1047
  refresh() {
1045
1048
  this.clear(true);
1046
1049
  this.loadedExtentsRtree_.clear();
@@ -8,5 +8,5 @@ declare namespace _default {
8
8
  let FEATURESLOADERROR: string;
9
9
  }
10
10
  export default _default;
11
- export type VectorSourceEventTypes = 'addfeature' | 'changefeature' | 'clear' | 'removefeature' | 'featuresloadstart' | 'featuresloadend' | 'featuresloaderror';
11
+ export type VectorSourceEventTypes = "addfeature" | "changefeature" | "clear" | "removefeature" | "featuresloadstart" | "featuresloadend" | "featuresloaderror";
12
12
  //# sourceMappingURL=VectorEventType.d.ts.map
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * Sets the loader for a tile.
3
- * @param {import("../VectorTile.js").default} tile Vector tile.
3
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
4
+ * @param {import("../VectorTile.js").default<FeatureType>} tile Vector tile.
4
5
  * @param {string} url URL.
5
6
  */
6
- export function defaultLoadFunction(tile: import("../VectorTile.js").default, url: string): void;
7
+ export function defaultLoadFunction<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default>(tile: import("../VectorTile.js").default<FeatureType>, url: string): void;
7
8
  export default VectorTile;
8
- export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
9
+ export type Options<FeatureType extends import("../Feature.js").FeatureLike = import("../render/Feature.js").default> = {
9
10
  /**
10
11
  * Attributions.
11
12
  */
@@ -25,7 +26,7 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
25
26
  /**
26
27
  * Feature format for tiles. Used and required by the default.
27
28
  */
28
- format?: import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>> | undefined;
29
+ format?: import("../format/Feature.js").default<FeatureType> | undefined;
29
30
  /**
30
31
  * This source may have overlapping geometries. Setting this
31
32
  * to `false` (e.g. for sources with polygons that represent administrative
@@ -130,13 +131,13 @@ export type Options<FeatureType extends import("../Feature.js").FeatureLike> = {
130
131
  zDirection?: number | import("../array.js").NearestDirectionFunction | undefined;
131
132
  };
132
133
  /**
133
- * @template {import("../Feature.js").FeatureLike} FeatureType
134
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../render/Feature.js").default]
134
135
  * @typedef {Object} Options
135
136
  * @property {import("./Source.js").AttributionLike} [attributions] Attributions.
136
137
  * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible.
137
138
  * @property {number} [cacheSize] Initial tile cache size. Will auto-grow to hold at least twice the number of tiles in the viewport.
138
139
  * @property {import("../extent.js").Extent} [extent] Extent.
139
- * @property {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>} [format] Feature format for tiles. Used and required by the default.
140
+ * @property {import("../format/Feature.js").default<FeatureType>} [format] Feature format for tiles. Used and required by the default.
140
141
  * @property {boolean} [overlaps=true] This source may have overlapping geometries. Setting this
141
142
  * to `false` (e.g. for sources with polygons that represent administrative
142
143
  * boundaries or TopoJSON sources) allows the renderer to optimise fill and
@@ -215,14 +216,14 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
215
216
  constructor(options: Options<FeatureType>);
216
217
  /**
217
218
  * @private
218
- * @type {import("../format/Feature.js").default<import("../format/Feature.js").FeatureToFeatureClass<FeatureType>>|null}
219
+ * @type {import("../format/Feature.js").default<FeatureType>|null}
219
220
  */
220
221
  private format_;
221
222
  /**
222
223
  * @private
223
224
  * @type {TileCache}
224
225
  */
225
- private sourceTileCache;
226
+ private sourceTileCache_;
226
227
  /**
227
228
  * @private
228
229
  * @type {boolean}
@@ -232,25 +233,12 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
232
233
  * @protected
233
234
  * @type {typeof import("../VectorTile.js").default}
234
235
  */
235
- protected tileClass: typeof import("../VectorTile.js").default;
236
+ protected tileClass: typeof Tile;
236
237
  /**
237
238
  * @private
238
239
  * @type {Object<string, import("../tilegrid/TileGrid.js").default>}
239
240
  */
240
241
  private tileGrids_;
241
- /**
242
- * Get features whose bounding box intersects the provided extent. Only features for cached
243
- * tiles for the last rendered zoom level are available in the source. So this method is only
244
- * suitable for requesting tiles for extents that are currently rendered.
245
- *
246
- * Features are returned in random tile order and as they are included in the tiles. This means
247
- * they can be clipped, duplicated across tiles, and simplified to the render resolution.
248
- *
249
- * @param {import("../extent.js").Extent} extent Extent.
250
- * @return {Array<FeatureType>} Features.
251
- * @api
252
- */
253
- getFeaturesInExtent(extent: import("../extent.js").Extent): Array<FeatureType>;
254
242
  /**
255
243
  * @return {boolean} The source can have overlapping geometries.
256
244
  */
@@ -261,7 +249,7 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
261
249
  * @param {VectorRenderTile} tile Vector image tile.
262
250
  * @return {Array<import("../VectorTile").default>} Tile keys.
263
251
  */
264
- getSourceTiles(pixelRatio: number, projection: import("../proj/Projection").default, tile: VectorRenderTile): Array<import("../VectorTile").default>;
252
+ getSourceTiles(pixelRatio: number, projection: import("../proj/Projection").default, tile: VectorRenderTile): Array<Tile<any>>;
265
253
  /**
266
254
  * @param {number} z Tile coordinate z.
267
255
  * @param {number} x Tile coordinate x.
@@ -269,8 +257,9 @@ declare class VectorTile<FeatureType extends import("../Feature.js").FeatureLike
269
257
  * @param {number} pixelRatio Pixel ratio.
270
258
  * @param {import("../proj/Projection.js").default} projection Projection.
271
259
  * @return {!VectorRenderTile} Tile.
260
+ * @override
272
261
  */
273
- getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): VectorRenderTile;
262
+ override getTile(z: number, x: number, y: number, pixelRatio: number, projection: import("../proj/Projection.js").default): VectorRenderTile;
274
263
  }
275
264
  import Tile from '../VectorTile.js';
276
265
  import TileGrid from '../tilegrid/TileGrid.js';