@geoinsight/react-components 1.0.4 → 1.0.6

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 (143) hide show
  1. package/.pnp.cjs +2014 -3638
  2. package/.yarn/install-state.gz +0 -0
  3. package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/package.json +1 -1
  4. package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
  5. package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/CHANGELOG.md +70 -85
  6. package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/package.json +11 -11
  7. package/dist/cjs/components/button/index.stories.d.ts +12 -9
  8. package/dist/cjs/components/map/map-mapbox.d.ts +0 -1
  9. package/dist/cjs/index.css +67 -184
  10. package/dist/cjs/index.d.ts +0 -3
  11. package/dist/cjs/index.js +47 -213
  12. package/dist/cjs/index.js.map +1 -1
  13. package/dist/esm/components/button/index.stories.d.ts +12 -9
  14. package/dist/esm/components/map/map-mapbox.d.ts +0 -1
  15. package/dist/esm/index.css +67 -184
  16. package/dist/esm/index.d.ts +0 -3
  17. package/dist/esm/index.js +49 -192
  18. package/dist/esm/index.js.map +1 -1
  19. package/package.json +1 -5
  20. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/.ready +0 -0
  21. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/LICENSE.txt +0 -116
  22. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/README.md +0 -149
  23. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/banner.ts +0 -4
  24. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/check-bundle-size.js +0 -77
  25. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-debug-index-file.ts +0 -19
  26. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-query-test-fixtures.ts +0 -126
  27. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-shaders.ts +0 -35
  28. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-struct-arrays.ts +0 -437
  29. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-style-code.ts +0 -280
  30. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-style-spec.ts +0 -323
  31. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/generate-typings.ts +0 -26
  32. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/readme.md +0 -52
  33. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/release-notes.js +0 -45
  34. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/rollup_plugin_minify_style_spec.ts +0 -25
  35. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/build/rollup_plugins.ts +0 -52
  36. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp-worker.js +0 -2
  37. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp-worker.js.map +0 -1
  38. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp.js +0 -2
  39. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-csp.js.map +0 -1
  40. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl-dev.js +0 -51935
  41. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.css +0 -1
  42. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.d.ts +0 -11736
  43. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.js +0 -44
  44. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/maplibre-gl.js.map +0 -1
  45. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/package.json +0 -1
  46. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/dist/style-spec/index.d.ts +0 -1768
  47. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/package.json +0 -182
  48. package/.yarn/unplugged/maplibre-gl-npm-2.4.0-9fa603cf50/node_modules/maplibre-gl/postinstall.js +0 -1
  49. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/.editorconfig +0 -7
  50. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/.ready +0 -0
  51. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/LICENSE +0 -21
  52. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/README.md +0 -108
  53. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-PVRTexToolCLI.txt +0 -52
  54. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-astcenc.txt +0 -137
  55. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/LICENSE-crunch.txt +0 -25
  56. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/PVRTexToolCLI +0 -0
  57. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/astcenc +0 -0
  58. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/darwin/crunch +0 -0
  59. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-PVRTexToolCLI.txt +0 -52
  60. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-astcenc.txt +0 -137
  61. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/LICENSE-crunch.txt +0 -25
  62. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/PVRTexToolCLI +0 -0
  63. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/astcenc +0 -0
  64. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/linux/crunch +0 -0
  65. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/texture-compressor.js +0 -3
  66. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-PVRTexToolCLI.txt +0 -52
  67. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-astcenc.txt +0 -137
  68. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/LICENSE-crunch.txt +0 -25
  69. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/PVRTexToolCLI.exe +0 -0
  70. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/astcenc.exe +0 -0
  71. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/bin/win32/crunch.exe +0 -0
  72. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/argsHandler.js +0 -101
  73. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/argsHandler.js.map +0 -1
  74. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithCrunch.js +0 -48
  75. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithCrunch.js.map +0 -1
  76. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithPVRTexTool.js +0 -51
  77. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/compressWithPVRTexTool.js.map +0 -1
  78. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/spawnProcess.js +0 -45
  79. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/spawnProcess.js.map +0 -1
  80. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/validateArgs.js +0 -36
  81. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/compressors/validateArgs.js.map +0 -1
  82. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/constants.js +0 -85
  83. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/constants.js.map +0 -1
  84. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/index.js +0 -33
  85. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/index.js.map +0 -1
  86. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/utilities.js +0 -52
  87. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/lib/utilities.js.map +0 -1
  88. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/cli/package.json +0 -37
  89. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/argsHandler.d.ts +0 -14
  90. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/compressWithCrunch.d.ts +0 -5
  91. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/compressWithPVRTexTool.d.ts +0 -5
  92. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/spawnProcess.d.ts +0 -9
  93. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/compressors/validateArgs.d.ts +0 -11
  94. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/constants.d.ts +0 -45
  95. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/index.d.ts +0 -5
  96. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/dist/types/lib/utilities.d.ts +0 -43
  97. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/RECOMMENDED_PARAMETERS.md +0 -17
  98. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/SUPPORTED_DEVICES_TABLE.md +0 -47
  99. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/SUPPORTED_PARAMETERS.md +0 -154
  100. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/KTXLoader.js +0 -149
  101. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-astc-4x4.ktx +0 -0
  102. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-astc-8x8.ktx +0 -0
  103. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt1.ktx +0 -0
  104. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt1A.ktx +0 -0
  105. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt3.ktx +0 -0
  106. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-dxt5.ktx +0 -0
  107. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc1.ktx +0 -0
  108. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc2.ktx +0 -0
  109. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-etc2A.ktx +0 -0
  110. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc2BPP.ktx +0 -0
  111. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc2BPPA.ktx +0 -0
  112. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc4BPP.ktx +0 -0
  113. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/flippedY-mipmaps/example-pvrtc4BPPA.ktx +0 -0
  114. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/data/main.js +0 -195
  115. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/docs/index.html +0 -37
  116. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/argsHandler.ts +0 -135
  117. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/compressWithCrunch.ts +0 -66
  118. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/compressWithPVRTexTool.ts +0 -91
  119. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/spawnProcess.ts +0 -57
  120. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/compressors/validateArgs.ts +0 -53
  121. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/constants.ts +0 -86
  122. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/index.ts +0 -37
  123. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/lib/utilities.ts +0 -57
  124. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/package.json +0 -37
  125. package/.yarn/unplugged/texture-compressor-npm-1.0.2-c655a54095/node_modules/texture-compressor/tslint.json +0 -12
  126. /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/.ready +0 -0
  127. /package/.yarn/unplugged/{@swc-core-linux-x64-gnu-npm-1.3.106-7bb327124d → @swc-core-linux-x64-gnu-npm-1.4.0-07735121da}/node_modules/@swc/core-linux-x64-gnu/README.md +0 -0
  128. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/.ready +0 -0
  129. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/LICENSE +0 -0
  130. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/README.md +0 -0
  131. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/Visitor.d.ts +0 -0
  132. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/Visitor.js +0 -0
  133. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/binding.d.ts +0 -0
  134. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/binding.js +0 -0
  135. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/bindings/README.md +0 -0
  136. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/bindings/binding_core_wasm/package.json +0 -0
  137. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/index.d.ts +0 -0
  138. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/index.js +0 -0
  139. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/postinstall.js +0 -0
  140. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/spack.d.ts +0 -0
  141. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/spack.js +0 -0
  142. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/util.d.ts +0 -0
  143. /package/.yarn/unplugged/{@swc-core-virtual-22cde85fc1 → @swc-core-virtual-a4869543ec}/node_modules/@swc/core/util.js +0 -0
@@ -1,149 +0,0 @@
1
- ![MapLibre Logo](https://maplibre.org/img/maplibre-logo-big.svg)
2
-
3
- # MapLibre GL JS
4
-
5
- **[MapLibre GL JS](https://maplibre.org/maplibre-gl-js-docs/api/)** is an open-source library for publishing maps on your websites. Fast displaying of maps is possible thanks to GPU-accelerated vector tile rendering.
6
-
7
- It originated as an open-source fork of [mapbox-gl-js](https://github.com/mapbox/mapbox-gl-js), before their switch to a non-OSS license in December 2020. The library is intended to be a drop-in replacement for the Mapbox’s version with additional functionality.
8
-
9
- [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg?style=flat)](LICENSE.txt)[![Version](https://img.shields.io/npm/v/maplibre-gl?style=flat)](https://www.npmjs.com/package/maplibre-gl)[![CI](https://github.com/maplibre/maplibre-gl-js/actions/workflows/ci.yml/badge.svg)](https://github.com/maplibre/maplibre-gl-js/actions/workflows/ci.yml)[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](https://opensource.org/licenses/BSD-3-Clause)
10
-
11
- <br />
12
-
13
- ## Getting Started
14
-
15
- Include the JavaScript and CSS files in the <head> of your HTML file.
16
-
17
- ``` html
18
- <script src='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js'></script>
19
- <link href='https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css' rel='stylesheet' />
20
- ```
21
-
22
- Include the following code in the <body> of your HTML file.
23
-
24
- ``` html
25
- <div id='map' style='width: 400px; height: 300px;'></div>
26
- <script>
27
- var map = new maplibregl.Map({
28
- container: 'map',
29
- style: 'https://demotiles.maplibre.org/style.json', // stylesheet location
30
- center: [-74.5, 40], // starting position [lng, lat]
31
- zoom: 9 // starting zoom
32
- });
33
- </script>
34
- ```
35
-
36
- Enjoy the map!
37
-
38
- <br />
39
-
40
- ## Documentation
41
-
42
- Full documentation for this library [is available here](https://maplibre.org/maplibre-gl-js-docs/api/).
43
-
44
- Check out the features through [examples](https://maplibre.org/maplibre-gl-js-docs/example/).
45
-
46
- | Showcases | |
47
- | ---- | ---- |
48
- |![Display a map](https://maplibre.org/maplibre-gl-js-docs/assets/simple-map-800-22a3f5b6410f543ab214e14f68fb42ec.png) |![Third party vector tile source](https://maplibre.org/maplibre-gl-js-docs/assets/third-party-800-e047007bba338f6ec7d6cd47abfed279.png) |
49
- |![Animate a series of images](https://maplibre.org/maplibre-gl-js-docs/assets/animate-images-800-497358611dbe047f300faeb9465aad5f.png) |![Create a heatmap layer](https://maplibre.org/maplibre-gl-js-docs/assets/heatmap-layer-800-05c0f97ddb6b1a10e84b5064564e86ff.png) |
50
- |![3D buildings](https://maplibre.org/maplibre-gl-js-docs/assets/3d-buildings-800-bd7885f07050dbbfee7a9bb800ff5ce8.png) |![Visualize population density](https://maplibre.org/maplibre-gl-js-docs/assets/visualize-population-density-800-6c65712d9ea94eb6d2bd3348a82b9bdf.png) |
51
-
52
- <br />
53
-
54
- ## Migrating from mapbox-gl
55
-
56
- If you depend on mapbox-gl directly, simply replace `mapbox-gl` with `maplibre-gl` in `package.json`:
57
-
58
- Use
59
-
60
- ```diff
61
- "dependencies": {
62
- - "mapbox-gl": "^1.13.0"
63
- + "maplibre-gl": ">=1.15.2"
64
- }
65
- ```
66
-
67
- if it is important to you that the behaviour is similar to `mapbox-gl` version 1.x.
68
-
69
- If you are OK with changes that integrate non-backward compatible features, install `maplibre-gl` version 2:
70
-
71
- ```diff
72
- "dependencies": {
73
- - "mapbox-gl": "^1.13.0"
74
- + "maplibre-gl": ">=2.0.0"
75
- }
76
- ```
77
-
78
- And replace `mapboxgl` with `maplibregl` in your JavaScript and optionally in your HTML/CSS code:
79
-
80
- > MapLibre GL JS is distributed via [unpkg.com](https://unpkg.com). For more informations please see [MapLibre GL is on unpkg.com](./docs/README-unpkg.md#maplibre-gl-on-unpkgcom).
81
-
82
- ```diff
83
- - <script src="https://api.mapbox.com/mapbox-gl-js/v1.13.0/mapbox-gl.js"></script>
84
- - <link
85
- - href="https://api.mapbox.com/mapbox-gl-js/v1.13.0/mapbox-gl.css"
86
- - rel="stylesheet"
87
- - />
88
-
89
- <!-- Use maplibre-gl version 1.15.2 for backwards compatibility with mapbox-gl version 1.x. -->
90
- + <script src="https://unpkg.com/maplibre-gl@1.15.2/dist/maplibre-gl.js"></script>
91
- + <link
92
- + href="https://unpkg.com/maplibre-gl@1.15.2/dist/maplibre-gl.css"
93
- + rel="stylesheet"
94
- + />
95
-
96
- - var map = new mapboxgl.Map({
97
- + var map = new maplibregl.Map({
98
-
99
- - <button class="mapboxgl-ctrl">
100
- + <button class="maplibregl-ctrl">
101
- ```
102
-
103
- Want an example? Have a look at the official [MapLibre GL JS Documentation](https://maplibre.org/maplibre-gl-js-docs/example/).
104
-
105
- Use MapLibre GL JS bindings for React (https://visgl.github.io/react-map-gl/docs/get-started/get-started#using-with-a-mapbox-gl-fork) and Angular (https://github.com/maplibre/ngx-maplibre-gl). Find more at [awesome-maplibre](https://github.com/maplibre/awesome-maplibre).
106
-
107
- <br />
108
-
109
- ## Contribution
110
-
111
- ### Getting Involved
112
-
113
- Join the #maplibre slack channel at OSMUS: get an invite at https://osmus-slack.herokuapp.com/
114
-
115
- ### Community Leadership
116
-
117
- You can find the official status of the backing community and steering committee in the [COMMUNITY.md](COMMUNITY.md) document.
118
-
119
- ### Avoid Fragmentation
120
-
121
- If you depend on a free software alternative to `mapbox-gl-js`, please consider joining our effort! Anyone with a stake in a healthy community-led fork is welcome to help us figure out our next steps. We welcome contributors and leaders! MapLibre GL already represents the combined efforts of a few early fork efforts, and we all benefit from "one project" rather than "our way". If you know of other forks, please reach out to them and direct them here.
122
-
123
- ### Roadmap
124
-
125
- This project's initial plans are outlined in the [Roadmap](https://github.com/maplibre/maplibre-gl-js/projects/2) project. The primary goal is consistency and continued bug fixes and maintenance as we advance.
126
-
127
- > **MapLibre GL** is developed following [Semantic Versioning (2.0.0)](https://semver.org/spec/v2.0.0.html).
128
-
129
- <br />
130
-
131
- ## Sponsors
132
-
133
- We thank everyone who supported us financially in the past and special thanks to the people and organizations who support us with recurring dontations:
134
-
135
- [MIERUNE Inc.](https://www.mierune.co.jp/?lang=en) [@MIERUNE](https://github.com/MIERUNE), [@jawg](https://github.com/jawg), [@nekoyasan](https://github.com/nekoyasan), [@atierian](https://github.com/atierian), [@photoprism](https://github.com/photoprism), [@kaplanlior](https://github.com/kaplanlior), [@francois2metz](https://github.com/francois2metz), [@Schneider-Geo](https://github.com/Schneider-Geo), [@serghov](https://github.com/serghov), [@ambientlight](https://github.com/ambientlight), [@joschi77](https://github.com/joschi77), [@geoffhill](https://github.com/geoffhill), [@jasongode](https://github.com/jasongode)
136
-
137
- <br />
138
-
139
- ## Thank you Mapbox 🙏🏽
140
-
141
- We'd like to acknowledge the amazing work Mapbox has contributed to open source. The open source community is sad to part ways with them, but we simultaneously feel grateful for everything they already contributed. `mapbox-gl-js` 1.x is an open source achievement which now lives on as `maplibre-gl`. We're proud to develop on the shoulders of giants, thank you Mapbox 🙇🏽‍♀️.
142
-
143
- Please keep in mind: Unauthorized backports are the biggest threat to the MapLibre project. It is unacceptable to backport code from mapbox-gl-js, which is not covered by the former BSD-3 license. If you are unsure about this issue, [please ask](https://github.com/maplibre/maplibre-gl-js/discussions)!
144
-
145
- <br />
146
-
147
- ## License
148
-
149
- **MapLibre GL** is licensed under the [3-Clause BSD license](./LICENSE.txt).
@@ -1,4 +0,0 @@
1
- import fs from 'fs';
2
-
3
- const version = JSON.parse(fs.readFileSync('package.json').toString()).version;
4
- export default `/* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v${version}/LICENSE.txt */`;
@@ -1,77 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import fs from "fs";
4
- import zlib from "zlib";
5
- import prettyBytes from "pretty-bytes";
6
- const beforeSourcemap = JSON.parse(fs.readFileSync('./before.json').toString());
7
- const afterSourcemap = JSON.parse(fs.readFileSync('./after.json').toString());
8
-
9
- function fileSize(file) {
10
- const {size} = fs.statSync(file);
11
- const gzipped = zlib.gzipSync(fs.readFileSync(file)).length
12
- return {
13
- size,
14
- gzipped
15
- };
16
- }
17
-
18
- const beforejs = fileSize('./before/maplibre-gl.js');
19
- const beforecss = fileSize('./before/maplibre-gl.css');
20
- const afterjs = fileSize('./after/maplibre-gl.js');
21
- const aftercss = fileSize('./after/maplibre-gl.css');
22
-
23
- console.log('Bundle size report:\n');
24
- console.log(`**Size Change:** ${prettyBytes(afterjs.gzipped + aftercss.gzipped - (beforejs.gzipped + beforecss.gzipped), { signed: true })}`);
25
- console.log(`**Total Size Before:** ${prettyBytes(beforejs.gzipped + beforecss.gzipped)}`);
26
- console.log(`**Total Size After:** ${prettyBytes(afterjs.gzipped + aftercss.gzipped)}`);
27
- console.log(`
28
- | Output file | Before | After | Change |
29
- | :--- | :---: | :---: | :---: |
30
- | maplibre-gl.js | ${prettyBytes(beforejs.gzipped)} | ${prettyBytes(afterjs.gzipped)} | ${prettyBytes(afterjs.gzipped - beforejs.gzipped, { signed: true })} |
31
- | maplibre-gl.css | ${prettyBytes(beforecss.gzipped)} | ${prettyBytes(aftercss.gzipped)} | ${prettyBytes(aftercss.gzipped - beforecss.gzipped, { signed: true })} |`);
32
-
33
- const before = {};
34
- beforeSourcemap.results.forEach(result => {
35
- Object.keys(result.files).forEach(filename => {
36
- const {size} = result.files[filename];
37
- before[filename] = size;
38
- });
39
- });
40
-
41
- const after = {};
42
- afterSourcemap.results.forEach(result => {
43
- Object.keys(result.files).forEach(filename => {
44
- const {size} = result.files[filename];
45
- after[filename] = size;
46
- });
47
- });
48
-
49
- const diffs = [];
50
- Object.keys(Object.assign({}, before, after)).forEach(filename => {
51
- const beforeSize = before[filename] || 0;
52
- const afterSize = after[filename] || 0;
53
- if (Math.abs(afterSize - beforeSize) > 0) {
54
- diffs.push([
55
- afterSize - beforeSize, // for sorting
56
- filename.replace(/^[\./]+/, ''), // omit ../
57
- prettyBytes(beforeSize),
58
- prettyBytes(afterSize),
59
- prettyBytes(afterSize - beforeSize, { signed: true })
60
- ]);
61
- }
62
- });
63
-
64
- diffs.sort((a, b) => b[0] - a[0]);
65
-
66
- console.log(`
67
- <details><summary>ℹ️ <strong>View Details</strong></summary>`);
68
- if (diffs.length) {
69
- console.log(`
70
- | Source file | Before | After | Change |
71
- | :--- | :---: | :---: | :---: |
72
- ${diffs.map(diff => '| ' + diff.slice(1).join(' | ') + ' |').join('\n')}
73
- `);
74
- } else {
75
- console.log('No major changes');
76
- }
77
- console.log(`</details>`);
@@ -1,19 +0,0 @@
1
- /** This file is meant to create an index.html file to allow knowing which debug files exists */
2
- import fs from 'fs';
3
-
4
- const htmlFilesLinks = fs.readdirSync('test/debug-pages')
5
- .filter(f => f.endsWith('.html'))
6
- .map(f => ` <a href='/test/debug-pages/${f}'>${f}</a><br/>`)
7
- .join('\n');
8
-
9
- fs.writeFileSync('test/debug-pages/index.html', `
10
- <html>
11
- <head>
12
- <title>Debug Pages</title>
13
- </head>
14
- <body>
15
- <h1>Debug Pages</h1>
16
- ${htmlFilesLinks}
17
- </body>
18
- </html>
19
- `);
@@ -1,126 +0,0 @@
1
- import path, {dirname} from 'path';
2
- import fs from 'fs';
3
- import glob from 'glob';
4
- import localizeURLs from '../test/integration/lib/localize-urls';
5
- import {fileURLToPath} from 'url';
6
- import {createRequire} from 'module';
7
-
8
- const __dirname = dirname(fileURLToPath(import.meta.url));
9
- const requireFn = createRequire(import.meta.url);
10
- const OUTPUT_FILE = 'fixtures.json';
11
- const rootFixturePath = 'test/integration/query/';
12
- const suitePath = 'tests';
13
-
14
- /**
15
- * Analyzes the contents of the specified `path.join(rootDirectory, suiteDirectory)`, and inlines
16
- * the contents into a single json file which can then be imported and built into a bundle
17
- * to be shipped to the browser.
18
- * @param rootDirectory - The root directory
19
- * @param suiteDirectory - The suite directory
20
- * @param outputDirectory - The output directory
21
- * @param includeImages - Flag to include images
22
- */
23
- function generateFixtureJson(rootDirectory: string, suiteDirectory: string, outputDirectory: string = 'test/integration/query/dist', includeImages:boolean = false) {
24
- const globs = getAllFixtureGlobs(rootDirectory, suiteDirectory);
25
- const jsonPaths = globs[0];
26
- const imagePaths = globs[1];
27
- //Extract the filedata into a flat dictionary
28
- const allFiles = {};
29
- // Using replace() to fixup Windows paths so they are compatible with glob sync.
30
- let allPaths = glob.sync(jsonPaths.replace(/\\/g, '/'));
31
- if (includeImages) {
32
- allPaths = allPaths.concat(glob.sync(imagePaths.replace(/\\/g, '/')));
33
- }
34
-
35
- //A Set that stores test names that are malformed so they can be removed later
36
- const malformedTests = {};
37
-
38
- for (const fixturePath of allPaths) {
39
- const testName = path.dirname(fixturePath);
40
- const fileName = path.basename(fixturePath);
41
- const extension = path.extname(fixturePath);
42
- try {
43
- if (extension === '.json') {
44
- let json = parseJsonFromFile(fixturePath);
45
-
46
- //Special case for style json which needs some preprocessing
47
- if (fileName === 'style.json') {
48
- json = processStyle(testName, json);
49
- }
50
-
51
- allFiles[fixturePath] = json;
52
- } else if (extension === '.png') {
53
- allFiles[fixturePath] = pngToBase64Str(fixturePath);
54
- } else {
55
- throw new Error(`${extension} is incompatible , file path ${fixturePath}`);
56
- }
57
- } catch (e) {
58
- console.log(`Error parsing file: ${fixturePath} ${e.message}`);
59
- malformedTests[testName] = true;
60
- }
61
- }
62
-
63
- // Re-nest by directory path, each directory path defines a testcase.
64
- const result = {};
65
- for (const fullPath in allFiles) {
66
- const testName = path.dirname(fullPath).replace(rootDirectory, '');
67
- //Skip if test is malformed
68
- if (malformedTests[testName]) { continue; }
69
-
70
- //Lazily initaialize an object to store each file wihin a particular testName
71
- if (result[testName] == null) {
72
- result[testName] = {};
73
- }
74
- //Trim extension from filename
75
- const fileName = path.basename(fullPath, path.extname(fullPath));
76
- result[testName][fileName] = allFiles[fullPath];
77
- }
78
-
79
- const outputStr = JSON.stringify(result, null, 4);
80
- const outputPath = path.join(outputDirectory, OUTPUT_FILE);
81
-
82
- return new Promise<void>((resolve, reject) => {
83
- fs.writeFile(outputPath, outputStr, {encoding: 'utf8'}, (err) => {
84
- if (err) { reject(err); }
85
-
86
- resolve();
87
- });
88
- });
89
- }
90
-
91
- function getAllFixtureGlobs(rootDirectory, suiteDirectory) {
92
- const basePath = path.join(rootDirectory, suiteDirectory);
93
- const jsonPaths = path.join(basePath, '/**/*.json');
94
- const imagePaths = path.join(basePath, '/**/*.png');
95
-
96
- return [jsonPaths, imagePaths];
97
- }
98
-
99
- function parseJsonFromFile(filePath) {
100
- return JSON.parse(fs.readFileSync(filePath, {encoding: 'utf8'}));
101
- }
102
-
103
- function pngToBase64Str(filePath) {
104
- return fs.readFileSync(filePath).toString('base64');
105
- }
106
-
107
- function processStyle(testName, style) {
108
- const clone = JSON.parse(JSON.stringify(style));
109
- localizeURLs(clone, 7357, path.join(__dirname, '../test/integration'), requireFn);
110
-
111
- clone.metadata = clone.metadata || {};
112
-
113
- // eslint-disable-next-line no-restricted-properties
114
- clone.metadata.test = Object.assign({
115
- testName,
116
- width: 512,
117
- height: 512,
118
- pixelRatio: 1,
119
- recycleMap: false,
120
- allowed: 0.00015
121
- }, clone.metadata.test);
122
-
123
- return clone;
124
- }
125
- // @ts-ignore
126
- await generateFixtureJson(rootFixturePath, suitePath);
@@ -1,35 +0,0 @@
1
- import fs from 'fs';
2
- import glob from 'glob';
3
-
4
- console.log('Generating shaders');
5
-
6
- /**
7
- * This script is intended to copy the glsl file to the compilation output folder,
8
- * change their extension to .js and export the shaders as strings in javascript.
9
- * It will also minify them a bit if needed and change the extension to .js
10
- * After that it will create a combined typescript definition file and manipulate it a bit
11
- * It will also create a simple package.json file to allow importing this package in webpack
12
- */
13
-
14
- glob('./src/shaders/*.glsl', null, (_err, files) => {
15
- for (const file of files) {
16
- const code = fs.readFileSync(file, 'utf8');
17
- const content = glslToTs(code);
18
- const fileName = `./src/shaders/${file.split('/').splice(-1)}.g.ts`;
19
- fs.writeFileSync(fileName, content);
20
- }
21
- console.log(`Finished converting ${files.length} glsl files`);
22
- });
23
-
24
- function glslToTs(code: string): string {
25
- code = code
26
- .trim() // strip whitespace at the start/end
27
- .replace(/\s*\/\/[^\n]*\n/g, '\n') // strip double-slash comments
28
- .replace(/\n+/g, '\n') // collapse multi line breaks
29
- .replace(/\n\s+/g, '\n') // strip identation
30
- .replace(/\s?([+-\/*=,])\s?/g, '$1') // strip whitespace around operators
31
- .replace(/([;\(\),\{\}])\n(?=[^#])/g, '$1'); // strip more line breaks
32
-
33
- return `// This file is generated. Edit build/generate-shaders.ts, then run \`npm run codegen\`.
34
- export default ${JSON.stringify(code).replaceAll('"', '\'')};\n`;
35
- }