@nextgis/react-ngw-leaflet 1.11.10 → 1.13.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 (426) hide show
  1. package/lib/index.d.ts +11 -0
  2. package/lib/react-ngw-leaflet.esm-bundler.js +28 -2
  3. package/lib/react-ngw-leaflet.esm-bundler.js.map +1 -1
  4. package/lib/react-ngw-leaflet.esm-bundler.prod.js +15 -1
  5. package/lib/react-ngw-leaflet.esm-bundler.prod.js.map +1 -1
  6. package/package.json +6 -6
  7. package/lib/packages/cache/src/Cache.d.ts +0 -85
  8. package/lib/packages/cache/src/Cache.d.ts.map +0 -1
  9. package/lib/packages/cache/src/index.d.ts +0 -9
  10. package/lib/packages/cache/src/index.d.ts.map +0 -1
  11. package/lib/packages/cancelable-promise/src/CancelError.d.ts +0 -5
  12. package/lib/packages/cancelable-promise/src/CancelError.d.ts.map +0 -1
  13. package/lib/packages/cancelable-promise/src/CancelablePromise.d.ts +0 -76
  14. package/lib/packages/cancelable-promise/src/CancelablePromise.d.ts.map +0 -1
  15. package/lib/packages/cancelable-promise/src/PromiseControl.d.ts +0 -23
  16. package/lib/packages/cancelable-promise/src/PromiseControl.d.ts.map +0 -1
  17. package/lib/packages/cancelable-promise/src/TimeoutError.d.ts +0 -5
  18. package/lib/packages/cancelable-promise/src/TimeoutError.d.ts.map +0 -1
  19. package/lib/packages/cancelable-promise/src/index.d.ts +0 -9
  20. package/lib/packages/cancelable-promise/src/index.d.ts.map +0 -1
  21. package/lib/packages/icons/src/index.d.ts +0 -14
  22. package/lib/packages/icons/src/index.d.ts.map +0 -1
  23. package/lib/packages/item/src/Item.d.ts +0 -12
  24. package/lib/packages/item/src/Item.d.ts.map +0 -1
  25. package/lib/packages/item/src/TreeHelper.d.ts +0 -20
  26. package/lib/packages/item/src/TreeHelper.d.ts.map +0 -1
  27. package/lib/packages/item/src/index.d.ts +0 -10
  28. package/lib/packages/item/src/index.d.ts.map +0 -1
  29. package/lib/packages/item/src/interfaces.d.ts +0 -44
  30. package/lib/packages/item/src/interfaces.d.ts.map +0 -1
  31. package/lib/packages/item/src/properties/BaseProperty.d.ts +0 -31
  32. package/lib/packages/item/src/properties/BaseProperty.d.ts.map +0 -1
  33. package/lib/packages/item/src/properties/CheckProperty.d.ts +0 -25
  34. package/lib/packages/item/src/properties/CheckProperty.d.ts.map +0 -1
  35. package/lib/packages/item/src/properties/ItemProperties.d.ts +0 -22
  36. package/lib/packages/item/src/properties/ItemProperties.d.ts.map +0 -1
  37. package/lib/packages/leaflet-map-adapter/src/LeafletMapAdapter.d.ts +0 -65
  38. package/lib/packages/leaflet-map-adapter/src/LeafletMapAdapter.d.ts.map +0 -1
  39. package/lib/packages/leaflet-map-adapter/src/controls/Attribution.d.ts +0 -6
  40. package/lib/packages/leaflet-map-adapter/src/controls/Attribution.d.ts.map +0 -1
  41. package/lib/packages/leaflet-map-adapter/src/controls/createButtonControl.d.ts +0 -4
  42. package/lib/packages/leaflet-map-adapter/src/controls/createButtonControl.d.ts.map +0 -1
  43. package/lib/packages/leaflet-map-adapter/src/controls/createControl.d.ts +0 -4
  44. package/lib/packages/leaflet-map-adapter/src/controls/createControl.d.ts.map +0 -1
  45. package/lib/packages/leaflet-map-adapter/src/index.d.ts +0 -6
  46. package/lib/packages/leaflet-map-adapter/src/index.d.ts.map +0 -1
  47. package/lib/packages/leaflet-map-adapter/src/layer-adapters/BaseAdapter.d.ts +0 -11
  48. package/lib/packages/leaflet-map-adapter/src/layer-adapters/BaseAdapter.d.ts.map +0 -1
  49. package/lib/packages/leaflet-map-adapter/src/layer-adapters/GeoJsonAdapter.d.ts +0 -66
  50. package/lib/packages/leaflet-map-adapter/src/layer-adapters/GeoJsonAdapter.d.ts.map +0 -1
  51. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageAdapter.d.ts +0 -9
  52. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageAdapter.d.ts.map +0 -1
  53. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageLayer.d.ts +0 -54
  54. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageLayer.d.ts.map +0 -1
  55. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageOverlay.d.ts +0 -12
  56. package/lib/packages/leaflet-map-adapter/src/layer-adapters/ImageAdapter/ImageOverlay.d.ts.map +0 -1
  57. package/lib/packages/leaflet-map-adapter/src/layer-adapters/OsmAdapter.d.ts +0 -7
  58. package/lib/packages/leaflet-map-adapter/src/layer-adapters/OsmAdapter.d.ts.map +0 -1
  59. package/lib/packages/leaflet-map-adapter/src/layer-adapters/TileAdapter/TileAdapter.d.ts +0 -7
  60. package/lib/packages/leaflet-map-adapter/src/layer-adapters/TileAdapter/TileAdapter.d.ts.map +0 -1
  61. package/lib/packages/leaflet-map-adapter/src/layer-adapters/TileAdapter/TileLayer.d.ts +0 -12
  62. package/lib/packages/leaflet-map-adapter/src/layer-adapters/TileAdapter/TileLayer.d.ts.map +0 -1
  63. package/lib/packages/leaflet-map-adapter/src/layer-adapters/WmsAdapter/WmsAdapter.d.ts +0 -7
  64. package/lib/packages/leaflet-map-adapter/src/layer-adapters/WmsAdapter/WmsAdapter.d.ts.map +0 -1
  65. package/lib/packages/leaflet-map-adapter/src/layer-adapters/WmsAdapter/WmsLayer.d.ts +0 -11
  66. package/lib/packages/leaflet-map-adapter/src/layer-adapters/WmsAdapter/WmsLayer.d.ts.map +0 -1
  67. package/lib/packages/leaflet-map-adapter/src/utils/arrayToBoundsExpression.d.ts +0 -4
  68. package/lib/packages/leaflet-map-adapter/src/utils/arrayToBoundsExpression.d.ts.map +0 -1
  69. package/lib/packages/leaflet-map-adapter/src/utils/boundsToArray.d.ts +0 -4
  70. package/lib/packages/leaflet-map-adapter/src/utils/boundsToArray.d.ts.map +0 -1
  71. package/lib/packages/leaflet-map-adapter/src/utils/callAjax.d.ts +0 -2
  72. package/lib/packages/leaflet-map-adapter/src/utils/callAjax.d.ts.map +0 -1
  73. package/lib/packages/leaflet-map-adapter/src/utils/convertMapClickEvent.d.ts +0 -4
  74. package/lib/packages/leaflet-map-adapter/src/utils/convertMapClickEvent.d.ts.map +0 -1
  75. package/lib/packages/leaflet-map-adapter/src/utils/createMouseEvent.d.ts +0 -8
  76. package/lib/packages/leaflet-map-adapter/src/utils/createMouseEvent.d.ts.map +0 -1
  77. package/lib/packages/leaflet-map-adapter/src/utils/detectType.d.ts +0 -3
  78. package/lib/packages/leaflet-map-adapter/src/utils/detectType.d.ts.map +0 -1
  79. package/lib/packages/leaflet-map-adapter/src/utils/geometries.d.ts +0 -19
  80. package/lib/packages/leaflet-map-adapter/src/utils/geometries.d.ts.map +0 -1
  81. package/lib/packages/leaflet-map-adapter/src/utils/makeRemoteTileLayer.d.ts +0 -4
  82. package/lib/packages/leaflet-map-adapter/src/utils/makeRemoteTileLayer.d.ts.map +0 -1
  83. package/lib/packages/ngw-connector/src/NgwConnector.d.ts +0 -192
  84. package/lib/packages/ngw-connector/src/NgwConnector.d.ts.map +0 -1
  85. package/lib/packages/ngw-connector/src/ResourcesControl.d.ts +0 -56
  86. package/lib/packages/ngw-connector/src/ResourcesControl.d.ts.map +0 -1
  87. package/lib/packages/ngw-connector/src/activeConnectors.d.ts +0 -8
  88. package/lib/packages/ngw-connector/src/activeConnectors.d.ts.map +0 -1
  89. package/lib/packages/ngw-connector/src/errors/InsufficientPermissionsError.d.ts +0 -11
  90. package/lib/packages/ngw-connector/src/errors/InsufficientPermissionsError.d.ts.map +0 -1
  91. package/lib/packages/ngw-connector/src/errors/NetworkError.d.ts +0 -8
  92. package/lib/packages/ngw-connector/src/errors/NetworkError.d.ts.map +0 -1
  93. package/lib/packages/ngw-connector/src/errors/NgwError.d.ts +0 -16
  94. package/lib/packages/ngw-connector/src/errors/NgwError.d.ts.map +0 -1
  95. package/lib/packages/ngw-connector/src/errors/ResourceNotFoundError.d.ts +0 -11
  96. package/lib/packages/ngw-connector/src/errors/ResourceNotFoundError.d.ts.map +0 -1
  97. package/lib/packages/ngw-connector/src/index.d.ts +0 -17
  98. package/lib/packages/ngw-connector/src/index.d.ts.map +0 -1
  99. package/lib/packages/ngw-connector/src/interfaces.d.ts +0 -152
  100. package/lib/packages/ngw-connector/src/interfaces.d.ts.map +0 -1
  101. package/lib/packages/ngw-connector/src/types/FeatureLayer.d.ts +0 -41
  102. package/lib/packages/ngw-connector/src/types/FeatureLayer.d.ts.map +0 -1
  103. package/lib/packages/ngw-connector/src/types/RequestItemsParamsMap.d.ts +0 -188
  104. package/lib/packages/ngw-connector/src/types/RequestItemsParamsMap.d.ts.map +0 -1
  105. package/lib/packages/ngw-connector/src/types/ResourceItem.d.ts +0 -217
  106. package/lib/packages/ngw-connector/src/types/ResourceItem.d.ts.map +0 -1
  107. package/lib/packages/ngw-connector/src/types/ResourceStore.d.ts +0 -10
  108. package/lib/packages/ngw-connector/src/types/ResourceStore.d.ts.map +0 -1
  109. package/lib/packages/ngw-connector/src/utils/apiRequest.d.ts +0 -13
  110. package/lib/packages/ngw-connector/src/utils/apiRequest.d.ts.map +0 -1
  111. package/lib/packages/ngw-connector/src/utils/isObject.d.ts +0 -2
  112. package/lib/packages/ngw-connector/src/utils/isObject.d.ts.map +0 -1
  113. package/lib/packages/ngw-connector/src/utils/loadData.d.ts +0 -5
  114. package/lib/packages/ngw-connector/src/utils/loadData.d.ts.map +0 -1
  115. package/lib/packages/ngw-connector/src/utils/resourceCompare.d.ts +0 -4
  116. package/lib/packages/ngw-connector/src/utils/resourceCompare.d.ts.map +0 -1
  117. package/lib/packages/ngw-connector/src/utils/resourceToQuery.d.ts +0 -14
  118. package/lib/packages/ngw-connector/src/utils/resourceToQuery.d.ts.map +0 -1
  119. package/lib/packages/ngw-connector/src/utils/template.d.ts +0 -4
  120. package/lib/packages/ngw-connector/src/utils/template.d.ts.map +0 -1
  121. package/lib/packages/ngw-kit/src/BookmarkItem.d.ts +0 -23
  122. package/lib/packages/ngw-kit/src/BookmarkItem.d.ts.map +0 -1
  123. package/lib/packages/ngw-kit/src/IdentifyItem.d.ts +0 -27
  124. package/lib/packages/ngw-kit/src/IdentifyItem.d.ts.map +0 -1
  125. package/lib/packages/ngw-kit/src/NgwKit.d.ts +0 -17
  126. package/lib/packages/ngw-kit/src/NgwKit.d.ts.map +0 -1
  127. package/lib/packages/ngw-kit/src/NgwResource.d.ts +0 -12
  128. package/lib/packages/ngw-kit/src/NgwResource.d.ts.map +0 -1
  129. package/lib/packages/ngw-kit/src/NgwWebmapItem.d.ts +0 -32
  130. package/lib/packages/ngw-kit/src/NgwWebmapItem.d.ts.map +0 -1
  131. package/lib/packages/ngw-kit/src/NgwWebmapLayerAdapter.d.ts +0 -46
  132. package/lib/packages/ngw-kit/src/NgwWebmapLayerAdapter.d.ts.map +0 -1
  133. package/lib/packages/ngw-kit/src/adapters/createAsyncAdapter.d.ts +0 -7
  134. package/lib/packages/ngw-kit/src/adapters/createAsyncAdapter.d.ts.map +0 -1
  135. package/lib/packages/ngw-kit/src/adapters/createBasemapLayerAdapter.d.ts +0 -5
  136. package/lib/packages/ngw-kit/src/adapters/createBasemapLayerAdapter.d.ts.map +0 -1
  137. package/lib/packages/ngw-kit/src/adapters/createGeoJsonAdapter.d.ts +0 -5
  138. package/lib/packages/ngw-kit/src/adapters/createGeoJsonAdapter.d.ts.map +0 -1
  139. package/lib/packages/ngw-kit/src/adapters/createNgwWebmapAdapter.d.ts +0 -5
  140. package/lib/packages/ngw-kit/src/adapters/createNgwWebmapAdapter.d.ts.map +0 -1
  141. package/lib/packages/ngw-kit/src/adapters/createOnFirstShowAdapter.d.ts +0 -15
  142. package/lib/packages/ngw-kit/src/adapters/createOnFirstShowAdapter.d.ts.map +0 -1
  143. package/lib/packages/ngw-kit/src/adapters/createOnFirstShowNgwAdapter.d.ts +0 -13
  144. package/lib/packages/ngw-kit/src/adapters/createOnFirstShowNgwAdapter.d.ts.map +0 -1
  145. package/lib/packages/ngw-kit/src/adapters/createRasterAdapter.d.ts +0 -5
  146. package/lib/packages/ngw-kit/src/adapters/createRasterAdapter.d.ts.map +0 -1
  147. package/lib/packages/ngw-kit/src/constants.d.ts +0 -2
  148. package/lib/packages/ngw-kit/src/constants.d.ts.map +0 -1
  149. package/lib/packages/ngw-kit/src/index.d.ts +0 -83
  150. package/lib/packages/ngw-kit/src/index.d.ts.map +0 -1
  151. package/lib/packages/ngw-kit/src/interfaces.d.ts +0 -249
  152. package/lib/packages/ngw-kit/src/interfaces.d.ts.map +0 -1
  153. package/lib/packages/ngw-kit/src/utils/WebmapLayerOpacityPropertyHandler.d.ts +0 -11
  154. package/lib/packages/ngw-kit/src/utils/WebmapLayerOpacityPropertyHandler.d.ts.map +0 -1
  155. package/lib/packages/ngw-kit/src/utils/createPopupContent.d.ts +0 -4
  156. package/lib/packages/ngw-kit/src/utils/createPopupContent.d.ts.map +0 -1
  157. package/lib/packages/ngw-kit/src/utils/featureLayerUtils.d.ts +0 -19
  158. package/lib/packages/ngw-kit/src/utils/featureLayerUtils.d.ts.map +0 -1
  159. package/lib/packages/ngw-kit/src/utils/fetchNgwExtent.d.ts +0 -12
  160. package/lib/packages/ngw-kit/src/utils/fetchNgwExtent.d.ts.map +0 -1
  161. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerCount.d.ts +0 -4
  162. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerCount.d.ts.map +0 -1
  163. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeature.d.ts +0 -5
  164. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeature.d.ts.map +0 -1
  165. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeatureCollection.d.ts +0 -6
  166. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeatureCollection.d.ts.map +0 -1
  167. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeatures.d.ts +0 -6
  168. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerFeatures.d.ts.map +0 -1
  169. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerItem.d.ts +0 -6
  170. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerItem.d.ts.map +0 -1
  171. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerItems.d.ts +0 -7
  172. package/lib/packages/ngw-kit/src/utils/fetchNgwLayerItems.d.ts.map +0 -1
  173. package/lib/packages/ngw-kit/src/utils/getCompanyLogo.d.ts +0 -4
  174. package/lib/packages/ngw-kit/src/utils/getCompanyLogo.d.ts.map +0 -1
  175. package/lib/packages/ngw-kit/src/utils/getLayerFilterOptions.d.ts +0 -3
  176. package/lib/packages/ngw-kit/src/utils/getLayerFilterOptions.d.ts.map +0 -1
  177. package/lib/packages/ngw-kit/src/utils/identifyUtils.d.ts +0 -18
  178. package/lib/packages/ngw-kit/src/utils/identifyUtils.d.ts.map +0 -1
  179. package/lib/packages/ngw-kit/src/utils/mapFeatureDisplayName.d.ts +0 -14
  180. package/lib/packages/ngw-kit/src/utils/mapFeatureDisplayName.d.ts.map +0 -1
  181. package/lib/packages/ngw-kit/src/utils/ngwApiToAdapterOptions.d.ts +0 -11
  182. package/lib/packages/ngw-kit/src/utils/ngwApiToAdapterOptions.d.ts.map +0 -1
  183. package/lib/packages/ngw-kit/src/utils/parseDateFromNgw.d.ts +0 -4
  184. package/lib/packages/ngw-kit/src/utils/parseDateFromNgw.d.ts.map +0 -1
  185. package/lib/packages/ngw-kit/src/utils/prepareFieldsToNgw.d.ts +0 -3
  186. package/lib/packages/ngw-kit/src/utils/prepareFieldsToNgw.d.ts.map +0 -1
  187. package/lib/packages/ngw-kit/src/utils/prepareNgwFieldsToPropertiesFilter.d.ts +0 -2
  188. package/lib/packages/ngw-kit/src/utils/prepareNgwFieldsToPropertiesFilter.d.ts.map +0 -1
  189. package/lib/packages/ngw-kit/src/utils/resourceIdFromLayerOptions.d.ts +0 -4
  190. package/lib/packages/ngw-kit/src/utils/resourceIdFromLayerOptions.d.ts.map +0 -1
  191. package/lib/packages/ngw-kit/src/utils/selectNgwLayerDistinct.d.ts +0 -8
  192. package/lib/packages/ngw-kit/src/utils/selectNgwLayerDistinct.d.ts.map +0 -1
  193. package/lib/packages/ngw-kit/src/utils/uploadFeatureAttachment.d.ts +0 -13
  194. package/lib/packages/ngw-kit/src/utils/uploadFeatureAttachment.d.ts.map +0 -1
  195. package/lib/packages/ngw-kit/src/utils/utils.d.ts +0 -21
  196. package/lib/packages/ngw-kit/src/utils/utils.d.ts.map +0 -1
  197. package/lib/packages/ngw-map/src/NgwMap.d.ts +0 -151
  198. package/lib/packages/ngw-map/src/NgwMap.d.ts.map +0 -1
  199. package/lib/packages/ngw-map/src/index.d.ts +0 -10
  200. package/lib/packages/ngw-map/src/index.d.ts.map +0 -1
  201. package/lib/packages/ngw-map/src/interfaces.d.ts +0 -118
  202. package/lib/packages/ngw-map/src/interfaces.d.ts.map +0 -1
  203. package/lib/packages/ngw-map/src/utils/appendNgwResources.d.ts +0 -4
  204. package/lib/packages/ngw-map/src/utils/appendNgwResources.d.ts.map +0 -1
  205. package/lib/packages/ngw-map/src/utils/getIentifyRadius.d.ts +0 -3
  206. package/lib/packages/ngw-map/src/utils/getIentifyRadius.d.ts.map +0 -1
  207. package/lib/packages/ngw-map/src/utils/prepareWebMapOptions.d.ts +0 -5
  208. package/lib/packages/ngw-map/src/utils/prepareWebMapOptions.d.ts.map +0 -1
  209. package/lib/packages/paint/src/fromPaintExpression.d.ts +0 -3
  210. package/lib/packages/paint/src/fromPaintExpression.d.ts.map +0 -1
  211. package/lib/packages/paint/src/index.d.ts +0 -8
  212. package/lib/packages/paint/src/index.d.ts.map +0 -1
  213. package/lib/packages/paint/src/interfaces.d.ts +0 -80
  214. package/lib/packages/paint/src/interfaces.d.ts.map +0 -1
  215. package/lib/packages/paint/src/pinBuilder.d.ts +0 -7
  216. package/lib/packages/paint/src/pinBuilder.d.ts.map +0 -1
  217. package/lib/packages/paint/src/preparePaint.d.ts +0 -5
  218. package/lib/packages/paint/src/preparePaint.d.ts.map +0 -1
  219. package/lib/packages/paint/src/typeHelpers.d.ts +0 -8
  220. package/lib/packages/paint/src/typeHelpers.d.ts.map +0 -1
  221. package/lib/packages/properties-filter/src/index.d.ts +0 -6
  222. package/lib/packages/properties-filter/src/index.d.ts.map +0 -1
  223. package/lib/packages/properties-filter/src/interfaces.d.ts +0 -26
  224. package/lib/packages/properties-filter/src/interfaces.d.ts.map +0 -1
  225. package/lib/packages/properties-filter/src/propertiesFilter.d.ts +0 -11
  226. package/lib/packages/properties-filter/src/propertiesFilter.d.ts.map +0 -1
  227. package/lib/packages/qms-kit/src/QmsKit.d.ts +0 -14
  228. package/lib/packages/qms-kit/src/QmsKit.d.ts.map +0 -1
  229. package/lib/packages/qms-kit/src/index.d.ts +0 -9
  230. package/lib/packages/qms-kit/src/index.d.ts.map +0 -1
  231. package/lib/packages/qms-kit/src/interfaces.d.ts +0 -53
  232. package/lib/packages/qms-kit/src/interfaces.d.ts.map +0 -1
  233. package/lib/packages/qms-kit/src/utils/createQmsAdapter.d.ts +0 -5
  234. package/lib/packages/qms-kit/src/utils/createQmsAdapter.d.ts.map +0 -1
  235. package/lib/packages/qms-kit/src/utils/getSubmodulesFromOriginUrl.d.ts +0 -2
  236. package/lib/packages/qms-kit/src/utils/getSubmodulesFromOriginUrl.d.ts.map +0 -1
  237. package/lib/packages/qms-kit/src/utils/loadJson.d.ts +0 -2
  238. package/lib/packages/qms-kit/src/utils/loadJson.d.ts.map +0 -1
  239. package/lib/packages/qms-kit/src/utils/updateQmsOptions.d.ts +0 -9
  240. package/lib/packages/qms-kit/src/utils/updateQmsOptions.d.ts.map +0 -1
  241. package/lib/packages/react-ngw-leaflet/src/ReactNgwLeaflet.d.ts +0 -8
  242. package/lib/packages/react-ngw-leaflet/src/ReactNgwLeaflet.d.ts.map +0 -1
  243. package/lib/packages/react-ngw-leaflet/src/index.d.ts +0 -3
  244. package/lib/packages/react-ngw-leaflet/src/index.d.ts.map +0 -1
  245. package/lib/packages/react-ngw-map/src/MapControl.d.ts +0 -8
  246. package/lib/packages/react-ngw-map/src/MapControl.d.ts.map +0 -1
  247. package/lib/packages/react-ngw-map/src/ReactNgwMap.d.ts +0 -8
  248. package/lib/packages/react-ngw-map/src/ReactNgwMap.d.ts.map +0 -1
  249. package/lib/packages/react-ngw-map/src/component.d.ts +0 -3
  250. package/lib/packages/react-ngw-map/src/component.d.ts.map +0 -1
  251. package/lib/packages/react-ngw-map/src/context.d.ts +0 -5
  252. package/lib/packages/react-ngw-map/src/context.d.ts.map +0 -1
  253. package/lib/packages/react-ngw-map/src/control.d.ts +0 -4
  254. package/lib/packages/react-ngw-map/src/control.d.ts.map +0 -1
  255. package/lib/packages/react-ngw-map/src/element.d.ts +0 -10
  256. package/lib/packages/react-ngw-map/src/element.d.ts.map +0 -1
  257. package/lib/packages/react-ngw-map/src/generic.d.ts +0 -4
  258. package/lib/packages/react-ngw-map/src/generic.d.ts.map +0 -1
  259. package/lib/packages/react-ngw-map/src/hooks/useMapElement.d.ts +0 -5
  260. package/lib/packages/react-ngw-map/src/hooks/useMapElement.d.ts.map +0 -1
  261. package/lib/packages/react-ngw-map/src/hooks.d.ts +0 -3
  262. package/lib/packages/react-ngw-map/src/hooks.d.ts.map +0 -1
  263. package/lib/packages/react-ngw-map/src/index.d.ts +0 -3
  264. package/lib/packages/react-ngw-map/src/index.d.ts.map +0 -1
  265. package/lib/packages/react-ngw-map/src/interfaces.d.ts +0 -22
  266. package/lib/packages/react-ngw-map/src/interfaces.d.ts.map +0 -1
  267. package/lib/packages/tree/src/Tree.d.ts +0 -16
  268. package/lib/packages/tree/src/Tree.d.ts.map +0 -1
  269. package/lib/packages/tree/src/index.d.ts +0 -8
  270. package/lib/packages/tree/src/index.d.ts.map +0 -1
  271. package/lib/packages/tree/src/interfaces.d.ts +0 -8
  272. package/lib/packages/tree/src/interfaces.d.ts.map +0 -1
  273. package/lib/packages/tree/src/treeFilter.d.ts +0 -11
  274. package/lib/packages/tree/src/treeFilter.d.ts.map +0 -1
  275. package/lib/packages/utils/src/Clipboard.d.ts +0 -9
  276. package/lib/packages/utils/src/Clipboard.d.ts.map +0 -1
  277. package/lib/packages/utils/src/applyMixins.d.ts +0 -9
  278. package/lib/packages/utils/src/applyMixins.d.ts.map +0 -1
  279. package/lib/packages/utils/src/array/arrayChunk.d.ts +0 -2
  280. package/lib/packages/utils/src/array/arrayChunk.d.ts.map +0 -1
  281. package/lib/packages/utils/src/array/arrayCompare.d.ts +0 -22
  282. package/lib/packages/utils/src/array/arrayCompare.d.ts.map +0 -1
  283. package/lib/packages/utils/src/array/arrayUnique.d.ts +0 -2
  284. package/lib/packages/utils/src/array/arrayUnique.d.ts.map +0 -1
  285. package/lib/packages/utils/src/array/index.d.ts +0 -4
  286. package/lib/packages/utils/src/array/index.d.ts.map +0 -1
  287. package/lib/packages/utils/src/debounce.d.ts +0 -5
  288. package/lib/packages/utils/src/debounce.d.ts.map +0 -1
  289. package/lib/packages/utils/src/debug/debugLog.d.ts +0 -2
  290. package/lib/packages/utils/src/debug/debugLog.d.ts.map +0 -1
  291. package/lib/packages/utils/src/debug/index.d.ts +0 -2
  292. package/lib/packages/utils/src/debug/index.d.ts.map +0 -1
  293. package/lib/packages/utils/src/deepmerge.d.ts +0 -2
  294. package/lib/packages/utils/src/deepmerge.d.ts.map +0 -1
  295. package/lib/packages/utils/src/defined.d.ts +0 -32
  296. package/lib/packages/utils/src/defined.d.ts.map +0 -1
  297. package/lib/packages/utils/src/deprecated/deprecatedMapClick.d.ts +0 -12
  298. package/lib/packages/utils/src/deprecated/deprecatedMapClick.d.ts.map +0 -1
  299. package/lib/packages/utils/src/deprecated/deprecatedWarn.d.ts +0 -3
  300. package/lib/packages/utils/src/deprecated/deprecatedWarn.d.ts.map +0 -1
  301. package/lib/packages/utils/src/deprecated/index.d.ts +0 -3
  302. package/lib/packages/utils/src/deprecated/index.d.ts.map +0 -1
  303. package/lib/packages/utils/src/events.d.ts +0 -11
  304. package/lib/packages/utils/src/events.d.ts.map +0 -1
  305. package/lib/packages/utils/src/flatten.d.ts +0 -5
  306. package/lib/packages/utils/src/flatten.d.ts.map +0 -1
  307. package/lib/packages/utils/src/geom/constants.d.ts +0 -5
  308. package/lib/packages/utils/src/geom/constants.d.ts.map +0 -1
  309. package/lib/packages/utils/src/geom/coordTransform.d.ts +0 -5
  310. package/lib/packages/utils/src/geom/coordTransform.d.ts.map +0 -1
  311. package/lib/packages/utils/src/geom/eachCoordinates.d.ts +0 -7
  312. package/lib/packages/utils/src/geom/eachCoordinates.d.ts.map +0 -1
  313. package/lib/packages/utils/src/geom/geom.d.ts +0 -4
  314. package/lib/packages/utils/src/geom/geom.d.ts.map +0 -1
  315. package/lib/packages/utils/src/geom/getBoundsPolygon.d.ts +0 -6
  316. package/lib/packages/utils/src/geom/getBoundsPolygon.d.ts.map +0 -1
  317. package/lib/packages/utils/src/geom/getCirclePolygon.d.ts +0 -4
  318. package/lib/packages/utils/src/geom/getCirclePolygon.d.ts.map +0 -1
  319. package/lib/packages/utils/src/geom/index.d.ts +0 -9
  320. package/lib/packages/utils/src/geom/index.d.ts.map +0 -1
  321. package/lib/packages/utils/src/geom/interfaces.d.ts +0 -35
  322. package/lib/packages/utils/src/geom/interfaces.d.ts.map +0 -1
  323. package/lib/packages/utils/src/geom/isLngLatBoundsArray.d.ts +0 -3
  324. package/lib/packages/utils/src/geom/isLngLatBoundsArray.d.ts.map +0 -1
  325. package/lib/packages/utils/src/index.d.ts +0 -26
  326. package/lib/packages/utils/src/index.d.ts.map +0 -1
  327. package/lib/packages/utils/src/interfaces.d.ts +0 -4
  328. package/lib/packages/utils/src/interfaces.d.ts.map +0 -1
  329. package/lib/packages/utils/src/number/index.d.ts +0 -2
  330. package/lib/packages/utils/src/number/index.d.ts.map +0 -1
  331. package/lib/packages/utils/src/number/round.d.ts +0 -2
  332. package/lib/packages/utils/src/number/round.d.ts.map +0 -1
  333. package/lib/packages/utils/src/object/index.d.ts +0 -5
  334. package/lib/packages/utils/src/object/index.d.ts.map +0 -1
  335. package/lib/packages/utils/src/object/objectAssign.d.ts +0 -19
  336. package/lib/packages/utils/src/object/objectAssign.d.ts.map +0 -1
  337. package/lib/packages/utils/src/object/objectDeepEqual.d.ts +0 -2
  338. package/lib/packages/utils/src/object/objectDeepEqual.d.ts.map +0 -1
  339. package/lib/packages/utils/src/object/objectRemoveEmpty.d.ts +0 -2
  340. package/lib/packages/utils/src/object/objectRemoveEmpty.d.ts.map +0 -1
  341. package/lib/packages/utils/src/platform.d.ts +0 -4
  342. package/lib/packages/utils/src/platform.d.ts.map +0 -1
  343. package/lib/packages/utils/src/re/index.d.ts +0 -2
  344. package/lib/packages/utils/src/re/index.d.ts.map +0 -1
  345. package/lib/packages/utils/src/re/reEscape.d.ts +0 -2
  346. package/lib/packages/utils/src/re/reEscape.d.ts.map +0 -1
  347. package/lib/packages/utils/src/sleep.d.ts +0 -2
  348. package/lib/packages/utils/src/sleep.d.ts.map +0 -1
  349. package/lib/packages/utils/src/string/camelize.d.ts +0 -2
  350. package/lib/packages/utils/src/string/camelize.d.ts.map +0 -1
  351. package/lib/packages/utils/src/string/capitalize.d.ts +0 -2
  352. package/lib/packages/utils/src/string/capitalize.d.ts.map +0 -1
  353. package/lib/packages/utils/src/string/index.d.ts +0 -4
  354. package/lib/packages/utils/src/string/index.d.ts.map +0 -1
  355. package/lib/packages/utils/src/string/numberWithSpaces.d.ts +0 -2
  356. package/lib/packages/utils/src/string/numberWithSpaces.d.ts.map +0 -1
  357. package/lib/packages/utils/src/tileJson/index.d.ts +0 -2
  358. package/lib/packages/utils/src/tileJson/index.d.ts.map +0 -1
  359. package/lib/packages/utils/src/tileJson/interfaces.d.ts +0 -121
  360. package/lib/packages/utils/src/tileJson/interfaces.d.ts.map +0 -1
  361. package/lib/packages/utils/src/typeHelpers/DeepPartial.d.ts +0 -7
  362. package/lib/packages/utils/src/typeHelpers/DeepPartial.d.ts.map +0 -1
  363. package/lib/packages/utils/src/typeHelpers/Json.d.ts +0 -9
  364. package/lib/packages/utils/src/typeHelpers/Json.d.ts.map +0 -1
  365. package/lib/packages/utils/src/typeHelpers/Type.d.ts +0 -2
  366. package/lib/packages/utils/src/typeHelpers/Type.d.ts.map +0 -1
  367. package/lib/packages/utils/src/typeHelpers/index.d.ts +0 -7
  368. package/lib/packages/utils/src/typeHelpers/index.d.ts.map +0 -1
  369. package/lib/packages/utils/src/typeHelpers/isObjKey.d.ts +0 -9
  370. package/lib/packages/utils/src/typeHelpers/isObjKey.d.ts.map +0 -1
  371. package/lib/packages/utils/src/unflatten.d.ts +0 -2
  372. package/lib/packages/utils/src/unflatten.d.ts.map +0 -1
  373. package/lib/packages/utils/src/url.d.ts +0 -2
  374. package/lib/packages/utils/src/url.d.ts.map +0 -1
  375. package/lib/packages/webmap/src/WebMap.d.ts +0 -90
  376. package/lib/packages/webmap/src/WebMap.d.ts.map +0 -1
  377. package/lib/packages/webmap/src/WebMapControls.d.ts +0 -67
  378. package/lib/packages/webmap/src/WebMapControls.d.ts.map +0 -1
  379. package/lib/packages/webmap/src/WebMapLayers.d.ts +0 -245
  380. package/lib/packages/webmap/src/WebMapLayers.d.ts.map +0 -1
  381. package/lib/packages/webmap/src/WebMapMain.d.ts +0 -185
  382. package/lib/packages/webmap/src/WebMapMain.d.ts.map +0 -1
  383. package/lib/packages/webmap/src/components/controls/createButtonControl.d.ts +0 -8
  384. package/lib/packages/webmap/src/components/controls/createButtonControl.d.ts.map +0 -1
  385. package/lib/packages/webmap/src/components/controls/createToggleControl.d.ts +0 -7
  386. package/lib/packages/webmap/src/components/controls/createToggleControl.d.ts.map +0 -1
  387. package/lib/packages/webmap/src/components/keys/Keys.d.ts +0 -31
  388. package/lib/packages/webmap/src/components/keys/Keys.d.ts.map +0 -1
  389. package/lib/packages/webmap/src/components/keys/KeysCodes.d.ts +0 -65
  390. package/lib/packages/webmap/src/components/keys/KeysCodes.d.ts.map +0 -1
  391. package/lib/packages/webmap/src/components/mapStates/CenterState.d.ts +0 -13
  392. package/lib/packages/webmap/src/components/mapStates/CenterState.d.ts.map +0 -1
  393. package/lib/packages/webmap/src/components/mapStates/StateItem.d.ts +0 -20
  394. package/lib/packages/webmap/src/components/mapStates/StateItem.d.ts.map +0 -1
  395. package/lib/packages/webmap/src/components/mapStates/ZoomState.d.ts +0 -12
  396. package/lib/packages/webmap/src/components/mapStates/ZoomState.d.ts.map +0 -1
  397. package/lib/packages/webmap/src/container.d.ts +0 -4
  398. package/lib/packages/webmap/src/container.d.ts.map +0 -1
  399. package/lib/packages/webmap/src/index.d.ts +0 -61
  400. package/lib/packages/webmap/src/index.d.ts.map +0 -1
  401. package/lib/packages/webmap/src/interfaces/BaseTypes.d.ts +0 -28
  402. package/lib/packages/webmap/src/interfaces/BaseTypes.d.ts.map +0 -1
  403. package/lib/packages/webmap/src/interfaces/Events.d.ts +0 -138
  404. package/lib/packages/webmap/src/interfaces/Events.d.ts.map +0 -1
  405. package/lib/packages/webmap/src/interfaces/LayerAdapter.d.ts +0 -534
  406. package/lib/packages/webmap/src/interfaces/LayerAdapter.d.ts.map +0 -1
  407. package/lib/packages/webmap/src/interfaces/MapAdapter.d.ts +0 -157
  408. package/lib/packages/webmap/src/interfaces/MapAdapter.d.ts.map +0 -1
  409. package/lib/packages/webmap/src/interfaces/MapControl.d.ts +0 -104
  410. package/lib/packages/webmap/src/interfaces/MapControl.d.ts.map +0 -1
  411. package/lib/packages/webmap/src/interfaces/MapOptions.d.ts +0 -152
  412. package/lib/packages/webmap/src/interfaces/MapOptions.d.ts.map +0 -1
  413. package/lib/packages/webmap/src/interfaces/MapState.d.ts +0 -10
  414. package/lib/packages/webmap/src/interfaces/MapState.d.ts.map +0 -1
  415. package/lib/packages/webmap/src/interfaces/RuntimeParams.d.ts +0 -9
  416. package/lib/packages/webmap/src/interfaces/RuntimeParams.d.ts.map +0 -1
  417. package/lib/packages/webmap/src/interfaces/StarterKit.d.ts +0 -15
  418. package/lib/packages/webmap/src/interfaces/StarterKit.d.ts.map +0 -1
  419. package/lib/packages/webmap/src/utils/clearObject.d.ts +0 -5
  420. package/lib/packages/webmap/src/utils/clearObject.d.ts.map +0 -1
  421. package/lib/packages/webmap/src/utils/decorators.d.ts +0 -7
  422. package/lib/packages/webmap/src/utils/decorators.d.ts.map +0 -1
  423. package/lib/packages/webmap/src/utils/geometryTypes.d.ts +0 -10
  424. package/lib/packages/webmap/src/utils/geometryTypes.d.ts.map +0 -1
  425. package/lib/packages/webmap/src/utils/updateGeoJsonAdapterOptions.d.ts +0 -13
  426. package/lib/packages/webmap/src/utils/updateGeoJsonAdapterOptions.d.ts.map +0 -1
@@ -1,121 +0,0 @@
1
- /**
2
- * This specification attempts to create a standard for representing metadata
3
- * about multiple types of web-based layers, to aid clients in configuration and browsing.
4
- *
5
- * From {@link https://github.com/mapbox/tilejson-spec/tree/master/2.2.0}
6
- */
7
- export interface TileJson {
8
- /**
9
- * A semver.org style version number. Describes the version of
10
- * the TileJSON spec that is implemented by this JSON object.
11
- */
12
- tilejson: string;
13
- /**
14
- * Default: null. A name describing the tileset. The name can
15
- * contain any legal character. Implementations SHOULD NOT interpret the
16
- * name as HTML.
17
- * @defaultValue null
18
- */
19
- name?: string;
20
- /**
21
- * Default: null. A text description of the tileset. The
22
- * description can contain any legal character. Implementations SHOULD NOT
23
- * interpret the description as HTML.
24
- */
25
- description?: string;
26
- /**
27
- * Default: "1.0.0". A semver.org style version number. When
28
- * changes across tiles are introduced, the minor version MUST change.
29
- * This may lead to cut off labels. Therefore, implementors can decide to
30
- * clean their cache when the minor version changes. Changes to the patch
31
- * level MUST only have changes to tiles that are contained within one tile.
32
- * When tiles change significantly, the major version MUST be increased.
33
- * Implementations MUST NOT use tiles with different major versions.
34
- */
35
- version?: string;
36
- /**
37
- * Default: null. Contains an attribution to be displayed
38
- * when the map is shown to a user. Implementations MAY decide to treat this
39
- * as HTML or literal text. For security reasons, make absolutely sure that
40
- * this field can't be abused as a vector for XSS or beacon tracking.
41
- */
42
- attribution?: string;
43
- /**
44
- * Default: null. Contains a mustache template to be used to
45
- * format data from grids for interaction.
46
- * See https://github.com/mapbox/utfgrid-spec/tree/master/1.2
47
- * for the interactivity specification.
48
- */
49
- template?: string;
50
- /**
51
- * Default: null. Contains a legend to be displayed with the map.
52
- * Implementations MAY decide to treat this as HTML or literal text.
53
- * For security reasons, make absolutely sure that this field can't be
54
- * abused as a vector for XSS or beacon tracking.
55
- */
56
- legend?: string;
57
- /**
58
- * Default: "xyz". Either "xyz" or "tms". Influences the y
59
- * direction of the tile coordinates.
60
- * The global-mercator (aka Spherical Mercator) profile is assumed.
61
- */
62
- scheme?: string;
63
- /**
64
- * REQUIRED. An array of tile endpoints. `{z}`, `{x}` and `{y}`, if present,
65
- * are replaced with the corresponding integers. If multiple endpoints are specified, clients
66
- * may use any combination of endpoints. All endpoints MUST return the same
67
- * content for the same URL. The array MUST contain at least one endpoint.
68
- */
69
- tiles: string[];
70
- /**
71
- * Default: []. An array of interactivity endpoints. `{z}`, `{x}`
72
- * and `{y}`, if present, are replaced with the corresponding integers. If multiple
73
- * endpoints are specified, clients may use any combination of endpoints.
74
- * All endpoints MUST return the same content for the same URL.
75
- * If the array doesn't contain any entries, interactivity is not supported
76
- * for this tileset.
77
- * See https://github.com/mapbox/utfgrid-spec/tree/master/1.2
78
- * for the interactivity specification.
79
- */
80
- grids?: string[];
81
- /**
82
- * Default: []. An array of data files in GeoJSON format.
83
- * `{z}`, `{x}` and `{y}`, if present,
84
- * are replaced with the corresponding integers. If multiple
85
- * endpoints are specified, clients may use any combination of endpoints.
86
- * All endpoints MUST return the same content for the same URL.
87
- * If the array doesn't contain any entries, then no data is present in
88
- * the map.
89
- */
90
- data?: string[];
91
- /**
92
- * Default: 0.`>= 0, <= 30.`
93
- * An integer specifying the minimum zoom level.
94
- */
95
- minzoom?: number;
96
- /**
97
- * Default: 30. `>= 0, <= 30.`
98
- * An integer specifying the maximum zoom level. MUST be `>= minzoom`.
99
- */
100
- maxzoom?: number;
101
- /**
102
- * Default: [-180, -90, 180, 90].
103
- * The maximum extent of available map tiles. Bounds MUST define an area
104
- * covered by all zoom levels. The bounds are represented in WGS:84
105
- * latitude and longitude values, in the order left, bottom, right, top.
106
- * Values may be integers or floating point numbers.
107
- */
108
- bounds?: number[];
109
- /**
110
- * Default: null.
111
- * The first value is the longitude, the second is latitude (both in
112
- * WGS:84 values), the third value is the zoom level as an integer.
113
- * Longitude and latitude MUST be within the specified bounds.
114
- * The zoom level MUST be between minzoom and maxzoom.
115
- * Implementations can use this value to set the default location. If the
116
- * value is null, implementations may use their own algorithm for
117
- * determining a default location.
118
- */
119
- center?: number[];
120
- }
121
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/tileJson/interfaces.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,QAAQ;IACvB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAEnB"}
@@ -1,7 +0,0 @@
1
- /**
2
- * Same as Partial<T> but goes deeper and makes Partial<T> all its properties and sub-properties.
3
- */
4
- export declare type DeepPartial<T> = {
5
- [P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>;
6
- };
7
- //# sourceMappingURL=DeepPartial.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/typeHelpers/DeepPartial.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACxC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GACnC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC7B,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtB,CAAC"}
@@ -1,9 +0,0 @@
1
- export declare type AnyJson = boolean | number | string | null | JsonArray | JsonMap;
2
- export interface JsonMap {
3
- [key: string]: AnyJson;
4
- }
5
- export declare type JsonArray = Array<AnyJson>;
6
- export declare function isAnyJson(val: unknown): val is AnyJson;
7
- export declare function isJsonArray(val: unknown): val is JsonArray;
8
- export declare function isJsonMap(val: unknown): val is JsonMap;
9
- //# sourceMappingURL=Json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Json.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/typeHelpers/Json.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;AAC7E,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AACD,oBAAY,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEvC,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,OAAO,CActD;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAK1D;AAED,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,OAAO,CAStD"}
@@ -1,2 +0,0 @@
1
- export declare type Type<T> = new (...args: any[]) => T;
2
- //# sourceMappingURL=Type.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/typeHelpers/Type.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export * from './DeepPartial';
2
- export * from './Type';
3
- export * from './Json';
4
- export * from './isObjKey';
5
- export declare function isObject(val: unknown): val is Record<string | number, any>;
6
- export declare function isArray(val: unknown): val is [];
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/typeHelpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAE1E;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,EAAE,CAE/C"}
@@ -1,9 +0,0 @@
1
- declare type Obj = Record<string | number, any>;
2
- export declare function isObjKey<O extends Obj = Obj>(obj: O, key: unknown): key is keyof O;
3
- /**
4
- *
5
- * @deprecated - use isObjKey instead
6
- */
7
- export declare function keyInObj<O extends Obj = Obj>(obj: O, key: unknown): key is keyof O;
8
- export {};
9
- //# sourceMappingURL=isObjKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isObjKey.d.ts","sourceRoot":"","sources":["../../../../../../../packages/utils/src/typeHelpers/isObjKey.ts"],"names":[],"mappings":"AAAA,aAAK,GAAG,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,GAAG,CAAC,CAAC;AAExC,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG,EAC1C,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,OAAO,GACX,GAAG,IAAI,MAAM,CAAC,CAKhB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG,EAC1C,GAAG,EAAE,CAAC,EACN,GAAG,EAAE,OAAO,GACX,GAAG,IAAI,MAAM,CAAC,CAEhB"}
@@ -1,2 +0,0 @@
1
- export declare function unflatten(data: Record<string, any> | any[]): Record<string, any>;
2
- //# sourceMappingURL=unflatten.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unflatten.d.ts","sourceRoot":"","sources":["../../../../../../packages/utils/src/unflatten.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,GAChC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAerB"}
@@ -1,2 +0,0 @@
1
- export declare function fixUrlStr(url: string): string;
2
- //# sourceMappingURL=url.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../../../../../packages/utils/src/url.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG7C"}
@@ -1,90 +0,0 @@
1
- /**
2
- * @privateRemarks
3
- * Since it was not possible to split the code through mixins, inheritance was used.
4
- * The `ts-mixin` plugin worked fine, but led to errors in IE.
5
- *
6
- * Now inheritance is as follow:
7
- * BaseWebMap \> WebMapLayers \> WebMap
8
- *
9
- * Will need to be done this way:
10
- * ```javascript
11
- * class WebMap extend mixin(WebMapLayers, WebMapControls) {}
12
- * ```
13
- *
14
- * This approach can also be considered
15
- * ```javascript
16
- * class WebMap {
17
- * layers: WebMapLayers;
18
- * controls WebMapControls
19
- * }
20
- * ```
21
- * and then
22
- *
23
- * const webMap = new WebMap(...);
24
- * webMap.layers.addLayer(...)
25
- *
26
- * looks good, but will add difficulty in inheriting from WebMap
27
- *
28
- * old:
29
- * ```javascript
30
- * class NgwMap extends WebMap {
31
- * addLayer(...) {
32
- * super.addLayer(...)
33
- * }
34
- * }
35
- * ```
36
- * new:
37
- * ```javascript
38
- * class NgwLayers extends WebMapLayers {
39
- * addLayer(...) {
40
- * super.addLayer(...)
41
- * }
42
- * }
43
- *
44
- * class NgwMap extends WebMap {
45
- * layersClass = NgwLayers
46
- * }
47
- * ```
48
- * ...and there will be compatibility issues
49
- */
50
- import { WebMapMain } from './WebMapMain';
51
- import { WebMapControls } from './WebMapControls';
52
- import type { MapOptions } from './interfaces/MapOptions';
53
- import type { WebMapEvents } from './interfaces/Events';
54
- import type { WebMapLayers } from './WebMapLayers';
55
- /**
56
- * The core component for managing map adapters.
57
- * It contains methods for adding and manipulation with
58
- * {@link WebMapMain | map}, {@link WebMapLayers | layers} and {@link WebMapControls | controls}.
59
- *
60
- * @example
61
- * ```javascript
62
- * import { WebMap } from '@nextgis/webmap';
63
- * import MapAdapter from '@nextgis/ol-map-adapter';
64
- *
65
- * const webMap = new WebMap({
66
- * mapAdapter: new MapAdapter(),
67
- * target: 'map',
68
- * });
69
- * ```
70
- *
71
- * @typeParam M - Interactive Map used in the adapter
72
- * @typeParam L - Layer
73
- * @typeParam C - Control
74
- * @typeParam E - Events
75
- *
76
- */
77
- export declare class WebMap<M = any, L = any, C = any, E extends WebMapEvents = WebMapEvents, O extends MapOptions = MapOptions> extends WebMapControls<M, L, C, E, O> implements WebMapControls, WebMapLayers, WebMapMain {
78
- constructor(mapOptions: O);
79
- static get<T extends WebMap = WebMap>(id: number): T;
80
- /**
81
- * @internal
82
- */
83
- protected _addLayerProviders(): Promise<void>;
84
- /**
85
- * @internal
86
- */
87
- protected _onLoadSync(): Promise<void>;
88
- private _addControls;
89
- }
90
- //# sourceMappingURL=WebMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebMap.d.ts","sourceRoot":"","sources":["../../../../../../packages/webmap/src/WebMap.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,MAAM,CACf,CAAC,GAAG,GAAG,EACP,CAAC,GAAG,GAAG,EACP,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,SAAS,UAAU,GAAG,UAAU,CAEnC,SAAQ,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CACpC,YAAW,cAAc,EAAE,YAAY,EAAE,UAAU;gBAEvC,UAAU,EAAE,CAAC;IAMzB,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC;IAIpD;;OAEG;cACa,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBnD;;OAEG;cACa,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAY5C,OAAO,CAAC,YAAY;CAmBrB"}
@@ -1,67 +0,0 @@
1
- import { WebMapLayers } from './WebMapLayers';
2
- import type { WebMapMain } from './WebMapMain';
3
- import type { MapOptions } from './interfaces/MapOptions';
4
- import type { WebMapEvents } from './interfaces/Events';
5
- import type { MapControl, CreateControlOptions, ButtonControlOptions, ToggleControlOptions, ToggleControl, MapControls } from './interfaces/MapControl';
6
- import type { ControlPosition } from './interfaces/MapAdapter';
7
- /**
8
- * Collection of methods for managing map controls
9
- */
10
- export declare class WebMapControls<M = any, L = any, C = any, E extends WebMapEvents = WebMapEvents, O extends MapOptions = MapOptions> extends WebMapLayers<M, L, E, O> implements WebMapLayers, WebMapMain {
11
- static controls: {
12
- [name: string]: (webMap: WebMapControls, options?: any) => any;
13
- };
14
- private _loadControlQueue;
15
- private _isControlLoading;
16
- addControl<K extends keyof MapControls>(controlDef: K | C, position: ControlPosition, options?: MapControls[K]): Promise<any>;
17
- /**
18
- * Creating a universal map layout control element. Can be used with any map adapter.
19
- *
20
- * @example
21
- * ```javascript
22
- * const control = webMap.createControl({
23
- * onAdd() {
24
- * return document.createElement('div');
25
- * }
26
- * });
27
- * ```
28
- */
29
- createControl(control: MapControl, options?: CreateControlOptions): Promise<C | undefined>;
30
- createButtonControl(options: ButtonControlOptions): Promise<C | undefined>;
31
- /**
32
- * Create any toggler control button
33
- * @param options - Options for control layout customization and assigning a callback function
34
- *
35
- * @example
36
- * ```javascript
37
- * const toggleControl = ngwMap.createToggleControl({
38
- * getStatus: () => webMap.isLayerVisible('any-layer-id'),
39
- * onClick: (status) => ngwMap.toggleLayer('webmap', status),
40
- * html: {
41
- * on: 'ON',
42
- * off: 'OFF'
43
- * },
44
- * title: 'Toggle layer visibility'
45
- * });
46
- * webMap.addControl(toggleControl, 'top-right');
47
- * ```
48
- * {@link http://code.nextgis.com/demo-examples-toggle-control | Toggle button control example}
49
- */
50
- createToggleControl(options: ToggleControlOptions): Promise<(C & ToggleControl) | undefined>;
51
- /**
52
- *
53
- * @param control - Instance of WEB-GIS framework control.
54
- * What is returned by the {@Link WebMapControls.createControl | create} method
55
- */
56
- removeControl(control: C): void;
57
- /**
58
- * Get instance of registered control
59
- * @param control - Any registered control string name
60
- * @param options - Custom control options
61
- */
62
- getControl<K extends keyof MapControls>(control: K, options?: MapControls[K]): C | undefined;
63
- getControlContainer(): HTMLElement | undefined;
64
- private _setControlQueue;
65
- private _applyControls;
66
- }
67
- //# sourceMappingURL=WebMapControls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebMapControls.d.ts","sourceRoot":"","sources":["../../../../../../packages/webmap/src/WebMapControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,WAAW,EACZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;GAEG;AACH,qBAAa,cAAc,CACvB,CAAC,GAAG,GAAG,EACP,CAAC,GAAG,GAAG,EACP,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,YAAY,GAAG,YAAY,EACrC,CAAC,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is/paint';
2
- import { WebMapMain } from './WebMapMain';
3
- import type { Feature, GeoJsonObject, Geometry } from 'geojson';
4
- import { FeatureProperties, TileJson, Type } from '@nextgis/utils';
5
- import type { PropertiesFilter } from '@nextgis/properties-filter';
6
- import type { LayerAdapter, LayerAdapters, FilterOptions, AdapterOptions, LayerDefinition, DataLayerFilter, MainLayerAdapter, AdapterConstructor, VectorLayerAdapter, TileAdapterOptions, FeatureLayerAdapter, ImageAdapterOptions, LayerAdaptersOptions, GeoJsonAdapterOptions, LayerAdapterDefinition } from './interfaces/LayerAdapter';
7
- import type { LayerDef } from './interfaces/BaseTypes';
8
- import type { GetAttributionsOptions, ToggleLayerOptions, MapOptions } from './interfaces/MapOptions';
9
- import type { WebMapEvents } from './interfaces/Events';
10
- import type { FitOptions } from './interfaces/MapAdapter';
11
- declare type AddedLayers<M = any, L = any> = {
12
- [id: string]: LayerAdapter<M, L>;
13
- };
14
- export declare class WebMapLayers<M = any, L = any, E extends WebMapEvents = WebMapEvents, O extends MapOptions = MapOptions> extends WebMapMain<M, E, O> {
15
- private _layersIdCounter;
16
- private _layersOrderCounter;
17
- private readonly _baselayers;
18
- private readonly _layers;
19
- private readonly _selectedLayers;
20
- constructor(mapOptions: O);
21
- /**
22
- * Try to fit map view by given layer bounds.
23
- * But not all layers have borders
24
- */
25
- fitLayer(layerDef: LayerDef, options?: FitOptions): Promise<void>;
26
- /**
27
- * Check if given layer is baselayer
28
- */
29
- isBaseLayer(layerDef: LayerDef): boolean | undefined;
30
- getBaseLayers(): LayerAdapter[];
31
- getBaseLayersIds(): string[];
32
- /**
33
- * Helper method to return added layer object by any definition type.
34
- */
35
- getLayer<LA extends LayerAdapter = LayerAdapter>(layerDef: LayerDef): LA | undefined;
36
- /**
37
- * Helper method to return added layer identificator by any definition type.
38
- */
39
- getLayerId(layerDef: LayerDef): string | undefined;
40
- /**
41
- * Return array of all added layer identifications.
42
- */
43
- getLayers(): string[];
44
- allLayers(): AddedLayers<M, L>;
45
- orderedLayers<LA extends LayerAdapter<M, L> = LayerAdapter<M, L>>(): LA[];
46
- findLayer<T extends LayerAdapter = LayerAdapter>(filter: (adapter: T) => boolean): T | undefined;
47
- /**
48
- * Check if the given layer on the map
49
- */
50
- isLayerVisible(layerDef: LayerDef): boolean;
51
- /**
52
- * Shortcut method to create base layer
53
- */
54
- addBaseLayer<K extends keyof LayerAdapters, O extends AdapterOptions = AdapterOptions>(adapter: K | Type<LayerAdapters[K]>, options?: O | LayerAdaptersOptions[K]): Promise<LayerAdapter>;
55
- /**
56
- * Registration of map layer.
57
- *
58
- * @param adapter - The name of layer adapter from [MapAdapter.layerAdapters](webmap#MapAdapter.layerAdapters).
59
- * May be custom object or class implemented by [MainLayerAdapter](webmap#MainLayerAdapter).
60
- * @param options - Specific options for given adapter
61
- *
62
- * @example
63
- * ```javascript
64
- * webMap.addLayer('TILE', options).then((layer) => webMap.showLayer(layer));
65
- *
66
- * webMap.addLayer(CustomLayerAdapter, options);
67
- * ```
68
- */
69
- addLayer<K extends keyof LayerAdapters, LO extends AdapterOptions = AdapterOptions>(adapter: LayerAdapterDefinition<K>, options?: LO | LayerAdaptersOptions[K], order?: number): Promise<LayerAdapter>;
70
- addLayerFromAsyncAdapter<K extends keyof LayerAdapters, O extends AdapterOptions = AdapterOptions>(adapter: AdapterConstructor, options: O | LayerAdaptersOptions[K], order?: number): Promise<LayerAdapter>;
71
- /**
72
- * Remove all layer from map and memory.
73
- */
74
- removeLayers(allowCb?: (layer: string, adapter: LayerAdapter) => boolean): void;
75
- reserveOrder(): number;
76
- /**
77
- * Remove all layers but not remove basemap.
78
- */
79
- removeOverlays(): void;
80
- /**
81
- * Remove specific layer from map and memory by its definition.
82
- */
83
- removeLayer(layerDef: LayerDef): void;
84
- /**
85
- * Create layer from GeoJson data. Set style and behavior for selection.
86
- *
87
- * @example
88
- * ```javascript
89
- * // Add simple layer
90
- * webMap.addGeoJsonLayer({ data: geojson, paint: { color: 'red' } });
91
- *
92
- * // Add styled by feature property layer with selection behavior
93
- * webMap.addGeoJsonLayer({
94
- * data: geojson,
95
- * paint: function (feature) {
96
- * return { color: feature.properties.color, opacity: 0.5 }
97
- * },
98
- * selectedPaint: function (feature) {
99
- * return { color: feature.properties.selcolor, opacity: 1 }
100
- * },
101
- * selectable: true,
102
- * multiselect: true
103
- * });
104
- *
105
- * // Add marker layer styled with use [Icons](icons)
106
- * webMap.addGeoJsonLayer({ data: geojson, paint: webMap.getIcon({ color: 'orange' })});
107
- *
108
- * // work with added layer
109
- * const layer = webMap.addGeoJsonLayer({ data: geojson, id: 'my_layer_name'});
110
- * // access layer by id
111
- * webMap.showLayer('my_layer_name');
112
- * // or access layer by instance
113
- * webMap.showLayer(layer);
114
- * ```
115
- */
116
- addGeoJsonLayer<K extends keyof LayerAdapters = keyof LayerAdapters, O extends GeoJsonAdapterOptions<any, any> = GeoJsonAdapterOptions>(opt?: O, adapter?: LayerAdapterDefinition<K>): Promise<VectorLayerAdapter<any, any, any>>;
117
- /** Shortcut for {@link WebMapLayers.addGeoJsonLayer} to create GeoJson adapter with generic types for working in typescript */
118
- addFeatureLayer<P extends FeatureProperties = FeatureProperties, G extends Geometry = Geometry, O extends GeoJsonAdapterOptions<Feature<G, P>> = GeoJsonAdapterOptions<Feature<G, P>>>(options?: O): Promise<FeatureLayerAdapter<P, G>>;
119
- /** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
120
- addTileLayer(url: string, options: Omit<TileAdapterOptions, 'url'>): Promise<MainLayerAdapter<M, L, TileAdapterOptions>>;
121
- /** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
122
- addImageLayer(url: string, options: Omit<ImageAdapterOptions, 'url'>): Promise<MainLayerAdapter<M, L, ImageAdapterOptions>>;
123
- /**
124
- * Show added layer on the map by it definition.
125
- */
126
- showLayer(layerDef: LayerDef, options?: ToggleLayerOptions): Promise<void>;
127
- /**
128
- * Hide added layer on the map by it definition.
129
- */
130
- hideLayer(layerDef: LayerDef, options?: ToggleLayerOptions): Promise<void>;
131
- /**
132
- * Change added layer visibility on the map by given status or inverse current status.
133
- *
134
- * @example
135
- * ```javascript
136
- * webMap.addLayer('TILE', {id: 'my_layer', url: ''}).then((layer) => {
137
- * webMap.toggleLayer(layer, true);
138
- * webMap.toggleLayer('my_layer', false);
139
- * webMap.toggleLayer('my_layer');
140
- * webMap.isLayerVisible(layer); // true
141
- * });
142
- * ```
143
- */
144
- toggleLayer(layerDef: LayerDef, status?: boolean, options?: ToggleLayerOptions): Promise<void>;
145
- updateLayer(layerDef: LayerDef): Promise<void>;
146
- /**
147
- * Set transparency for a given layer by number from 0 to 1
148
- */
149
- setLayerOpacity(layerDef: LayerDef, value: number): void;
150
- /**
151
- * Mark the layer as selected.
152
- * If the adapter is a vector layer and supports data selection,
153
- * you can pass a callback function to specify which data will be selected.
154
- *
155
- * @example
156
- * ```javascript
157
- * const layer = webMap.addLayer('GEOJSON', {data: geojson}).then((layer) => {
158
- * webMap.selectLayer(layer, ({feature}) => feature.id === '42');
159
- * });
160
- * ```
161
-
162
- */
163
- selectLayer(layerDef: LayerDef, findFeatureFun?: DataLayerFilter): void;
164
- /**
165
- * Unselect the given layer.
166
- * If the adapter is a vector layer and supports data selection,
167
- * you can pass a callback function to specify which data will be unselected.
168
- *
169
- * @example
170
- * ```javascript
171
- * const layer = webMap.addLayer('GEOJSON', {data: geojson}).then((layer) => {
172
- * webMap.unSelectLayer(layer, ({feature}) => feature.id === '42');
173
- * });
174
- * ```
175
- *
176
- */
177
- unSelectLayer(layerDef: LayerDef, findFeatureFun?: DataLayerFilter): void;
178
- /** Remove selection from any selected selectable layer */
179
- unSelectLayers(): void;
180
- /**
181
- * Hide features from a vector layer using a callback function.
182
- *
183
- * @example
184
- * ```javascript
185
- * const layer = webMap.addLayer('GEOJSON', {data: geojson}).then((layer) => {
186
- * webMap.filterLayer(layer, ({feature}) => feature.id === '42');
187
- * });
188
- * ```
189
- *
190
- */
191
- filterLayer(layerDef: LayerDef, filter: DataLayerFilter<Feature, L>): LayerDefinition<Feature, L>[];
192
- propertiesFilter(layerDef: LayerDef, filters: PropertiesFilter, options?: FilterOptions): void;
193
- removeLayerFilter(layerDef: LayerDef): void;
194
- /**
195
- * Sets the GeoJSON data for given vector layer.
196
- *
197
- * @example
198
- * ```javascript
199
- * const layer = webMap.addLayer('GEOJSON').then((layer) => {
200
- * webMap.setLayerData(layer, geojson);
201
- * });
202
- * ```
203
- */
204
- setLayerData(layerDef: LayerDef, data: GeoJsonObject): void | Promise<void>;
205
- /**
206
- * Push new the GeoJSON features into given vector layer.
207
- *
208
- * @example
209
- * ```javascript
210
- * const layer = webMap.addLayer('GEOJSON', {data: geojson_features_5}).then((layer) => {
211
- * console.log(layer.getLayers().length) // > 5;
212
- * webMap.addLayerData(layer, geojson_features_3);
213
- * console.log(layer.getLayers().length) // > 8;
214
- * });
215
- * ```
216
- */
217
- addLayerData(layerDef: LayerDef, data: GeoJsonObject): void;
218
- /**
219
- * Remove from vector layer all features.
220
- * it is possible to remove only some objects if you specify a callback function.
221
- *
222
- * @example
223
- * ```javascript
224
- * const layer = webMap.addLayer('GEOJSON', {data: geojson}).then((layer) => {
225
- * webMap.clearLayerData(layer, (feture) => feture.id === 42);
226
- * webMap.clearLayerData(layer);
227
- * });
228
- * ```
229
- */
230
- clearLayerData(layerDef: LayerDef, cb?: (feature: Feature) => boolean): void;
231
- setLayerPaint(layerDef: LayerDef, paint?: Paint | null): void;
232
- setLayerSelectedPaint(layerDef: LayerDef, paint?: Paint | null): void;
233
- updateLayerPaint(layerDef: LayerDef, paint: Partial<Paint>): void;
234
- updateLayerSelectedPaint(layerDef: LayerDef, paint: Partial<Paint>): void;
235
- getAttributions(options: GetAttributionsOptions): string[];
236
- getActiveBaseLayer(): MainLayerAdapter<M, any, AdapterOptions> | undefined;
237
- addTileJsonLayer(tileJson: TileJson): Promise<MainLayerAdapter<M, any, TileAdapterOptions>>;
238
- /** @internal */
239
- _emitLayerEvent(name: keyof E, id: string, options?: unknown): void;
240
- private _onLayerClick;
241
- private _onLayerSelect;
242
- private _updateGeoJsonOptions;
243
- }
244
- export {};
245
- //# sourceMappingURL=WebMapLayers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebMapLayers.d.ts","sourceRoot":"","sources":["../../../../../../packages/webmap/src/WebMapLayers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAgB,MAAM,gBAAgB,CAAC;AAIrD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAW,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EAEnB,oBAAoB,EAEpB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,KAAK,EACV,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EACX,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,aAAK,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI;IAAE,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CAAE,CAAC;AAE1E,qBAAa,YAAY,CACvB,CAAC,GAAG,GAA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