ol 7.3.0 → 7.3.1-dev

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 (535) hide show
  1. package/Collection.d.ts +2 -2
  2. package/Collection.d.ts.map +1 -1
  3. package/DataTile.d.ts +1 -1
  4. package/DataTile.d.ts.map +1 -1
  5. package/DataTile.js +2 -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/Image.d.ts +1 -1
  11. package/Image.d.ts.map +1 -1
  12. package/ImageBase.d.ts +1 -1
  13. package/ImageBase.d.ts.map +1 -1
  14. package/ImageCanvas.d.ts +1 -1
  15. package/ImageCanvas.d.ts.map +1 -1
  16. package/ImageTile.d.ts +1 -1
  17. package/ImageTile.d.ts.map +1 -1
  18. package/Map.d.ts +7 -7
  19. package/Map.d.ts.map +1 -1
  20. package/Map.js +2 -1
  21. package/MapBrowserEvent.d.ts +1 -1
  22. package/MapBrowserEvent.d.ts.map +1 -1
  23. package/MapBrowserEventHandler.d.ts +1 -1
  24. package/MapBrowserEventHandler.d.ts.map +1 -1
  25. package/MapEvent.d.ts +1 -1
  26. package/MapEvent.d.ts.map +1 -1
  27. package/Object.d.ts +2 -2
  28. package/Object.d.ts.map +1 -1
  29. package/Observable.d.ts +1 -1
  30. package/Observable.d.ts.map +1 -1
  31. package/Overlay.d.ts +1 -1
  32. package/Overlay.d.ts.map +1 -1
  33. package/Tile.d.ts +1 -1
  34. package/Tile.d.ts.map +1 -1
  35. package/TileCache.d.ts +1 -1
  36. package/TileCache.d.ts.map +1 -1
  37. package/TileQueue.d.ts +1 -1
  38. package/TileQueue.d.ts.map +1 -1
  39. package/VectorRenderTile.d.ts +1 -1
  40. package/VectorRenderTile.d.ts.map +1 -1
  41. package/VectorTile.d.ts +1 -1
  42. package/VectorTile.d.ts.map +1 -1
  43. package/View.d.ts +10 -6
  44. package/View.d.ts.map +1 -1
  45. package/View.js +9 -6
  46. package/array.d.ts.map +1 -1
  47. package/array.js +38 -20
  48. package/control/Attribution.d.ts +1 -1
  49. package/control/Attribution.d.ts.map +1 -1
  50. package/control/Control.d.ts +1 -1
  51. package/control/Control.d.ts.map +1 -1
  52. package/control/FullScreen.d.ts +1 -1
  53. package/control/FullScreen.d.ts.map +1 -1
  54. package/control/MousePosition.d.ts +1 -1
  55. package/control/MousePosition.d.ts.map +1 -1
  56. package/control/OverviewMap.d.ts +3 -3
  57. package/control/OverviewMap.d.ts.map +1 -1
  58. package/control/Rotate.d.ts +1 -1
  59. package/control/Rotate.d.ts.map +1 -1
  60. package/control/ScaleLine.d.ts +1 -1
  61. package/control/ScaleLine.d.ts.map +1 -1
  62. package/control/Zoom.d.ts +1 -1
  63. package/control/Zoom.d.ts.map +1 -1
  64. package/control/ZoomSlider.d.ts +1 -1
  65. package/control/ZoomSlider.d.ts.map +1 -1
  66. package/control/ZoomToExtent.d.ts +1 -1
  67. package/control/ZoomToExtent.d.ts.map +1 -1
  68. package/control/defaults.d.ts +1 -1
  69. package/control/defaults.d.ts.map +1 -1
  70. package/dist/ol.js +2 -2
  71. package/dist/ol.js.map +1 -1
  72. package/events/Key.d.ts +8 -0
  73. package/events/Key.d.ts.map +1 -0
  74. package/events/Key.js +14 -0
  75. package/events/Target.d.ts +1 -1
  76. package/events/Target.d.ts.map +1 -1
  77. package/events/condition.d.ts +2 -2
  78. package/events/condition.d.ts.map +1 -1
  79. package/extent.d.ts.map +1 -1
  80. package/extent.js +7 -2
  81. package/format/EsriJSON.d.ts +1 -1
  82. package/format/EsriJSON.d.ts.map +1 -1
  83. package/format/GML.d.ts +1 -1
  84. package/format/GML.d.ts.map +1 -1
  85. package/format/GML2.d.ts +1 -1
  86. package/format/GML2.d.ts.map +1 -1
  87. package/format/GML3.d.ts +5 -5
  88. package/format/GML3.d.ts.map +1 -1
  89. package/format/GML32.d.ts +1 -1
  90. package/format/GML32.d.ts.map +1 -1
  91. package/format/GMLBase.d.ts +9 -9
  92. package/format/GMLBase.d.ts.map +1 -1
  93. package/format/GPX.d.ts +2 -2
  94. package/format/GPX.d.ts.map +1 -1
  95. package/format/GeoJSON.d.ts +1 -1
  96. package/format/GeoJSON.d.ts.map +1 -1
  97. package/format/IGC.d.ts +1 -1
  98. package/format/IGC.d.ts.map +1 -1
  99. package/format/IIIFInfo.d.ts +8 -8
  100. package/format/IIIFInfo.d.ts.map +1 -1
  101. package/format/IIIFInfo.js +10 -9
  102. package/format/JSONFeature.d.ts +1 -1
  103. package/format/JSONFeature.d.ts.map +1 -1
  104. package/format/JSONFeature.js +2 -1
  105. package/format/KML.d.ts +121 -5
  106. package/format/KML.d.ts.map +1 -1
  107. package/format/KML.js +105 -7
  108. package/format/MVT.d.ts +2 -2
  109. package/format/MVT.d.ts.map +1 -1
  110. package/format/OSMXML.d.ts +1 -1
  111. package/format/OSMXML.d.ts.map +1 -1
  112. package/format/OSMXML.js +11 -4
  113. package/format/OWS.d.ts +1 -1
  114. package/format/OWS.d.ts.map +1 -1
  115. package/format/Polyline.d.ts +2 -2
  116. package/format/Polyline.d.ts.map +1 -1
  117. package/format/TextFeature.d.ts +1 -1
  118. package/format/TextFeature.d.ts.map +1 -1
  119. package/format/TopoJSON.d.ts +1 -1
  120. package/format/TopoJSON.d.ts.map +1 -1
  121. package/format/WFS.d.ts +2 -2
  122. package/format/WFS.d.ts.map +1 -1
  123. package/format/WFS.js +8 -4
  124. package/format/WKB.d.ts +1 -1
  125. package/format/WKB.d.ts.map +1 -1
  126. package/format/WKB.js +6 -4
  127. package/format/WKT.d.ts +1 -1
  128. package/format/WKT.d.ts.map +1 -1
  129. package/format/WMSCapabilities.d.ts +1 -1
  130. package/format/WMSCapabilities.d.ts.map +1 -1
  131. package/format/WMSGetFeatureInfo.d.ts +1 -1
  132. package/format/WMSGetFeatureInfo.d.ts.map +1 -1
  133. package/format/WMTSCapabilities.d.ts +1 -1
  134. package/format/WMTSCapabilities.d.ts.map +1 -1
  135. package/format/XML.d.ts.map +1 -1
  136. package/format/XML.js +4 -2
  137. package/format/XMLFeature.d.ts +1 -1
  138. package/format/XMLFeature.d.ts.map +1 -1
  139. package/format/XMLFeature.js +16 -8
  140. package/format/filter/And.d.ts +1 -1
  141. package/format/filter/And.d.ts.map +1 -1
  142. package/format/filter/Bbox.d.ts +1 -1
  143. package/format/filter/Bbox.d.ts.map +1 -1
  144. package/format/filter/Comparison.d.ts +1 -1
  145. package/format/filter/Comparison.d.ts.map +1 -1
  146. package/format/filter/ComparisonBinary.d.ts +1 -1
  147. package/format/filter/ComparisonBinary.d.ts.map +1 -1
  148. package/format/filter/Contains.d.ts +1 -1
  149. package/format/filter/Contains.d.ts.map +1 -1
  150. package/format/filter/DWithin.d.ts +1 -1
  151. package/format/filter/DWithin.d.ts.map +1 -1
  152. package/format/filter/Disjoint.d.ts +1 -1
  153. package/format/filter/Disjoint.d.ts.map +1 -1
  154. package/format/filter/During.d.ts +1 -1
  155. package/format/filter/During.d.ts.map +1 -1
  156. package/format/filter/EqualTo.d.ts +1 -1
  157. package/format/filter/EqualTo.d.ts.map +1 -1
  158. package/format/filter/GreaterThan.d.ts +1 -1
  159. package/format/filter/GreaterThan.d.ts.map +1 -1
  160. package/format/filter/GreaterThanOrEqualTo.d.ts +1 -1
  161. package/format/filter/GreaterThanOrEqualTo.d.ts.map +1 -1
  162. package/format/filter/Intersects.d.ts +1 -1
  163. package/format/filter/Intersects.d.ts.map +1 -1
  164. package/format/filter/IsBetween.d.ts +1 -1
  165. package/format/filter/IsBetween.d.ts.map +1 -1
  166. package/format/filter/IsLike.d.ts +1 -1
  167. package/format/filter/IsLike.d.ts.map +1 -1
  168. package/format/filter/IsNull.d.ts +1 -1
  169. package/format/filter/IsNull.d.ts.map +1 -1
  170. package/format/filter/LessThan.d.ts +1 -1
  171. package/format/filter/LessThan.d.ts.map +1 -1
  172. package/format/filter/LessThanOrEqualTo.d.ts +1 -1
  173. package/format/filter/LessThanOrEqualTo.d.ts.map +1 -1
  174. package/format/filter/LogicalNary.d.ts +1 -1
  175. package/format/filter/LogicalNary.d.ts.map +1 -1
  176. package/format/filter/Not.d.ts +1 -1
  177. package/format/filter/Not.d.ts.map +1 -1
  178. package/format/filter/NotEqualTo.d.ts +1 -1
  179. package/format/filter/NotEqualTo.d.ts.map +1 -1
  180. package/format/filter/Or.d.ts +2 -2
  181. package/format/filter/Or.d.ts.map +1 -1
  182. package/format/filter/Or.js +1 -1
  183. package/format/filter/ResourceId.d.ts +1 -1
  184. package/format/filter/ResourceId.d.ts.map +1 -1
  185. package/format/filter/Spatial.d.ts +1 -1
  186. package/format/filter/Spatial.d.ts.map +1 -1
  187. package/format/filter/Within.d.ts +1 -1
  188. package/format/filter/Within.d.ts.map +1 -1
  189. package/format/filter.d.ts +20 -20
  190. package/format/filter.d.ts.map +1 -1
  191. package/geom/Circle.d.ts +1 -1
  192. package/geom/Circle.d.ts.map +1 -1
  193. package/geom/Circle.js +1 -17
  194. package/geom/Geometry.d.ts +1 -1
  195. package/geom/Geometry.d.ts.map +1 -1
  196. package/geom/GeometryCollection.d.ts +1 -1
  197. package/geom/GeometryCollection.d.ts.map +1 -1
  198. package/geom/LineString.d.ts +1 -1
  199. package/geom/LineString.d.ts.map +1 -1
  200. package/geom/LinearRing.d.ts +1 -1
  201. package/geom/LinearRing.d.ts.map +1 -1
  202. package/geom/MultiLineString.d.ts +2 -2
  203. package/geom/MultiLineString.d.ts.map +1 -1
  204. package/geom/MultiPoint.d.ts +2 -2
  205. package/geom/MultiPoint.d.ts.map +1 -1
  206. package/geom/MultiPolygon.d.ts +3 -3
  207. package/geom/MultiPolygon.d.ts.map +1 -1
  208. package/geom/Point.d.ts +1 -1
  209. package/geom/Point.d.ts.map +1 -1
  210. package/geom/Polygon.d.ts +3 -3
  211. package/geom/Polygon.d.ts.map +1 -1
  212. package/geom/SimpleGeometry.d.ts +1 -1
  213. package/geom/SimpleGeometry.d.ts.map +1 -1
  214. package/geom/flat/interpolate.d.ts.map +1 -1
  215. package/geom/flat/interpolate.js +4 -2
  216. package/geom/flat/orient.d.ts +1 -1
  217. package/geom/flat/orient.js +1 -1
  218. package/interaction/DblClickDragZoom.d.ts +110 -0
  219. package/interaction/DblClickDragZoom.d.ts.map +1 -0
  220. package/interaction/DblClickDragZoom.js +251 -0
  221. package/interaction/DoubleClickZoom.d.ts +1 -1
  222. package/interaction/DoubleClickZoom.d.ts.map +1 -1
  223. package/interaction/DragAndDrop.d.ts +2 -2
  224. package/interaction/DragAndDrop.d.ts.map +1 -1
  225. package/interaction/DragBox.d.ts +2 -2
  226. package/interaction/DragBox.d.ts.map +1 -1
  227. package/interaction/DragPan.d.ts +1 -1
  228. package/interaction/DragPan.d.ts.map +1 -1
  229. package/interaction/DragRotate.d.ts +1 -1
  230. package/interaction/DragRotate.d.ts.map +1 -1
  231. package/interaction/DragRotateAndZoom.d.ts +1 -1
  232. package/interaction/DragRotateAndZoom.d.ts.map +1 -1
  233. package/interaction/DragZoom.d.ts +1 -1
  234. package/interaction/DragZoom.d.ts.map +1 -1
  235. package/interaction/Draw.d.ts +6 -6
  236. package/interaction/Draw.d.ts.map +1 -1
  237. package/interaction/Extent.d.ts +2 -2
  238. package/interaction/Extent.d.ts.map +1 -1
  239. package/interaction/Extent.js +2 -1
  240. package/interaction/Interaction.d.ts +1 -1
  241. package/interaction/Interaction.d.ts.map +1 -1
  242. package/interaction/KeyboardPan.d.ts +1 -1
  243. package/interaction/KeyboardPan.d.ts.map +1 -1
  244. package/interaction/KeyboardPan.js +9 -9
  245. package/interaction/KeyboardZoom.d.ts +1 -1
  246. package/interaction/KeyboardZoom.d.ts.map +1 -1
  247. package/interaction/Link.d.ts +1 -1
  248. package/interaction/Link.d.ts.map +1 -1
  249. package/interaction/Modify.d.ts +6 -6
  250. package/interaction/Modify.d.ts.map +1 -1
  251. package/interaction/Modify.js +6 -1
  252. package/interaction/MouseWheelZoom.d.ts +1 -1
  253. package/interaction/MouseWheelZoom.d.ts.map +1 -1
  254. package/interaction/PinchRotate.d.ts +1 -1
  255. package/interaction/PinchRotate.d.ts.map +1 -1
  256. package/interaction/PinchZoom.d.ts +1 -1
  257. package/interaction/PinchZoom.d.ts.map +1 -1
  258. package/interaction/Pointer.d.ts +1 -1
  259. package/interaction/Pointer.d.ts.map +1 -1
  260. package/interaction/Select.d.ts +5 -5
  261. package/interaction/Select.d.ts.map +1 -1
  262. package/interaction/Snap.d.ts +1 -1
  263. package/interaction/Snap.d.ts.map +1 -1
  264. package/interaction/Snap.js +10 -4
  265. package/interaction/Translate.d.ts +4 -4
  266. package/interaction/Translate.d.ts.map +1 -1
  267. package/interaction/Translate.js +18 -3
  268. package/interaction/defaults.d.ts +1 -1
  269. package/interaction/defaults.d.ts.map +1 -1
  270. package/interaction.d.ts +1 -0
  271. package/interaction.js +1 -0
  272. package/layer/Base.d.ts +4 -3
  273. package/layer/Base.d.ts.map +1 -1
  274. package/layer/Base.js +3 -2
  275. package/layer/BaseImage.d.ts +1 -1
  276. package/layer/BaseImage.d.ts.map +1 -1
  277. package/layer/BaseTile.d.ts +1 -1
  278. package/layer/BaseTile.d.ts.map +1 -1
  279. package/layer/BaseVector.d.ts +10 -4
  280. package/layer/BaseVector.d.ts.map +1 -1
  281. package/layer/BaseVector.js +9 -3
  282. package/layer/Graticule.d.ts +6 -6
  283. package/layer/Graticule.d.ts.map +1 -1
  284. package/layer/Group.d.ts +4 -4
  285. package/layer/Group.d.ts.map +1 -1
  286. package/layer/Heatmap.d.ts +2 -2
  287. package/layer/Heatmap.d.ts.map +1 -1
  288. package/layer/Image.d.ts +2 -2
  289. package/layer/Image.d.ts.map +1 -1
  290. package/layer/Layer.d.ts +14 -11
  291. package/layer/Layer.d.ts.map +1 -1
  292. package/layer/Layer.js +28 -8
  293. package/layer/MapboxVector.d.ts +1 -1
  294. package/layer/MapboxVector.d.ts.map +1 -1
  295. package/layer/Tile.d.ts +2 -2
  296. package/layer/Tile.d.ts.map +1 -1
  297. package/layer/Vector.d.ts +2 -2
  298. package/layer/Vector.d.ts.map +1 -1
  299. package/layer/VectorImage.d.ts +2 -2
  300. package/layer/VectorImage.d.ts.map +1 -1
  301. package/layer/VectorTile.d.ts +2 -2
  302. package/layer/VectorTile.d.ts.map +1 -1
  303. package/layer/WebGLPoints.d.ts +4 -4
  304. package/layer/WebGLPoints.d.ts.map +1 -1
  305. package/layer/WebGLPoints.js +13 -4
  306. package/layer/WebGLTile.d.ts +9 -2
  307. package/layer/WebGLTile.d.ts.map +1 -1
  308. package/layer/WebGLTile.js +6 -6
  309. package/package.json +2 -2
  310. package/proj/proj4.d.ts +2 -2
  311. package/proj/proj4.d.ts.map +1 -1
  312. package/proj/proj4.js +1 -1
  313. package/proj.d.ts +9 -9
  314. package/proj.d.ts.map +1 -1
  315. package/proj.js +9 -8
  316. package/render/Box.d.ts +1 -1
  317. package/render/Box.d.ts.map +1 -1
  318. package/render/Event.d.ts +1 -1
  319. package/render/Event.d.ts.map +1 -1
  320. package/render/Feature.d.ts +7 -7
  321. package/render/Feature.d.ts.map +1 -1
  322. package/render/canvas/Builder.d.ts +1 -1
  323. package/render/canvas/Builder.d.ts.map +1 -1
  324. package/render/canvas/ImageBuilder.d.ts +1 -1
  325. package/render/canvas/ImageBuilder.d.ts.map +1 -1
  326. package/render/canvas/Immediate.d.ts +1 -1
  327. package/render/canvas/Immediate.d.ts.map +1 -1
  328. package/render/canvas/Immediate.js +9 -1
  329. package/render/canvas/LineStringBuilder.d.ts +1 -1
  330. package/render/canvas/LineStringBuilder.d.ts.map +1 -1
  331. package/render/canvas/PolygonBuilder.d.ts +1 -1
  332. package/render/canvas/PolygonBuilder.d.ts.map +1 -1
  333. package/render/canvas/TextBuilder.d.ts +1 -1
  334. package/render/canvas/TextBuilder.d.ts.map +1 -1
  335. package/render/canvas.d.ts +1 -1
  336. package/render/canvas.d.ts.map +1 -1
  337. package/render/webgl/MixedGeometryBatch.d.ts +37 -131
  338. package/render/webgl/MixedGeometryBatch.d.ts.map +1 -1
  339. package/render/webgl/MixedGeometryBatch.js +230 -147
  340. package/render/webgl/VectorStyleRenderer.d.ts +256 -0
  341. package/render/webgl/VectorStyleRenderer.d.ts.map +1 -0
  342. package/render/webgl/VectorStyleRenderer.js +440 -0
  343. package/render/webgl/constants.d.ts +1 -1
  344. package/render/webgl/constants.js +1 -1
  345. package/render/webgl/renderinstructions.d.ts +36 -0
  346. package/render/webgl/renderinstructions.d.ts.map +1 -0
  347. package/render/webgl/renderinstructions.js +241 -0
  348. package/render/webgl/utils.d.ts +4 -4
  349. package/render/webgl/utils.d.ts.map +1 -1
  350. package/render/webgl/utils.js +9 -9
  351. package/render.d.ts +1 -1
  352. package/render.d.ts.map +1 -1
  353. package/renderer/Composite.d.ts +1 -1
  354. package/renderer/Composite.d.ts.map +1 -1
  355. package/renderer/Layer.d.ts +1 -1
  356. package/renderer/Layer.d.ts.map +1 -1
  357. package/renderer/Map.d.ts +1 -1
  358. package/renderer/Map.d.ts.map +1 -1
  359. package/renderer/canvas/ImageLayer.d.ts +1 -1
  360. package/renderer/canvas/ImageLayer.d.ts.map +1 -1
  361. package/renderer/canvas/Layer.d.ts +1 -1
  362. package/renderer/canvas/Layer.d.ts.map +1 -1
  363. package/renderer/canvas/TileLayer.d.ts +1 -1
  364. package/renderer/canvas/TileLayer.d.ts.map +1 -1
  365. package/renderer/canvas/VectorImageLayer.d.ts +1 -1
  366. package/renderer/canvas/VectorImageLayer.d.ts.map +1 -1
  367. package/renderer/canvas/VectorLayer.d.ts +3 -3
  368. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  369. package/renderer/canvas/VectorTileLayer.d.ts +2 -2
  370. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  371. package/renderer/webgl/Layer.d.ts +2 -2
  372. package/renderer/webgl/Layer.d.ts.map +1 -1
  373. package/renderer/webgl/PointsLayer.d.ts +3 -3
  374. package/renderer/webgl/PointsLayer.d.ts.map +1 -1
  375. package/renderer/webgl/PointsLayer.js +5 -8
  376. package/renderer/webgl/TileLayer.d.ts +32 -99
  377. package/renderer/webgl/TileLayer.d.ts.map +1 -1
  378. package/renderer/webgl/TileLayer.js +103 -644
  379. package/renderer/webgl/TileLayerBase.d.ts +194 -0
  380. package/renderer/webgl/TileLayerBase.d.ts.map +1 -0
  381. package/renderer/webgl/TileLayerBase.js +750 -0
  382. package/renderer/webgl/VectorLayer.d.ts +59 -60
  383. package/renderer/webgl/VectorLayer.d.ts.map +1 -1
  384. package/renderer/webgl/VectorLayer.js +118 -156
  385. package/renderer/webgl/VectorTileLayer.d.ts +87 -0
  386. package/renderer/webgl/VectorTileLayer.d.ts.map +1 -0
  387. package/renderer/webgl/VectorTileLayer.js +201 -0
  388. package/reproj/DataTile.d.ts +1 -1
  389. package/reproj/DataTile.d.ts.map +1 -1
  390. package/reproj/Image.d.ts +1 -1
  391. package/reproj/Image.d.ts.map +1 -1
  392. package/reproj/Image.js +22 -8
  393. package/reproj/Tile.d.ts +1 -1
  394. package/reproj/Tile.d.ts.map +1 -1
  395. package/reproj/Triangulation.js +2 -2
  396. package/source/BingMaps.d.ts +1 -1
  397. package/source/BingMaps.d.ts.map +1 -1
  398. package/source/CartoDB.d.ts +1 -1
  399. package/source/CartoDB.d.ts.map +1 -1
  400. package/source/Cluster.d.ts +3 -3
  401. package/source/Cluster.d.ts.map +1 -1
  402. package/source/DataTile.d.ts +4 -4
  403. package/source/DataTile.d.ts.map +1 -1
  404. package/source/DataTile.js +1 -1
  405. package/source/GeoTIFF.d.ts +1 -1
  406. package/source/GeoTIFF.d.ts.map +1 -1
  407. package/source/IIIF.d.ts +1 -1
  408. package/source/IIIF.d.ts.map +1 -1
  409. package/source/Image.d.ts +2 -2
  410. package/source/Image.d.ts.map +1 -1
  411. package/source/ImageArcGISRest.d.ts +1 -1
  412. package/source/ImageArcGISRest.d.ts.map +1 -1
  413. package/source/ImageCanvas.d.ts +1 -1
  414. package/source/ImageCanvas.d.ts.map +1 -1
  415. package/source/ImageMapGuide.d.ts +1 -1
  416. package/source/ImageMapGuide.d.ts.map +1 -1
  417. package/source/ImageStatic.d.ts +1 -1
  418. package/source/ImageStatic.d.ts.map +1 -1
  419. package/source/ImageWMS.d.ts +1 -1
  420. package/source/ImageWMS.d.ts.map +1 -1
  421. package/source/OGCMapTile.d.ts +1 -1
  422. package/source/OGCMapTile.d.ts.map +1 -1
  423. package/source/OGCVectorTile.d.ts +1 -1
  424. package/source/OGCVectorTile.d.ts.map +1 -1
  425. package/source/OSM.d.ts +1 -1
  426. package/source/OSM.d.ts.map +1 -1
  427. package/source/Raster.d.ts +3 -3
  428. package/source/Raster.d.ts.map +1 -1
  429. package/source/Source.d.ts +5 -5
  430. package/source/Source.d.ts.map +1 -1
  431. package/source/Source.js +2 -2
  432. package/source/Stamen.d.ts +1 -1
  433. package/source/Stamen.d.ts.map +1 -1
  434. package/source/Tile.d.ts +2 -2
  435. package/source/Tile.d.ts.map +1 -1
  436. package/source/TileArcGISRest.d.ts +1 -1
  437. package/source/TileArcGISRest.d.ts.map +1 -1
  438. package/source/TileDebug.d.ts +1 -1
  439. package/source/TileDebug.d.ts.map +1 -1
  440. package/source/TileImage.d.ts +4 -4
  441. package/source/TileImage.d.ts.map +1 -1
  442. package/source/TileJSON.d.ts +1 -1
  443. package/source/TileJSON.d.ts.map +1 -1
  444. package/source/TileWMS.d.ts +1 -1
  445. package/source/TileWMS.d.ts.map +1 -1
  446. package/source/UTFGrid.d.ts +2 -2
  447. package/source/UTFGrid.d.ts.map +1 -1
  448. package/source/UrlTile.d.ts +1 -1
  449. package/source/UrlTile.d.ts.map +1 -1
  450. package/source/Vector.d.ts +3 -3
  451. package/source/Vector.d.ts.map +1 -1
  452. package/source/Vector.js +6 -3
  453. package/source/VectorTile.d.ts +4 -4
  454. package/source/VectorTile.d.ts.map +1 -1
  455. package/source/WMTS.d.ts +1 -1
  456. package/source/WMTS.d.ts.map +1 -1
  457. package/source/XYZ.d.ts +1 -1
  458. package/source/XYZ.d.ts.map +1 -1
  459. package/source/Zoomify.d.ts +2 -2
  460. package/source/Zoomify.d.ts.map +1 -1
  461. package/structs/LRUCache.d.ts.map +1 -1
  462. package/structs/LRUCache.js +2 -1
  463. package/style/Circle.d.ts +1 -1
  464. package/style/Circle.d.ts.map +1 -1
  465. package/style/Icon.d.ts +4 -78
  466. package/style/Icon.d.ts.map +1 -1
  467. package/style/Icon.js +89 -86
  468. package/style/IconImage.d.ts +1 -1
  469. package/style/IconImage.d.ts.map +1 -1
  470. package/style/RegularShape.d.ts +1 -1
  471. package/style/RegularShape.d.ts.map +1 -1
  472. package/style/RegularShape.js +1 -1
  473. package/style/Style.d.ts +2 -2
  474. package/style/Style.d.ts.map +1 -1
  475. package/style/Text.d.ts +5 -5
  476. package/style/Text.d.ts.map +1 -1
  477. package/style/Text.js +2 -2
  478. package/style/expressions.d.ts +42 -17
  479. package/style/expressions.d.ts.map +1 -1
  480. package/style/expressions.js +258 -118
  481. package/style/flat.d.ts +14 -0
  482. package/style/flat.d.ts.map +1 -1
  483. package/style/flat.js +6 -0
  484. package/style/literal.d.ts +204 -3
  485. package/style/literal.d.ts.map +1 -1
  486. package/style/literal.js +106 -3
  487. package/tilegrid/TileGrid.d.ts +1 -9
  488. package/tilegrid/TileGrid.d.ts.map +1 -1
  489. package/tilegrid/TileGrid.js +0 -18
  490. package/tilegrid/WMTS.d.ts +1 -1
  491. package/tilegrid/WMTS.d.ts.map +1 -1
  492. package/tilegrid.d.ts +1 -1
  493. package/tilegrid.d.ts.map +1 -1
  494. package/util.d.ts.map +1 -1
  495. package/util.js +1 -1
  496. package/webgl/BaseTileRepresentation.d.ts +72 -0
  497. package/webgl/BaseTileRepresentation.d.ts.map +1 -0
  498. package/webgl/BaseTileRepresentation.js +108 -0
  499. package/webgl/Buffer.d.ts +9 -6
  500. package/webgl/Buffer.d.ts.map +1 -1
  501. package/webgl/Buffer.js +6 -0
  502. package/webgl/Helper.d.ts +19 -12
  503. package/webgl/Helper.d.ts.map +1 -1
  504. package/webgl/Helper.js +79 -71
  505. package/webgl/ShaderBuilder.d.ts +75 -65
  506. package/webgl/ShaderBuilder.d.ts.map +1 -1
  507. package/webgl/ShaderBuilder.js +382 -241
  508. package/webgl/TileGeometry.d.ts +29 -0
  509. package/webgl/TileGeometry.d.ts.map +1 -0
  510. package/webgl/TileGeometry.js +73 -0
  511. package/webgl/TileTexture.d.ts +8 -51
  512. package/webgl/TileTexture.d.ts.map +1 -1
  513. package/webgl/TileTexture.js +11 -62
  514. package/webgl/styleparser.d.ts +61 -0
  515. package/webgl/styleparser.d.ts.map +1 -0
  516. package/webgl/styleparser.js +406 -0
  517. package/worker/webgl.js +1 -1
  518. package/events/KeyCode.d.ts +0 -8
  519. package/events/KeyCode.d.ts.map +0 -1
  520. package/events/KeyCode.js +0 -14
  521. package/render/webgl/BatchRenderer.d.ts +0 -92
  522. package/render/webgl/BatchRenderer.d.ts.map +0 -1
  523. package/render/webgl/BatchRenderer.js +0 -200
  524. package/render/webgl/LineStringBatchRenderer.d.ts +0 -27
  525. package/render/webgl/LineStringBatchRenderer.d.ts.map +0 -1
  526. package/render/webgl/LineStringBatchRenderer.js +0 -114
  527. package/render/webgl/PointBatchRenderer.d.ts +0 -26
  528. package/render/webgl/PointBatchRenderer.d.ts.map +0 -1
  529. package/render/webgl/PointBatchRenderer.js +0 -95
  530. package/render/webgl/PolygonBatchRenderer.d.ts +0 -25
  531. package/render/webgl/PolygonBatchRenderer.d.ts.map +0 -1
  532. package/render/webgl/PolygonBatchRenderer.js +0 -115
  533. package/renderer/webgl/shaders.d.ts +0 -43
  534. package/renderer/webgl/shaders.d.ts.map +0 -1
  535. package/renderer/webgl/shaders.js +0 -198
package/style/flat.d.ts CHANGED
@@ -112,6 +112,10 @@
112
112
  * `top-left` or `top-right`.
113
113
  * @property {number} [icon-opacity=1] Opacity of the icon.
114
114
  * @property {number|import("../size.js").Size} [icon-scale=1] Scale.
115
+ * @property {number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
116
+ * with `scale`.
117
+ * @property {number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
118
+ * with `scale`.
115
119
  * @property {number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
116
120
  * @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
117
121
  * @property {import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
@@ -440,6 +444,16 @@ export type FlatIcon = {
440
444
  * Scale.
441
445
  */
442
446
  "icon-scale"?: number | import("../size.js").Size | undefined;
447
+ /**
448
+ * Width of the icon. If not specified, the actual image width will be used. Cannot be combined
449
+ * with `scale`.
450
+ */
451
+ "icon-width"?: number | undefined;
452
+ /**
453
+ * Height of the icon. If not specified, the actual image height will be used. Cannot be combined
454
+ * with `scale`.
455
+ */
456
+ "icon-height"?: number | undefined;
443
457
  /**
444
458
  * Rotation in radians (positive rotation clockwise).
445
459
  */
@@ -1 +1 @@
1
- {"version":3,"file":"flat.d.ts","sourceRoot":"","sources":["flat.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH;;;GAGG;AACH,mCAHW,SAAS,GACR,OAAO,YAAY,EAAE,OAAO,CAWvC;;;;;wBAvLY,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU;;;;4BAMpE,SAAS,GAAC,MAAM,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAoHzB,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA0BvC,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAuBvC,WAAW,GAAC,UAAU,GAAC,MAAM,GAAC,SAAS"}
package/style/flat.js CHANGED
@@ -129,6 +129,10 @@ import Text from './Text.js';
129
129
  * `top-left` or `top-right`.
130
130
  * @property {number} [icon-opacity=1] Opacity of the icon.
131
131
  * @property {number|import("../size.js").Size} [icon-scale=1] Scale.
132
+ * @property {number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
133
+ * with `scale`.
134
+ * @property {number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
135
+ * with `scale`.
132
136
  * @property {number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
133
137
  * @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
134
138
  * @property {import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
@@ -294,6 +298,8 @@ function getImage(flatStyle) {
294
298
  displacement: flatStyle['icon-displacement'],
295
299
  opacity: flatStyle['icon-opacity'],
296
300
  scale: flatStyle['icon-scale'],
301
+ width: flatStyle['icon-width'],
302
+ height: flatStyle['icon-height'],
297
303
  rotation: flatStyle['icon-rotation'],
298
304
  rotateWithView: flatStyle['icon-rotate-with-view'],
299
305
  size: flatStyle['icon-size'],
@@ -6,7 +6,8 @@ export namespace SymbolType {
6
6
  const IMAGE: string;
7
7
  }
8
8
  export type ExpressionValue = import("./expressions.js").ExpressionValue;
9
- export type LiteralStyle = {
9
+ export type ColorExpression = import("../color.js").Color | string | Array<ExpressionValue>;
10
+ export type BaseProps = {
10
11
  /**
11
12
  * Filter expression. If it resolves to a number strictly greater than 0, the
12
13
  * point will be displayed. If undefined, all points will show.
@@ -17,7 +18,7 @@ export type LiteralStyle = {
17
18
  * Note: **this object is meant to be mutated**: changes to the values will immediately be visible on the rendered features
18
19
  */
19
20
  variables?: {
20
- [x: string]: number;
21
+ [x: string]: string | number | boolean | number[];
21
22
  } | undefined;
22
23
  /**
23
24
  * Symbol representation.
@@ -44,7 +45,7 @@ export type LiteralSymbolStyle = {
44
45
  /**
45
46
  * Color used for the representation (either fill, line or symbol).
46
47
  */
47
- color?: string | import("../color.js").Color | import("./expressions.js").ExpressionValue[] | undefined;
48
+ color?: ColorExpression | undefined;
48
49
  /**
49
50
  * Opacity.
50
51
  */
@@ -66,4 +67,204 @@ export type LiteralSymbolStyle = {
66
67
  */
67
68
  rotateWithView?: boolean | undefined;
68
69
  };
70
+ export type FillProps = {
71
+ /**
72
+ * The fill color.
73
+ */
74
+ "fill-color"?: ColorExpression | undefined;
75
+ };
76
+ export type StrokeProps = {
77
+ /**
78
+ * The stroke color.
79
+ */
80
+ "stroke-color"?: ColorExpression | undefined;
81
+ /**
82
+ * Stroke pixel width.
83
+ */
84
+ "stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
85
+ };
86
+ export type IconProps = {
87
+ /**
88
+ * Image source URI.
89
+ */
90
+ "icon-src"?: string | undefined;
91
+ /**
92
+ * Image object for the icon. If the `icon-src` option is not provided then the
93
+ * provided image must already be loaded. And in that case, it is required
94
+ * to provide the size of the image, with the `icon-img-size` option.
95
+ */
96
+ "icon-img"?: HTMLCanvasElement | HTMLImageElement | undefined;
97
+ /**
98
+ * Image size in pixels. Only required if `icon-img` is set and `icon-src` is not.
99
+ * The provided size needs to match the actual size of the image.
100
+ */
101
+ "icon-img-size"?: import("../size.js").Size | undefined;
102
+ /**
103
+ * Anchor. Default value is the icon center.
104
+ */
105
+ "icon-anchor"?: number[] | undefined;
106
+ /**
107
+ * Origin of the anchor: `bottom-left`, `bottom-right`,
108
+ * `top-left` or `top-right`.
109
+ */
110
+ "icon-anchor-origin"?: import("./Icon.js").IconOrigin | undefined;
111
+ /**
112
+ * Units in which the anchor x value is
113
+ * specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
114
+ * the x value in pixels.
115
+ */
116
+ "icon-anchor-x-units"?: import("./Icon.js").IconAnchorUnits | undefined;
117
+ /**
118
+ * Units in which the anchor y value is
119
+ * specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
120
+ * the y value in pixels.
121
+ */
122
+ "icon-anchor-y-units"?: import("./Icon.js").IconAnchorUnits | undefined;
123
+ /**
124
+ * Color to tint the icon. If not specified,
125
+ * the icon will be left as is.
126
+ */
127
+ "icon-color"?: ColorExpression | undefined;
128
+ /**
129
+ * The `crossOrigin` attribute for loaded images. Note that you must provide a
130
+ * `icon-cross-origin` value if you want to access pixel data with the Canvas renderer.
131
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
132
+ */
133
+ "icon-cross-origin"?: string | null | undefined;
134
+ /**
135
+ * Offset, which, together with the size and the offset origin, define the
136
+ * sub-rectangle to use from the original icon image.
137
+ */
138
+ "icon-offset"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
139
+ /**
140
+ * Displacement of the icon.
141
+ */
142
+ "icon-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
143
+ /**
144
+ * Origin of the offset: `bottom-left`, `bottom-right`,
145
+ * `top-left` or `top-right`.
146
+ */
147
+ "icon-offset-origin"?: import("./Icon.js").IconOrigin | undefined;
148
+ /**
149
+ * Opacity of the icon.
150
+ */
151
+ "icon-opacity"?: number | undefined;
152
+ /**
153
+ * Scale.
154
+ */
155
+ "icon-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
156
+ /**
157
+ * Width of the icon. If not specified, the actual image width will be used. Cannot be combined
158
+ * with `scale`.
159
+ */
160
+ "icon-width"?: import("./expressions.js").ExpressionValue | undefined;
161
+ /**
162
+ * Height of the icon. If not specified, the actual image height will be used. Cannot be combined
163
+ * with `scale`.
164
+ */
165
+ "icon-height"?: import("./expressions.js").ExpressionValue | undefined;
166
+ /**
167
+ * Rotation in radians (positive rotation clockwise).
168
+ */
169
+ "icon-rotation"?: import("./expressions.js").ExpressionValue | undefined;
170
+ /**
171
+ * Whether to rotate the icon with the view.
172
+ */
173
+ "icon-rotate-with-view"?: boolean | undefined;
174
+ /**
175
+ * Icon size in pixel. Can be used together with `icon-offset` to define the
176
+ * sub-rectangle to use from the origin (sprite) icon image.
177
+ */
178
+ "icon-size"?: import("../size.js").Size | import("./expressions.js").ExpressionValue[] | undefined;
179
+ };
180
+ export type ShapeProps = {
181
+ /**
182
+ * Number of points for stars and regular polygons. In case of a polygon, the number of points
183
+ * is the number of sides.
184
+ */
185
+ "shape-points"?: number | undefined;
186
+ /**
187
+ * The fill color.
188
+ */
189
+ "shape-fill-color"?: ColorExpression | undefined;
190
+ /**
191
+ * The stroke color.
192
+ */
193
+ "shape-stroke-color"?: ColorExpression | undefined;
194
+ /**
195
+ * Stroke pixel width.
196
+ */
197
+ "shape-stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
198
+ /**
199
+ * Radius of a regular polygon.
200
+ */
201
+ "shape-radius"?: import("./expressions.js").ExpressionValue | undefined;
202
+ /**
203
+ * First radius of a star. Ignored if radius is set.
204
+ */
205
+ "shape-radius1"?: import("./expressions.js").ExpressionValue | undefined;
206
+ /**
207
+ * Second radius of a star.
208
+ */
209
+ "shape-radius2"?: import("./expressions.js").ExpressionValue | undefined;
210
+ /**
211
+ * Shape's angle in radians. A value of 0 will have one of the shape's point facing up.
212
+ */
213
+ "shape-angle"?: import("./expressions.js").ExpressionValue | undefined;
214
+ /**
215
+ * Displacement of the shape
216
+ */
217
+ "shape-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
218
+ /**
219
+ * Rotation in radians (positive rotation clockwise).
220
+ */
221
+ "shape-rotation"?: import("./expressions.js").ExpressionValue | undefined;
222
+ /**
223
+ * Whether to rotate the shape with the view.
224
+ */
225
+ "shape-rotate-with-view"?: boolean | undefined;
226
+ /**
227
+ * Scale. Unless two dimensional scaling is required a better
228
+ * result may be obtained with appropriate settings for `shape-radius`, `shape-radius1` and `shape-radius2`.
229
+ */
230
+ "shape-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
231
+ };
232
+ export type CircleProps = {
233
+ /**
234
+ * Circle radius.
235
+ */
236
+ "circle-radius"?: import("./expressions.js").ExpressionValue | undefined;
237
+ /**
238
+ * The fill color.
239
+ */
240
+ "circle-fill-color"?: ColorExpression | undefined;
241
+ /**
242
+ * The stroke color.
243
+ */
244
+ "circle-stroke-color"?: ColorExpression | undefined;
245
+ /**
246
+ * Stroke pixel width.
247
+ */
248
+ "circle-stroke-width"?: import("./expressions.js").ExpressionValue | undefined;
249
+ /**
250
+ * displacement
251
+ */
252
+ "circle-displacement"?: number[] | import("./expressions.js").ExpressionValue[] | undefined;
253
+ /**
254
+ * Scale. A two dimensional scale will produce an ellipse.
255
+ * Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for `circle-radius`.
256
+ */
257
+ "circle-scale"?: import("../size.js").Size | import("./expressions.js").ExpressionValue | import("./expressions.js").ExpressionValue[] | undefined;
258
+ /**
259
+ * Rotation in radians
260
+ * (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale).
261
+ */
262
+ "circle-rotation"?: import("./expressions.js").ExpressionValue | undefined;
263
+ /**
264
+ * Whether to rotate the shape with the view
265
+ * (meaningful only when used in conjunction with a two dimensional scale).
266
+ */
267
+ "circle-rotate-with-view"?: boolean | undefined;
268
+ };
269
+ export type LiteralStyle = BaseProps & IconProps & StrokeProps & FillProps & CircleProps & ShapeProps;
69
270
  //# sourceMappingURL=literal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["literal.js"],"names":[],"mappings":"yBAoBU,MAAM;;;;;;;8BAbH,OAAO,kBAAkB,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;UAwBzC,eAAe,GAAC,MAAM,eAAe,CAAC;;;;gBACtC,UAAU"}
1
+ {"version":3,"file":"literal.d.ts","sourceRoot":"","sources":["literal.js"],"names":[],"mappings":"yBAuBU,MAAM;;;;;;;8BAhBH,OAAO,kBAAkB,EAAE,eAAe;8BAG1C,OAAO,aAAa,EAAE,KAAK,GAAC,MAAM,GAAC,MAAM,eAAe,CAAC;;;;;;;;;;;;;;;;;;;;;;;UAwBxD,eAAe,GAAC,MAAM,eAAe,CAAC;;;;gBACtC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4GX,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU"}
package/style/literal.js CHANGED
@@ -7,12 +7,15 @@
7
7
  /**
8
8
  * @typedef {import("./expressions.js").ExpressionValue} ExpressionValue
9
9
  */
10
+ /**
11
+ * @typedef {import("../color.js").Color|string|Array<ExpressionValue>} ColorExpression
12
+ */
10
13
 
11
14
  /**
12
- * @typedef {Object} LiteralStyle
15
+ * @typedef {Object} BaseProps
13
16
  * @property {ExpressionValue} [filter] Filter expression. If it resolves to a number strictly greater than 0, the
14
17
  * point will be displayed. If undefined, all points will show.
15
- * @property {Object<string, number>} [variables] Style variables; each variable must hold a number.
18
+ * @property {Object<string, number | Array<number> | string | boolean>} [variables] Style variables; each variable must hold a number.
16
19
  * Note: **this object is meant to be mutated**: changes to the values will immediately be visible on the rendered features
17
20
  * @property {LiteralSymbolStyle} [symbol] Symbol representation.
18
21
  */
@@ -33,10 +36,110 @@ export const SymbolType = {
33
36
  * @property {SymbolType} symbolType Symbol type to use, either a regular shape or an image.
34
37
  * @property {string} [src] Path to the image to be used for the symbol. Only required with `symbolType: 'image'`.
35
38
  * @property {string} [crossOrigin='anonymous'] The `crossOrigin` attribute for loading `src`.
36
- * @property {import("../color.js").Color|Array<ExpressionValue>|string} [color='#FFFFFF'] Color used for the representation (either fill, line or symbol).
39
+ * @property {ColorExpression} [color] Color used for the representation (either fill, line or symbol).
37
40
  * @property {ExpressionValue} [opacity=1] Opacity.
38
41
  * @property {ExpressionValue} [rotation=0] Symbol rotation in radians.
39
42
  * @property {Array<ExpressionValue, ExpressionValue>} [offset] Offset on X and Y axis for symbols. If not specified, the symbol will be centered.
40
43
  * @property {Array<ExpressionValue, ExpressionValue, ExpressionValue, ExpressionValue>} [textureCoord] Texture coordinates. If not specified, the whole texture will be used (range for 0 to 1 on both axes).
41
44
  * @property {boolean} [rotateWithView=false] Specify whether the symbol must rotate with the view or stay upwards.
42
45
  */
46
+
47
+ /**
48
+ * @typedef {Object} FillProps
49
+ * @property {ColorExpression} [fill-color] The fill color.
50
+ */
51
+
52
+ /**
53
+ * @typedef {Object} StrokeProps
54
+ * @property {ColorExpression} [stroke-color] The stroke color.
55
+ * @property {number|ExpressionValue} [stroke-width] Stroke pixel width.
56
+ */
57
+
58
+ /**
59
+ * @typedef {Object} IconProps
60
+ * @property {string} [icon-src] Image source URI.
61
+ * @property {HTMLImageElement|HTMLCanvasElement} [icon-img] Image object for the icon. If the `icon-src` option is not provided then the
62
+ * provided image must already be loaded. And in that case, it is required
63
+ * to provide the size of the image, with the `icon-img-size` option.
64
+ * @property {import("../size.js").Size} [icon-img-size] Image size in pixels. Only required if `icon-img` is set and `icon-src` is not.
65
+ * The provided size needs to match the actual size of the image.
66
+ * @property {Array<number>} [icon-anchor=[0.5, 0.5]] Anchor. Default value is the icon center.
67
+ * @property {import("./Icon.js").IconOrigin} [icon-anchor-origin='top-left'] Origin of the anchor: `bottom-left`, `bottom-right`,
68
+ * `top-left` or `top-right`.
69
+ * @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-x-units='fraction'] Units in which the anchor x value is
70
+ * specified. A value of `'fraction'` indicates the x value is a fraction of the icon. A value of `'pixels'` indicates
71
+ * the x value in pixels.
72
+ * @property {import("./Icon.js").IconAnchorUnits} [icon-anchor-y-units='fraction'] Units in which the anchor y value is
73
+ * specified. A value of `'fraction'` indicates the y value is a fraction of the icon. A value of `'pixels'` indicates
74
+ * the y value in pixels.
75
+ * @property {ColorExpression} [icon-color] Color to tint the icon. If not specified,
76
+ * the icon will be left as is.
77
+ * @property {null|string} [icon-cross-origin] The `crossOrigin` attribute for loaded images. Note that you must provide a
78
+ * `icon-cross-origin` value if you want to access pixel data with the Canvas renderer.
79
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more detail.
80
+ * @property {Array<number>|Array<ExpressionValue>} [icon-offset=[0, 0]] Offset, which, together with the size and the offset origin, define the
81
+ * sub-rectangle to use from the original icon image.
82
+ * @property {Array<number>|Array<ExpressionValue>} [icon-displacement=[0,0]] Displacement of the icon.
83
+ * @property {import("./Icon.js").IconOrigin} [icon-offset-origin='top-left'] Origin of the offset: `bottom-left`, `bottom-right`,
84
+ * `top-left` or `top-right`.
85
+ * @property {number} [icon-opacity=1] Opacity of the icon.
86
+ * @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [icon-scale=1] Scale.
87
+ * @property {ExpressionValue|number} [icon-width] Width of the icon. If not specified, the actual image width will be used. Cannot be combined
88
+ * with `scale`.
89
+ * @property {ExpressionValue|number} [icon-height] Height of the icon. If not specified, the actual image height will be used. Cannot be combined
90
+ * with `scale`.
91
+ * @property {ExpressionValue|number} [icon-rotation=0] Rotation in radians (positive rotation clockwise).
92
+ * @property {boolean} [icon-rotate-with-view=false] Whether to rotate the icon with the view.
93
+ * @property {Array<ExpressionValue>|import("../size.js").Size} [icon-size] Icon size in pixel. Can be used together with `icon-offset` to define the
94
+ * sub-rectangle to use from the origin (sprite) icon image.
95
+ */
96
+
97
+ /**
98
+ * @typedef {Object} ShapeProps
99
+ * @property {number} [shape-points] Number of points for stars and regular polygons. In case of a polygon, the number of points
100
+ * is the number of sides.
101
+ * @property {ColorExpression} [shape-fill-color] The fill color.
102
+ * @property {ColorExpression} [shape-stroke-color] The stroke color.
103
+ * @property {ExpressionValue|number} [shape-stroke-width] Stroke pixel width.
104
+ * @property {ExpressionValue|number} [shape-radius] Radius of a regular polygon.
105
+ * @property {ExpressionValue|number} [shape-radius1] First radius of a star. Ignored if radius is set.
106
+ * @property {ExpressionValue|number} [shape-radius2] Second radius of a star.
107
+ * @property {ExpressionValue|number} [shape-angle=0] Shape's angle in radians. A value of 0 will have one of the shape's point facing up.
108
+ * @property {Array<ExpressionValue>|Array<number>} [shape-displacement=[0,0]] Displacement of the shape
109
+ * @property {ExpressionValue|number} [shape-rotation=0] Rotation in radians (positive rotation clockwise).
110
+ * @property {boolean} [shape-rotate-with-view=false] Whether to rotate the shape with the view.
111
+ * @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [shape-scale=1] Scale. Unless two dimensional scaling is required a better
112
+ * result may be obtained with appropriate settings for `shape-radius`, `shape-radius1` and `shape-radius2`.
113
+ */
114
+
115
+ /**
116
+ * @typedef {Object} CircleProps
117
+ * @property {ExpressionValue|number} [circle-radius] Circle radius.
118
+ * @property {ColorExpression} [circle-fill-color] The fill color.
119
+ * @property {ColorExpression} [circle-stroke-color] The stroke color.
120
+ * @property {ExpressionValue|number} [circle-stroke-width] Stroke pixel width.
121
+ * @property {Array<ExpressionValue>|Array<number>} [circle-displacement=[0,0]] displacement
122
+ * @property {ExpressionValue|Array<ExpressionValue>|number|import("../size.js").Size} [circle-scale=1] Scale. A two dimensional scale will produce an ellipse.
123
+ * Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for `circle-radius`.
124
+ * @property {ExpressionValue|number} [circle-rotation=0] Rotation in radians
125
+ * (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale).
126
+ * @property {boolean} [circle-rotate-with-view=false] Whether to rotate the shape with the view
127
+ * (meaningful only when used in conjunction with a two dimensional scale).
128
+ */
129
+
130
+ // FIXME Present in flat style but not implemented in literal webgl style:
131
+ // - color like (fill patterns etc.)
132
+ // - stroke line cap/join/miter limit
133
+ // - stroke dash pattern/offset
134
+ // - icon declutter mode
135
+ // - circle line cap/join/miter limit
136
+ // - circle dash pattern/offset
137
+ // - circle declutter mode
138
+ // - shape line cap/join/miter limit
139
+ // - shape dash pattern/offset
140
+ // - shape declutter mode
141
+ // - text style
142
+
143
+ /**
144
+ * @typedef {BaseProps & IconProps & StrokeProps & FillProps & CircleProps & ShapeProps} LiteralStyle
145
+ */
@@ -222,14 +222,6 @@ declare class TileGrid {
222
222
  * @return {import("../TileRange.js").default|null} Tile range.
223
223
  */
224
224
  getTileRangeForTileCoordAndZ(tileCoord: import("../tilecoord.js").TileCoord, z: number, tempTileRange?: TileRange | undefined): import("../TileRange.js").default | null;
225
- /**
226
- * Get the extent for a tile range.
227
- * @param {number} z Integer zoom level.
228
- * @param {import("../TileRange.js").default} tileRange Tile range.
229
- * @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
230
- * @return {import("../extent.js").Extent} Extent.
231
- */
232
- getTileRangeExtent(z: number, tileRange: import("../TileRange.js").default, tempExtent?: import("../extent.js").Extent | undefined): import("../extent.js").Extent;
233
225
  /**
234
226
  * Get a tile range for the given extent and integer zoom level.
235
227
  * @param {import("../extent.js").Extent} extent Extent.
@@ -353,5 +345,5 @@ declare class TileGrid {
353
345
  */
354
346
  private calculateTileRanges_;
355
347
  }
356
- import TileRange from "../TileRange.js";
348
+ import TileRange from '../TileRange.js';
357
349
  //# sourceMappingURL=TileGrid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TileGrid.d.ts","sourceRoot":"","sources":["TileGrid.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyCe,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAd5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAqJjB;IAlJC;;;OAGG;IACH,mBAFU,MAAM,CAEkD;IAElE;;;OAGG;IACH,qBAAuC;IA2BvC;;;OAGG;IACH,oBAA6B;IAE7B;;;OAGG;IACH,mBAFU,MAAM,CAE2B;IAE3C;;;OAGG;IACH,gBAAmE;IAEnE;;;OAGG;IACH,iBAAoB;IAiBpB;;;OAGG;IACH,mBAAsB;IAMtB;;;OAGG;IACH,kBAKU;IAOV;;;OAGG;IACH,gBAAmD;IAEnD;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,iBAAsB;IAEtB;;;OAGG;IACH,mBAA8B;IAwBhC;;;;;;;OAOG;IACH,yBALW,OAAO,cAAc,EAAE,MAAM,QAC7B,MAAM,mBACG,OAAO,iBAAiB,EAAE,SAAS,KAAG,IAAI,QAU7D;IAED;;;;;;OAMG;IACH,2CANW,OAAO,iBAAiB,EAAE,SAAS,mBAC1B,MAAM,QAAE,OAAO,iBAAiB,EAAE,OAAO,KAAG,OAAO,kGAG3D,OAAO,CAmClB;IAED;;;;OAIG;IACH,aAHY,OAAO,cAAc,EAAE,MAAM,CAKxC;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;OAIG;IACH,cAHY,MAAM,CAKjB;IAED;;;;;OAKG;IACH,aAJW,MAAM,GACL,OAAO,kBAAkB,EAAE,UA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S5C;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,8BAhBW,MAAM,wFAaL,MAAM,CAUjB;IAED;;;;;OAKG;IACH,uCAJW,OAAO,iBAAiB,EAAE,SAAS,YACnC,MAAM,MAAM,CAAC,GACZ,OAAO,CAUlB;IAED;;;OAGG;IACH,6BAOC;CACF;sBAhpBM,iBAAiB"}
@@ -407,24 +407,6 @@ class TileGrid {
407
407
  return this.getTileRangeForExtentAndZ(tileCoordExtent, z, tempTileRange);
408
408
  }
409
409
 
410
- /**
411
- * Get the extent for a tile range.
412
- * @param {number} z Integer zoom level.
413
- * @param {import("../TileRange.js").default} tileRange Tile range.
414
- * @param {import("../extent.js").Extent} [tempExtent] Temporary import("../extent.js").Extent object.
415
- * @return {import("../extent.js").Extent} Extent.
416
- */
417
- getTileRangeExtent(z, tileRange, tempExtent) {
418
- const origin = this.getOrigin(z);
419
- const resolution = this.getResolution(z);
420
- const tileSize = toSize(this.getTileSize(z), this.tmpSize_);
421
- const minX = origin[0] + tileRange.minX * tileSize[0] * resolution;
422
- const maxX = origin[0] + (tileRange.maxX + 1) * tileSize[0] * resolution;
423
- const minY = origin[1] + tileRange.minY * tileSize[1] * resolution;
424
- const maxY = origin[1] + (tileRange.maxY + 1) * tileSize[1] * resolution;
425
- return createOrUpdate(minX, minY, maxX, maxY, tempExtent);
426
- }
427
-
428
410
  /**
429
411
  * Get a tile range for the given extent and integer zoom level.
430
412
  * @param {import("../extent.js").Extent} extent Extent.
@@ -124,5 +124,5 @@ declare class WMTSTileGrid extends TileGrid {
124
124
  */
125
125
  getMatrixIds(): Array<string>;
126
126
  }
127
- import TileGrid from "./TileGrid.js";
127
+ import TileGrid from './TileGrid.js';
128
128
  //# sourceMappingURL=WMTS.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;GAWG;AACH,uJAHY,YAAY,CA4FvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtKc,MAAM,MAAM,CAAC;;;;;eAGb,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;AAjB5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkBjB;IALC;;;OAGG;IACH,mBAAmC;IAGrC;;;OAGG;IACH,eAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,gBAHY,MAAM,MAAM,CAAC,CAKxB;CACF"}
1
+ {"version":3,"file":"WMTS.d.ts","sourceRoot":"","sources":["WMTS.js"],"names":[],"mappings":"AAsFA;;;;;;;;;;;GAWG;AACH,uJAHY,YAAY,CA4FvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAtKc,MAAM,MAAM,CAAC;;;;;eAGb,MAAM,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;AAjB5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;GAIG;AACH;IACE;;OAEG;IACH,qBAFW,OAAO,EAkBjB;IALC;;;OAGG;IACH,mBAAmC;IAGrC;;;OAGG;IACH,eAHW,MAAM,GACL,MAAM,CAIjB;IAED;;;;OAIG;IACH,gBAHY,MAAM,MAAM,CAAC,CAKxB;CACF;qBA9EoB,eAAe"}
package/tilegrid.d.ts CHANGED
@@ -81,5 +81,5 @@ export type XYZOptions = {
81
81
  */
82
82
  tileSize?: number | import("./size.js").Size | undefined;
83
83
  };
84
- import TileGrid from "./tilegrid/TileGrid.js";
84
+ import TileGrid from './tilegrid/TileGrid.js';
85
85
  //# sourceMappingURL=tilegrid.d.ts.map
package/tilegrid.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tilegrid.d.ts","sourceRoot":"","sources":["tilegrid.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,6CAJW,OAAO,sBAAsB,EAAE,OAAO,GACpC,QAAQ,CAUpB;AAED;;;;;GAKG;AACH,gCALW,QAAQ,aACR,OAAO,gBAAgB,EAAE,SAAS,cAClC,OAAO,sBAAsB,EAAE,OAAO,GACrC,OAAO,gBAAgB,EAAE,SAAS,CAe7C;AAED;;;;;;;;GAQG;AACH,wCARW,OAAO,aAAa,EAAE,MAAM,8IAM1B,QAAQ,CAapB;AAED;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,6DAHa,QAAQ,CAoBpB;AAgCD;;;;;;;;GAQG;AACH,gDARW,OAAO,WAAW,EAAE,cAAc,8IAMhC,QAAQ,CAKpB;AAED;;;;;GAKG;AACH,iDAHW,OAAO,WAAW,EAAE,cAAc,GACjC,OAAO,aAAa,EAAE,MAAM,CAWvC"}
1
+ {"version":3,"file":"tilegrid.d.ts","sourceRoot":"","sources":["tilegrid.js"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,6CAJW,OAAO,sBAAsB,EAAE,OAAO,GACpC,QAAQ,CAUpB;AAED;;;;;GAKG;AACH,gCALW,QAAQ,aACR,OAAO,gBAAgB,EAAE,SAAS,cAClC,OAAO,sBAAsB,EAAE,OAAO,GACrC,OAAO,gBAAgB,EAAE,SAAS,CAe7C;AAED;;;;;;;;GAQG;AACH,wCARW,OAAO,aAAa,EAAE,MAAM,8IAM1B,QAAQ,CAapB;AAED;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,6DAHa,QAAQ,CAoBpB;AAgCD;;;;;;;;GAQG;AACH,gDARW,OAAO,WAAW,EAAE,cAAc,8IAMhC,QAAQ,CAKpB;AAED;;;;;GAKG;AACH,iDAHW,OAAO,WAAW,EAAE,cAAc,GACjC,OAAO,aAAa,EAAE,MAAM,CAWvC;;;;;;;;;;;;;;;;;;;;;;;;;;qBArKoB,wBAAwB"}
package/util.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,CAEe"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,4BAFY,KAAK,CAIhB;AASD;;;;;;;;GAQG;AACH,kCAHY,MAAM,CAKjB;AAED;;;GAGG;AACH,sBAFU,MAAM,CAEmB"}
package/util.js CHANGED
@@ -33,4 +33,4 @@ export function getUid(obj) {
33
33
  * OpenLayers version.
34
34
  * @type {string}
35
35
  */
36
- export const VERSION = '7.3.0';
36
+ export const VERSION = '7.3.1-dev';
@@ -0,0 +1,72 @@
1
+ export default BaseTileRepresentation;
2
+ export type BaseTileType = import("../Tile.js").default;
3
+ export type TileRepresentationOptions<TileType extends import("../Tile.js").default> = {
4
+ /**
5
+ * The tile.
6
+ */
7
+ tile: TileType;
8
+ /**
9
+ * Tile grid.
10
+ */
11
+ grid: import("../tilegrid/TileGrid.js").default;
12
+ /**
13
+ * WebGL helper.
14
+ */
15
+ helper: import("../webgl/Helper.js").default;
16
+ /**
17
+ * The size in pixels of the gutter around image tiles to ignore.
18
+ */
19
+ gutter?: number | undefined;
20
+ };
21
+ /**
22
+ * @typedef {import("../Tile.js").default} BaseTileType
23
+ */
24
+ /**
25
+ * @template {BaseTileType} TileType
26
+ * @typedef {Object} TileRepresentationOptions
27
+ * @property {TileType} tile The tile.
28
+ * @property {import("../tilegrid/TileGrid.js").default} grid Tile grid.
29
+ * @property {import("../webgl/Helper.js").default} helper WebGL helper.
30
+ * @property {number} [gutter=0] The size in pixels of the gutter around image tiles to ignore.
31
+ */
32
+ /**
33
+ * @classdesc
34
+ * Base class for representing a tile in a webgl context
35
+ * @template {import("../Tile.js").default} TileType
36
+ * @abstract
37
+ */
38
+ declare class BaseTileRepresentation<TileType extends import("../Tile.js").default> extends EventTarget {
39
+ /**
40
+ * @param {TileRepresentationOptions<TileType>} options The tile representation options.
41
+ */
42
+ constructor(options: TileRepresentationOptions<TileType>);
43
+ /**
44
+ * @type {TileType}
45
+ */
46
+ tile: TileType;
47
+ handleTileChange_(): void;
48
+ /**
49
+ * @type {number}
50
+ * @protected
51
+ */
52
+ protected gutter_: number;
53
+ /**
54
+ * @type {import("../webgl/Helper.js").default}
55
+ * @protected
56
+ */
57
+ protected helper_: import("../webgl/Helper.js").default;
58
+ loaded: boolean;
59
+ ready: boolean;
60
+ /**
61
+ * @param {TileType} tile Tile.
62
+ */
63
+ setTile(tile: TileType): void;
64
+ /**
65
+ * @abstract
66
+ * @protected
67
+ */
68
+ protected uploadTile(): void;
69
+ setReady(): void;
70
+ }
71
+ import EventTarget from '../events/Target.js';
72
+ //# sourceMappingURL=BaseTileRepresentation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseTileRepresentation.d.ts","sourceRoot":"","sources":["BaseTileRepresentation.js"],"names":[],"mappings":";2BAWa,OAAO,YAAY,EAAE,OAAO;;;;;UAM3B,QAAQ;;;;UACR,OAAO,yBAAyB,EAAE,OAAO;;;;YACzC,OAAO,oBAAoB,EAAE,OAAO;;;;;;AATlD;;GAEG;AAEH;;;;;;;GAOG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,qBAFW,0BAA0B,QAAQ,CAAC,EAyB7C;IApBC;;OAEG;IACH,MAFU,QAAQ,CAET;IAwDX,0BAKC;IA1DC;;;OAGG;IACH,mBAHU,MAAM,CAGkB;IAElC;;;OAGG;IACH,mBAHU,OAAO,oBAAoB,EAAE,OAAO,CAGjB;IAE7B,gBAAmB;IACnB,eAAkB;IAGpB;;OAEG;IACH,cAFW,QAAQ,QAqBlB;IAED;;;OAGG;IACH,6BAEC;IAED,iBAGC;CAYF;wBArGuB,qBAAqB"}