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/format/GML3.js CHANGED
@@ -371,14 +371,11 @@ class GML3 extends GMLBase {
371
371
  }
372
372
  const context = objectStack[0];
373
373
  const containerSrs = context['srsName'];
374
- let axisOrientation = 'enu';
375
- if (containerSrs) {
376
- const proj = getProjection(containerSrs);
377
- axisOrientation = proj.getAxisOrientation();
378
- }
374
+ const axisOrientation = containerSrs
375
+ ? getProjection(containerSrs).getAxisOrientation()
376
+ : 'enu';
379
377
  if (axisOrientation === 'neu') {
380
- let i, ii;
381
- for (i = 0, ii = flatCoordinates.length; i < ii; i += 3) {
378
+ for (let i = 0, ii = flatCoordinates.length; i < ii; i += 3) {
382
379
  const y = flatCoordinates[i];
383
380
  const x = flatCoordinates[i + 1];
384
381
  flatCoordinates[i] = x;
@@ -405,11 +402,9 @@ class GML3 extends GMLBase {
405
402
  const context = objectStack[0];
406
403
  const containerSrs = context['srsName'];
407
404
  const contextDimension = context['srsDimension'];
408
- let axisOrientation = 'enu';
409
- if (containerSrs) {
410
- const proj = getProjection(containerSrs);
411
- axisOrientation = proj.getAxisOrientation();
412
- }
405
+ const axisOrientation = containerSrs
406
+ ? getProjection(containerSrs).getAxisOrientation()
407
+ : 'enu';
413
408
  const coords = s.split(/\s+/);
414
409
  // The "dimension" attribute is from the GML 3.0.1 spec.
415
410
  let dim = 2;
@@ -426,13 +421,14 @@ class GML3 extends GMLBase {
426
421
  } else if (contextDimension) {
427
422
  dim = readNonNegativeIntegerString(contextDimension);
428
423
  }
424
+ const asXYZ = axisOrientation.startsWith('en');
429
425
  let x, y, z;
430
426
  const flatCoordinates = [];
431
427
  for (let i = 0, ii = coords.length; i < ii; i += dim) {
432
428
  x = parseFloat(coords[i]);
433
429
  y = parseFloat(coords[i + 1]);
434
430
  z = dim === 3 ? parseFloat(coords[i + 2]) : 0;
435
- if (axisOrientation.substr(0, 2) === 'en') {
431
+ if (asXYZ) {
436
432
  flatCoordinates.push(x, y, z);
437
433
  } else {
438
434
  flatCoordinates.push(y, x, z);
@@ -453,18 +449,14 @@ class GML3 extends GMLBase {
453
449
  const srsDimension = hasZ ? '3' : '2';
454
450
  node.setAttribute('srsDimension', srsDimension);
455
451
  const srsName = context['srsName'];
456
- let axisOrientation = 'enu';
457
- if (srsName) {
458
- axisOrientation = getProjection(srsName).getAxisOrientation();
459
- }
452
+ const axisOrientation = srsName
453
+ ? getProjection(srsName).getAxisOrientation()
454
+ : 'enu';
460
455
  const point = value.getCoordinates();
461
- let coords;
462
456
  // only 2d for simple features profile
463
- if (axisOrientation.substr(0, 2) === 'en') {
464
- coords = point[0] + ' ' + point[1];
465
- } else {
466
- coords = point[1] + ' ' + point[0];
467
- }
457
+ let coords = axisOrientation.startsWith('en')
458
+ ? point[0] + ' ' + point[1]
459
+ : point[1] + ' ' + point[0];
468
460
  if (hasZ) {
469
461
  // For newly created points, Z can be undefined.
470
462
  const z = point[2] || 0;
@@ -481,14 +473,12 @@ class GML3 extends GMLBase {
481
473
  * @private
482
474
  */
483
475
  getCoords_(point, srsName, hasZ) {
484
- let axisOrientation = 'enu';
485
- if (srsName) {
486
- axisOrientation = getProjection(srsName).getAxisOrientation();
487
- }
488
- let coords =
489
- axisOrientation.substr(0, 2) === 'en'
490
- ? point[0] + ' ' + point[1]
491
- : point[1] + ' ' + point[0];
476
+ const axisOrientation = srsName
477
+ ? getProjection(srsName).getAxisOrientation()
478
+ : 'enu';
479
+ let coords = axisOrientation.startsWith('en')
480
+ ? point[0] + ' ' + point[1]
481
+ : point[1] + ' ' + point[0];
492
482
  if (hasZ) {
493
483
  // For newly created points, Z can be undefined.
494
484
  const z = point[2] || 0;
@@ -980,6 +970,7 @@ class GML3 extends GMLBase {
980
970
  * @param {import("./Feature.js").WriteOptions} [options] Options.
981
971
  * @return {Node} Node.
982
972
  * @api
973
+ * @override
983
974
  */
984
975
  writeGeometryNode(geometry, options) {
985
976
  options = this.adaptOptions(options);
@@ -1007,6 +998,7 @@ class GML3 extends GMLBase {
1007
998
  * @param {import("./Feature.js").WriteOptions} [options] Options.
1008
999
  * @return {Element} Node.
1009
1000
  * @api
1001
+ * @override
1010
1002
  */
1011
1003
  writeFeaturesNode(features, options) {
1012
1004
  options = this.adaptOptions(options);
@@ -1 +1 @@
1
- {"version":3,"file":"GML32.d.ts","sourceRoot":"","sources":["GML32.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;CA8BC;iBA7CgB,WAAW"}
1
+ {"version":3,"file":"GML32.d.ts","sourceRoot":"","sources":["GML32.js"],"names":[],"mappings":";AAcA;;;;GAIG;AACH;CA+BC;iBA9CgB,WAAW"}
package/format/GML32.js CHANGED
@@ -38,6 +38,7 @@ class GML32 extends GML3 {
38
38
  * @param {Node} node Node.
39
39
  * @param {import("../geom/Geometry.js").default|import("../extent.js").Extent} geometry Geometry.
40
40
  * @param {Array<*>} objectStack Node stack.
41
+ * @override
41
42
  */
42
43
  writeGeometryElement(node, geometry, objectStack) {
43
44
  const context = objectStack[objectStack.length - 1];
@@ -1 +1 @@
1
-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E,MAAM;SAAC;KAAC,CAE1B;IAM1C;;;OAGG;IACH,uBAFU;YAAO,MAAM,GAAE;gBAAO,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;SAAC;KAAC,CAE7B;IAMvC;;;OAGG;IACH,cAFU;YAAO,MAAM,GAAE;gBAAO,MAAM,GAAE,OAAO,WAAW,EAAE,MAAM;SAAC;KAAC,CAEtC;CAnG7B;uBAvjBsB,iBAAiB;oBATpB,eAAe;kBAOjB,kBAAkB;uBAFb,uBAAuB;4BADlB,4BAA4B;yBAE/B,yBAAyB;uBAJ3B,uBAAuB;uBACvB,uBAAuB;oBAK1B,oBAAoB"}
package/format/GMLBase.js CHANGED
@@ -541,6 +541,7 @@ class GMLBase extends XMLFeature {
541
541
  * @param {import("./Feature.js").ReadOptions} [options] Options.
542
542
  * @protected
543
543
  * @return {import("../geom/Geometry.js").default} Geometry.
544
+ * @override
544
545
  */
545
546
  readGeometryFromNode(node, options) {
546
547
  const geometry = this.readGeometryElement(node, [
@@ -553,6 +554,7 @@ class GMLBase extends XMLFeature {
553
554
  * @param {Element} node Node.
554
555
  * @param {import("./Feature.js").ReadOptions} [options] Options.
555
556
  * @return {Array<import("../Feature.js").default>} Features.
557
+ * @override
556
558
  */
557
559
  readFeaturesFromNode(node, options) {
558
560
  const internalOptions = {
@@ -569,6 +571,7 @@ class GMLBase extends XMLFeature {
569
571
  /**
570
572
  * @param {Element} node Node.
571
573
  * @return {import("../proj/Projection.js").default} Projection.
574
+ * @override
572
575
  */
573
576
  readProjectionFromNode(node) {
574
577
  return getProjection(
@@ -1 +1 @@
1
- {"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2KuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;AAF1C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,2CAeC;IALC;;;OAGG;IACH,wBAA6C;IAG/C;;;OAGG;IACH,8BAYC;IAED;;;;;;;;;;;OAWG;IACH,qBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,WAAW,GAAG,IAAI,CAc7B;IAED;;;OAGG;IACH,8BAHW,QAAQ,GACP,WAAW,GAAG,IAAI,CAY7B;IAED;;;OAGG;IACH,2BAHW,OAAO,OAgBjB;CAgFF;oBAvXmB,eAAe;uBAIZ,iBAAiB"}
1
+ {"version":3,"file":"GPX.d.ts","sourceRoot":"","sources":["GPX.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2KuB,OAAO,QAAE,IAAI,KAAE,IAAI;;;;;;;;;;;;AAF1C;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH;IACE;;OAEG;IACH,2CAeC;IALC;;;OAGG;IACH,wBAA6C;IAG/C;;;OAGG;IACH,8BAYC;IAED;;;;;;;;;;;OAWG;IACH,qBAJW,QAAQ,GAAC,OAAO,SAAQ,MAAM,GAC7B,WAAW,GAAG,IAAI,CAc7B;IAED;;;OAGG;IACH,8BAHW,QAAQ,GACP,WAAW,GAAG,IAAI,CAY7B;IAED;;;OAGG;IACH,2BAHW,OAAO,OAgBjB;CAmFF;oBA1XmB,eAAe;uBAIZ,iBAAiB"}
package/format/GPX.js CHANGED
@@ -302,6 +302,7 @@ class GPX extends XMLFeature {
302
302
  * @param {Element} node Node.
303
303
  * @param {import("./Feature.js").ReadOptions} [options] Options.
304
304
  * @return {import("../Feature.js").default} Feature.
305
+ * @override
305
306
  */
306
307
  readFeatureFromNode(node, options) {
307
308
  if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
@@ -323,6 +324,7 @@ class GPX extends XMLFeature {
323
324
  * @param {Element} node Node.
324
325
  * @param {import("./Feature.js").ReadOptions} [options] Options.
325
326
  * @return {Array<import("../Feature.js").default>} Features.
327
+ * @override
326
328
  */
327
329
  readFeaturesFromNode(node, options) {
328
330
  if (!NAMESPACE_URIS.includes(node.namespaceURI)) {
@@ -351,6 +353,7 @@ class GPX extends XMLFeature {
351
353
  * @param {import("./Feature.js").WriteOptions} [options] Options.
352
354
  * @return {Node} Node.
353
355
  * @api
356
+ * @override
354
357
  */
355
358
  writeFeaturesNode(features, options) {
356
359
  options = this.adaptOptions(options);
@@ -10,7 +10,7 @@ export type GeoJSONMultiPoint = import("geojson").MultiPoint;
10
10
  export type GeoJSONMultiLineString = import("geojson").MultiLineString;
11
11
  export type GeoJSONMultiPolygon = import("geojson").MultiPolygon;
12
12
  export type GeoJSONGeometryCollection = import("geojson").GeometryCollection;
13
- export type Options<FeatureClassToFeature extends import("../Feature.js").FeatureClass> = {
13
+ export type Options<FeatureType extends import("../Feature.js").FeatureLike = Feature<import("../geom/Geometry.js").default>> = {
14
14
  /**
15
15
  * Default data projection.
16
16
  */
@@ -37,7 +37,7 @@ export type Options<FeatureClassToFeature extends import("../Feature.js").Featur
37
37
  * the primary concern, and features are not going to be modified or round-tripped through the format,
38
38
  * consider using {@link module :ol/render/Feature~RenderFeature}
39
39
  */
40
- featureClass?: FeatureClassToFeature | undefined;
40
+ featureClass?: import("./Feature.js").FeatureToFeatureClass<FeatureType> | undefined;
41
41
  };
42
42
  /**
43
43
  * @typedef {import("geojson").GeoJSON} GeoJSONObject
@@ -53,7 +53,7 @@ export type Options<FeatureClassToFeature extends import("../Feature.js").Featur
53
53
  * @typedef {import("geojson").GeometryCollection} GeoJSONGeometryCollection
54
54
  */
55
55
  /**
56
- * @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
56
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
57
57
  * @typedef {Object} Options
58
58
  *
59
59
  * @property {import("../proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
@@ -64,7 +64,7 @@ export type Options<FeatureClassToFeature extends import("../Feature.js").Featur
64
64
  * the geometry_name field in the feature GeoJSON. If set to `true` the GeoJSON reader
65
65
  * will look for that field to set the geometry name. If both this field is set to `true`
66
66
  * and a `geometryName` is provided, the `geometryName` will take precedence.
67
- * @property {FeatureClassToFeature} [featureClass] Feature class
67
+ * @property {import('./Feature.js').FeatureToFeatureClass<FeatureType>} [featureClass] Feature class
68
68
  * to be used when reading features. The default is {@link module:ol/Feature~Feature}. If performance is
69
69
  * the primary concern, and features are not going to be modified or round-tripped through the format,
70
70
  * consider using {@link module:ol/render/Feature~RenderFeature}
@@ -73,15 +73,15 @@ export type Options<FeatureClassToFeature extends import("../Feature.js").Featur
73
73
  * @classdesc
74
74
  * Feature format for reading and writing data in the GeoJSON format.
75
75
  *
76
- * @template {import('../Feature.js').FeatureClass} [T=typeof Feature]
77
- * @extends {JSONFeature<T>}
76
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=import("../Feature.js").default]
77
+ * @extends {JSONFeature<FeatureType>}
78
78
  * @api
79
79
  */
80
- declare class GeoJSON<T extends import("../Feature.js").FeatureClass = typeof Feature> extends JSONFeature<T> {
80
+ declare class GeoJSON<FeatureType extends import("../Feature.js").FeatureLike = Feature<import("../geom/Geometry.js").default>> extends JSONFeature<FeatureType> {
81
81
  /**
82
- * @param {Options<T>} [options] Options.
82
+ * @param {Options<FeatureType>} [options] Options.
83
83
  */
84
- constructor(options?: Options<T> | undefined);
84
+ constructor(options?: Options<FeatureType> | undefined);
85
85
  /**
86
86
  * Name of the geometry attribute for features.
87
87
  * @type {string|undefined}
@@ -99,8 +99,9 @@ declare class GeoJSON<T extends import("../Feature.js").FeatureClass = typeof Fe
99
99
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
100
100
  * @protected
101
101
  * @return {import("../geom/Geometry.js").default} Geometry.
102
+ * @override
102
103
  */
103
- protected readGeometryFromObject(object: GeoJSONGeometry, options?: import("./Feature.js").ReadOptions | undefined): import("../geom/Geometry.js").default;
104
+ protected override readGeometryFromObject(object: GeoJSONGeometry, options?: import("./Feature.js").ReadOptions | undefined): import("../geom/Geometry.js").default;
104
105
  /**
105
106
  * Encode a feature as a GeoJSON Feature object.
106
107
  *
@@ -108,8 +109,9 @@ declare class GeoJSON<T extends import("../Feature.js").FeatureClass = typeof Fe
108
109
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
109
110
  * @return {GeoJSONFeature} Object.
110
111
  * @api
112
+ * @override
111
113
  */
112
- writeFeatureObject(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeature;
114
+ override writeFeatureObject(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeature;
113
115
  /**
114
116
  * Encode an array of features as a GeoJSON object.
115
117
  *
@@ -117,8 +119,9 @@ declare class GeoJSON<T extends import("../Feature.js").FeatureClass = typeof Fe
117
119
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
118
120
  * @return {GeoJSONFeatureCollection} GeoJSON Object.
119
121
  * @api
122
+ * @override
120
123
  */
121
- writeFeaturesObject(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeatureCollection;
124
+ override writeFeaturesObject(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONFeatureCollection;
122
125
  /**
123
126
  * Encode a geometry as a GeoJSON object.
124
127
  *
@@ -126,8 +129,9 @@ declare class GeoJSON<T extends import("../Feature.js").FeatureClass = typeof Fe
126
129
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
127
130
  * @return {GeoJSONGeometry|GeoJSONGeometryCollection} Object.
128
131
  * @api
132
+ * @override
129
133
  */
130
- writeGeometryObject(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONGeometry | GeoJSONGeometryCollection;
134
+ override writeGeometryObject(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): GeoJSONGeometry | GeoJSONGeometryCollection;
131
135
  }
132
136
  import Feature from '../Feature.js';
133
137
  import JSONFeature from './JSONFeature.js';
@@ -1 +1 @@
1
- {"version":3,"file":"GeoJSON.d.ts","sourceRoot":"","sources":["GeoJSON.js"],"names":[],"mappings":";4BAqBa,OAAO,SAAS,EAAE,OAAO;6BACzB,OAAO,SAAS,EAAE,OAAO;uCACzB,OAAO,SAAS,EAAE,iBAAiB;8BACnC,OAAO,SAAS,EAAE,QAAQ;2BAC1B,OAAO,SAAS,EAAE,KAAK;gCACvB,OAAO,SAAS,EAAE,UAAU;6BAC5B,OAAO,SAAS,EAAE,OAAO;gCACzB,OAAO,SAAS,EAAE,UAAU;qCAC5B,OAAO,SAAS,EAAE,eAAe;kCACjC,OAAO,SAAS,EAAE,YAAY;wCAC9B,OAAO,SAAS,EAAE,kBAAkB;;;;;qBAOnC,OAAO,YAAY,EAAE,cAAc;;;;;wBACnC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;AAnBjD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,8CAyCC;IAlBC;;;;OAIG;IACH,sBAAyC;IAEzC;;;;OAIG;IACH,6BAAuD;IA2FzD;;;;;OAKG;IACH,yCALW,eAAe,6DAGd,OAAO,qBAAqB,EAAE,OAAO,CAIhD;IAwBD;;;;;;;OAOG;IACH,4BALW,OAAO,eAAe,EAAE,OAAO,8DAE9B,cAAc,CAmCzB;IAED;;;;;;;OAOG;IACH,8BALW,MAAM,OAAO,eAAe,EAAE,OAAO,CAAC,8DAErC,wBAAwB,CAanC;IAED;;;;;;;OAOG;IACH,8BALW,OAAO,qBAAqB,EAAE,OAAO,8DAEpC,eAAe,GAAC,yBAAyB,CAKpD;CACF;oBAnSmB,eAAe;wBACX,kBAAkB"}
1
+ {"version":3,"file":"GeoJSON.d.ts","sourceRoot":"","sources":["GeoJSON.js"],"names":[],"mappings":";4BAqBa,OAAO,SAAS,EAAE,OAAO;6BACzB,OAAO,SAAS,EAAE,OAAO;uCACzB,OAAO,SAAS,EAAE,iBAAiB;8BACnC,OAAO,SAAS,EAAE,QAAQ;2BAC1B,OAAO,SAAS,EAAE,KAAK;gCACvB,OAAO,SAAS,EAAE,UAAU;6BAC5B,OAAO,SAAS,EAAE,OAAO;gCACzB,OAAO,SAAS,EAAE,UAAU;qCAC5B,OAAO,SAAS,EAAE,eAAe;kCACjC,OAAO,SAAS,EAAE,YAAY;wCAC9B,OAAO,SAAS,EAAE,kBAAkB;oBAIG,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;;;;qBAGpC,OAAO,YAAY,EAAE,cAAc;;;;;wBACnC,OAAO,YAAY,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;AAnBjD;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,sBAJoD,WAAW,SAAlD,OAAQ,eAAe,EAAE,WAAY;IAKhD;;OAEG;IACH,wDAyCC;IAlBC;;;;OAIG;IACH,sBAAyC;IAEzC;;;;OAIG;IACH,6BAAuD;IA8FzD;;;;;;OAMG;IACH,kDANW,eAAe,6DAGd,OAAO,qBAAqB,EAAE,OAAO,CAKhD;IAyBD;;;;;;;;OAQG;IACH,qCANW,OAAO,eAAe,EAAE,OAAO,8DAE9B,cAAc,CAoCzB;IAED;;;;;;;;OAQG;IACH,uCANW,KAAK,CAAC,OAAO,eAAe,EAAE,OAAO,CAAC,8DAErC,wBAAwB,CAcnC;IAED;;;;;;;;OAQG;IACH,uCANW,OAAO,qBAAqB,EAAE,OAAO,8DAEpC,eAAe,GAAC,yBAAyB,CAMpD;CACF;oBA3SmB,eAAe;wBACX,kBAAkB"}
package/format/GeoJSON.js CHANGED
@@ -33,7 +33,7 @@ import {isEmpty} from '../obj.js';
33
33
  */
34
34
 
35
35
  /**
36
- * @template {import("../Feature.js").FeatureClass} FeatureClassToFeature
36
+ * @template {import("../Feature.js").FeatureLike} [FeatureType=import("../Feature.js").default]
37
37
  * @typedef {Object} Options
38
38
  *
39
39
  * @property {import("../proj.js").ProjectionLike} [dataProjection='EPSG:4326'] Default data projection.
@@ -44,7 +44,7 @@ import {isEmpty} from '../obj.js';
44
44
  * the geometry_name field in the feature GeoJSON. If set to `true` the GeoJSON reader
45
45
  * will look for that field to set the geometry name. If both this field is set to `true`
46
46
  * and a `geometryName` is provided, the `geometryName` will take precedence.
47
- * @property {FeatureClassToFeature} [featureClass] Feature class
47
+ * @property {import('./Feature.js').FeatureToFeatureClass<FeatureType>} [featureClass] Feature class
48
48
  * to be used when reading features. The default is {@link module:ol/Feature~Feature}. If performance is
49
49
  * the primary concern, and features are not going to be modified or round-tripped through the format,
50
50
  * consider using {@link module:ol/render/Feature~RenderFeature}
@@ -54,13 +54,13 @@ import {isEmpty} from '../obj.js';
54
54
  * @classdesc
55
55
  * Feature format for reading and writing data in the GeoJSON format.
56
56
  *
57
- * @template {import('../Feature.js').FeatureClass} [T=typeof Feature]
58
- * @extends {JSONFeature<T>}
57
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=import("../Feature.js").default]
58
+ * @extends {JSONFeature<FeatureType>}
59
59
  * @api
60
60
  */
61
61
  class GeoJSON extends JSONFeature {
62
62
  /**
63
- * @param {Options<T>} [options] Options.
63
+ * @param {Options<FeatureType>} [options] Options.
64
64
  */
65
65
  constructor(options) {
66
66
  options = options ? options : {};
@@ -109,7 +109,8 @@ class GeoJSON extends JSONFeature {
109
109
  * @param {Object} object Object.
110
110
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
111
111
  * @protected
112
- * @return {Feature|RenderFeature|Array<RenderFeature>}.default} Feature.
112
+ * @return {FeatureType|Array<FeatureType>} Feature.
113
+ * @override
113
114
  */
114
115
  readFeatureFromObject(object, options) {
115
116
  /**
@@ -128,13 +129,15 @@ class GeoJSON extends JSONFeature {
128
129
 
129
130
  const geometry = readGeometryInternal(geoJSONFeature['geometry'], options);
130
131
  if (this.featureClass === RenderFeature) {
131
- return createRenderFeature(
132
- {
133
- geometry,
134
- id: geoJSONFeature['id'],
135
- properties: geoJSONFeature['properties'],
136
- },
137
- options,
132
+ return /** @type {FeatureType|Array<FeatureType>} */ (
133
+ createRenderFeature(
134
+ {
135
+ geometry,
136
+ id: geoJSONFeature['id'],
137
+ properties: geoJSONFeature['properties'],
138
+ },
139
+ options,
140
+ )
138
141
  );
139
142
  }
140
143
 
@@ -153,18 +156,18 @@ class GeoJSON extends JSONFeature {
153
156
  if (geoJSONFeature['properties']) {
154
157
  feature.setProperties(geoJSONFeature['properties'], true);
155
158
  }
156
- return feature;
159
+ return /** @type {FeatureType|Array<FeatureType>} */ (feature);
157
160
  }
158
161
 
159
162
  /**
160
163
  * @param {Object} object Object.
161
164
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
162
165
  * @protected
163
- * @return {Array<Feature|RenderFeature>} Features.
166
+ * @return {Array<FeatureType>} Features.
167
+ * @override
164
168
  */
165
169
  readFeaturesFromObject(object, options) {
166
170
  const geoJSONObject = /** @type {GeoJSONObject} */ (object);
167
- /** @type {Array<Feature|RenderFeature|Array<RenderFeature>>} */
168
171
  let features = null;
169
172
  if (geoJSONObject['type'] === 'FeatureCollection') {
170
173
  const geoJSONFeatureCollection = /** @type {GeoJSONFeatureCollection} */ (
@@ -185,7 +188,7 @@ class GeoJSON extends JSONFeature {
185
188
  } else {
186
189
  features = [this.readFeatureFromObject(object, options)];
187
190
  }
188
- return features.flat();
191
+ return /** @type {Array<FeatureType>} */ (features.flat());
189
192
  }
190
193
 
191
194
  /**
@@ -193,6 +196,7 @@ class GeoJSON extends JSONFeature {
193
196
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
194
197
  * @protected
195
198
  * @return {import("../geom/Geometry.js").default} Geometry.
199
+ * @override
196
200
  */
197
201
  readGeometryFromObject(object, options) {
198
202
  return readGeometry(object, options);
@@ -202,6 +206,7 @@ class GeoJSON extends JSONFeature {
202
206
  * @param {Object} object Object.
203
207
  * @protected
204
208
  * @return {import("../proj/Projection.js").default} Projection.
209
+ * @override
205
210
  */
206
211
  readProjectionFromObject(object) {
207
212
  const crs = object['crs'];
@@ -227,6 +232,7 @@ class GeoJSON extends JSONFeature {
227
232
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
228
233
  * @return {GeoJSONFeature} Object.
229
234
  * @api
235
+ * @override
230
236
  */
231
237
  writeFeatureObject(feature, options) {
232
238
  options = this.adaptOptions(options);
@@ -269,6 +275,7 @@ class GeoJSON extends JSONFeature {
269
275
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
270
276
  * @return {GeoJSONFeatureCollection} GeoJSON Object.
271
277
  * @api
278
+ * @override
272
279
  */
273
280
  writeFeaturesObject(features, options) {
274
281
  options = this.adaptOptions(options);
@@ -289,6 +296,7 @@ class GeoJSON extends JSONFeature {
289
296
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
290
297
  * @return {GeoJSONGeometry|GeoJSONGeometryCollection} Object.
291
298
  * @api
299
+ * @override
292
300
  */
293
301
  writeGeometryObject(geometry, options) {
294
302
  return writeGeometry(geometry, this.adaptOptions(options));
package/format/IGC.d.ts CHANGED
@@ -2,7 +2,7 @@ export default IGC;
2
2
  /**
3
3
  * IGC altitude/z. One of 'barometric', 'gps', 'none'.
4
4
  */
5
- export type IGCZ = 'barometric' | 'gps' | 'none';
5
+ export type IGCZ = "barometric" | "gps" | "none";
6
6
  export type Options = {
7
7
  /**
8
8
  * Altitude mode. Possible
@@ -1 +1 @@
1
- {"version":3,"file":"IGC.d.ts","sourceRoot":"","sources":["IGC.js"],"names":[],"mappings":";;;;mBAUa,YAAY,GAAG,KAAK,GAAG,MAAM;;;;;;;;AAqC1C;;;;GAIG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAmDC;IAzCC;;;OAGG;IACH,sBAAyE;IAEzE;;;OAGG;IACH,aAAiB;IAEjB;;;OAGG;IACH,aAAiB;IAEjB;;;OAGG;IACH,kBAAkB;IAElB;;;OAGG;IACH,iBAAiB;IAEjB;;;OAGG;IACH,kBAAkB;IAElB;;;OAGG;IACH,iBAAiB;CAsIpB;wBAtPuB,kBAAkB"}
1
+ {"version":3,"file":"IGC.d.ts","sourceRoot":"","sources":["IGC.js"],"names":[],"mappings":";;;;mBAUa,YAAY,GAAG,KAAK,GAAG,MAAM;;;;;;;;AAqC1C;;;;GAIG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAmDC;IAzCC;;;OAGG;IACH,sBAAyE;IAEzE;;;OAGG;IACH,aAAiB;IAEjB;;;OAGG;IACH,aAAiB;IAEjB;;;OAGG;IACH,kBAAkB;IAElB;;;OAGG;IACH,iBAAiB;IAEjB;;;OAGG;IACH,kBAAkB;IAElB;;;OAGG;IACH,iBAAiB;CAwIpB;wBAxPuB,kBAAkB"}
package/format/IGC.js CHANGED
@@ -123,6 +123,7 @@ class IGC extends TextFeature {
123
123
  * @param {string} text Text.
124
124
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
125
125
  * @return {import("../Feature.js").default} Feature.
126
+ * @override
126
127
  */
127
128
  readFeatureFromText(text, options) {
128
129
  const altitudeMode = this.altitudeMode_;
@@ -241,6 +242,7 @@ class IGC extends TextFeature {
241
242
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
242
243
  * @protected
243
244
  * @return {Array<Feature>} Features.
245
+ * @override
244
246
  */
245
247
  readFeaturesFromText(text, options) {
246
248
  const feature = this.readFeatureFromText(text, options);
@@ -1 +1 @@
1
- {"version":3,"file":"IIIFInfo.d.ts","sourceRoot":"","sources":["IIIFInfo.js"],"names":[],"mappings":";;;uBA+CU,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAvBF,MAAM,MAAM,CAAC;;;;WACb,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgBA,MAAM,GAAC,MAAM,GAAC,MAAM,GAAC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GG;IACH,uCAHY,iBAAiB,GAAC,SAAS,CAatC;IAED;;;;OAIG;IACH,uEAHY,OAAO,mBAAmB,EAAE,OAAO,GAAC,SAAS,CAwCxD;CACF"}
@@ -5,47 +5,27 @@ export default JSONFeature;
5
5
  * instantiated in apps.
6
6
  * Base class for JSON feature formats.
7
7
  *
8
- * @template {import('../Feature.js').FeatureClass} [T=typeof import('../Feature.js').default]
9
- * @extends {FeatureFormat<T>}
8
+ * @template {import('../Feature.js').FeatureLike} [FeatureType=import("../Feature.js").default]
9
+ * @extends {FeatureFormat<FeatureType>}
10
10
  * @abstract
11
11
  */
12
- declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeof import("../Feature.js").default> extends FeatureFormat<T> {
13
- /**
14
- * Read a feature. Only works for a single feature. Use `readFeatures` to
15
- * read a feature collection.
16
- *
17
- * @param {ArrayBuffer|Document|Element|Object|string} source Source.
18
- * @param {import("./Feature.js").ReadOptions} [options] Read options.
19
- * @return {import('./Feature.js').FeatureClassToFeature<T>} Feature.
20
- * @api
21
- */
22
- readFeature(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): import('./Feature.js').FeatureClassToFeature<T>;
23
- /**
24
- * Read all features. Works with both a single feature and a feature
25
- * collection.
26
- *
27
- * @param {ArrayBuffer|Document|Element|Object|string} source Source.
28
- * @param {import("./Feature.js").ReadOptions} [options] Read options.
29
- * @return {Array<import('./Feature.js').FeatureClassToFeature<T>>} Features.
30
- * @api
31
- */
32
- readFeatures(source: ArrayBuffer | Document | Element | any | string, options?: import("./Feature.js").ReadOptions | undefined): Array<import('./Feature.js').FeatureClassToFeature<T>>;
12
+ declare class JSONFeature<FeatureType extends import("../Feature.js").FeatureLike = import("../Feature.js").default<import("../geom/Geometry.js").default>> extends FeatureFormat<FeatureType> {
33
13
  /**
34
14
  * @abstract
35
15
  * @param {Object} object Object.
36
16
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
37
17
  * @protected
38
- * @return {import("../Feature.js").default|import("../render/Feature.js").default|Array<import("../render/Feature.js").default>} Feature.
18
+ * @return {FeatureType|Array<FeatureType>} Feature.
39
19
  */
40
- protected readFeatureFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): import("../Feature.js").default | import("../render/Feature.js").default | Array<import("../render/Feature.js").default>;
20
+ protected readFeatureFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): FeatureType | Array<FeatureType>;
41
21
  /**
42
22
  * @abstract
43
23
  * @param {Object} object Object.
44
24
  * @param {import("./Feature.js").ReadOptions} [options] Read options.
45
25
  * @protected
46
- * @return {Array<import("../Feature.js").default|import("../render/Feature.js").default>} Features.
26
+ * @return {Array<FeatureType>} Features.
47
27
  */
48
- protected readFeaturesFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): Array<import("../Feature.js").default | import("../render/Feature.js").default>;
28
+ protected readFeaturesFromObject(object: any, options?: import("./Feature.js").ReadOptions | undefined): Array<FeatureType>;
49
29
  /**
50
30
  * @abstract
51
31
  * @param {Object} object Object.
@@ -60,8 +40,9 @@ declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeo
60
40
  * @param {ArrayBuffer|Document|Element|Object|string} source Source.
61
41
  * @return {import("../proj/Projection.js").default} Projection.
62
42
  * @api
43
+ * @override
63
44
  */
64
- readProjection(source: ArrayBuffer | Document | Element | any | string): import("../proj/Projection.js").default;
45
+ override readProjection(source: ArrayBuffer | Document | Element | any | string): import("../proj/Projection.js").default;
65
46
  /**
66
47
  * @abstract
67
48
  * @param {Object} object Object.
@@ -76,8 +57,9 @@ declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeo
76
57
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
77
58
  * @return {string} Encoded feature.
78
59
  * @api
60
+ * @override
79
61
  */
80
- writeFeature(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
62
+ override writeFeature(feature: import("../Feature.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
81
63
  /**
82
64
  * @abstract
83
65
  * @param {import("../Feature.js").default} feature Feature.
@@ -92,8 +74,9 @@ declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeo
92
74
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
93
75
  * @return {string} Encoded features.
94
76
  * @api
77
+ * @override
95
78
  */
96
- writeFeatures(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): string;
79
+ override writeFeatures(features: Array<import("../Feature.js").default>, options?: import("./Feature.js").WriteOptions | undefined): string;
97
80
  /**
98
81
  * @abstract
99
82
  * @param {Array<import("../Feature.js").default>} features Features.
@@ -108,8 +91,9 @@ declare class JSONFeature<T extends import("../Feature.js").FeatureClass = typeo
108
91
  * @param {import("./Feature.js").WriteOptions} [options] Write options.
109
92
  * @return {string} Encoded geometry.
110
93
  * @api
94
+ * @override
111
95
  */
112
- writeGeometry(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
96
+ override writeGeometry(geometry: import("../geom/Geometry.js").default, options?: import("./Feature.js").WriteOptions | undefined): string;
113
97
  /**
114
98
  * @abstract
115
99
  * @param {import("../geom/Geometry.js").default} geometry Geometry.
@@ -1 +1 @@
1
- {"version":3,"file":"JSONFeature.d.ts","sourceRoot":"","sources":["JSONFeature.js"],"names":[],"mappings":";AAMA;;;;;;;;;GASG;AACH;IAYE;;;;;;;;OAQG;IACH,oBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,OAAO,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAU1D;IAED;;;;;;;;OAQG;IACH,qBALW,WAAW,GAAC,QAAQ,GAAC,OAAO,SAAQ,MAAM,6DAEzC,MAAM,OAAO,cAAc,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAUjE;IAED;;;;;;OAMG;IACH,wGAFY,OAAO,eAAe,EAAE,OAAO,GAAC,OAAO,sBAAsB,EAAE,OAAO,GAAC,MAAM,OAAO,sBA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