Experiment: globe mode

This commit is contained in:
Pieter Vander Vennet 2025-02-05 01:22:53 +01:00
parent 32ce71d551
commit 3645559b19
4 changed files with 180 additions and 340 deletions

506
package-lock.json generated
View file

@ -56,7 +56,7 @@
"libphonenumber-js": "^1.10.8",
"mangrove-reviews-typescript": "^1.1.0",
"maplibre": "^0.0.1-security",
"maplibre-gl": "^4.1.1",
"maplibre-gl": "^5.1.0",
"marked": "^12.0.2",
"monaco-editor": "^0.46.0",
"mvt-to-geojson": "^0.0.5",
@ -4853,6 +4853,8 @@
},
"node_modules/@mapbox/jsonlint-lines-primitives": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz",
"integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ==",
"engines": {
"node": ">= 0.6"
}
@ -4876,7 +4878,8 @@
},
"node_modules/@mapbox/unitbezier": {
"version": "0.0.1",
"license": "BSD-2-Clause"
"resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz",
"integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw=="
},
"node_modules/@mapbox/vector-tile": {
"version": "1.3.1",
@ -4893,15 +4896,17 @@
}
},
"node_modules/@maplibre/maplibre-gl-style-spec": {
"version": "20.1.1",
"license": "ISC",
"version": "23.1.0",
"resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-23.1.0.tgz",
"integrity": "sha512-R6/ihEuC5KRexmKIYkWqUv84Gm+/QwsOUgHyt1yy2XqCdGdLvlBWVWIIeTZWN4NGdwmY6xDzdSGU2R9oBLNg2w==",
"dependencies": {
"@mapbox/jsonlint-lines-primitives": "~2.0.2",
"@mapbox/unitbezier": "^0.0.1",
"json-stringify-pretty-compact": "^4.0.0",
"minimist": "^1.2.8",
"quickselect": "^3.0.0",
"rw": "^1.3.3",
"sort-object": "^3.0.3"
"tinyqueue": "^3.0.0"
},
"bin": {
"gl-style-format": "dist/gl-style-format.mjs",
@ -4909,6 +4914,16 @@
"gl-style-validate": "dist/gl-style-validate.mjs"
}
},
"node_modules/@maplibre/maplibre-gl-style-spec/node_modules/quickselect": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
"integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="
},
"node_modules/@maplibre/maplibre-gl-style-spec/node_modules/tinyqueue": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="
},
"node_modules/@monaco-editor/loader": {
"version": "1.4.0",
"dev": true,
@ -6680,8 +6695,9 @@
}
},
"node_modules/@types/geojson": {
"version": "7946.0.14",
"license": "MIT"
"version": "7946.0.16",
"resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
"integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg=="
},
"node_modules/@types/geojson-vt": {
"version": "3.2.5",
@ -7533,13 +7549,6 @@
"version": "2.0.1",
"license": "Python-2.0"
},
"node_modules/arr-union": {
"version": "3.1.0",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/array-equal": {
"version": "1.0.0",
"license": "MIT"
@ -7613,13 +7622,6 @@
"node": "*"
}
},
"node_modules/assign-symbols": {
"version": "1.0.0",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/async": {
"version": "3.2.5",
"license": "MIT"
@ -7928,21 +7930,6 @@
"node": ">=4"
}
},
"node_modules/bytewise": {
"version": "1.1.0",
"license": "MIT",
"dependencies": {
"bytewise-core": "^1.2.2",
"typewise": "^1.0.3"
}
},
"node_modules/bytewise-core": {
"version": "1.2.3",
"license": "MIT",
"dependencies": {
"typewise-core": "^1.2"
}
},
"node_modules/cac": {
"version": "6.7.14",
"license": "MIT",
@ -10183,16 +10170,6 @@
"version": "3.0.2",
"license": "MIT"
},
"node_modules/extend-shallow": {
"version": "2.0.1",
"license": "MIT",
"dependencies": {
"is-extendable": "^0.1.0"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/extsprintf": {
"version": "1.3.0",
"engines": [
@ -10790,8 +10767,9 @@
}
},
"node_modules/geojson-vt": {
"version": "3.2.1",
"license": "ISC"
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-4.0.2.tgz",
"integrity": "sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A=="
},
"node_modules/geojson2svg": {
"version": "1.3.3",
@ -10916,13 +10894,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/get-value": {
"version": "2.0.6",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/getpass": {
"version": "0.1.7",
"license": "MIT",
@ -11066,25 +11037,46 @@
}
},
"node_modules/global-prefix": {
"version": "3.0.0",
"license": "MIT",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-4.0.0.tgz",
"integrity": "sha512-w0Uf9Y9/nyHinEk5vMJKRie+wa4kR5hmDbEhGGds/kG1PwGLLHKRoNMeJOyCQjjBkANlnScqgzcFwGHgmgLkVA==",
"dependencies": {
"ini": "^1.3.5",
"kind-of": "^6.0.2",
"which": "^1.3.1"
"ini": "^4.1.3",
"kind-of": "^6.0.3",
"which": "^4.0.0"
},
"engines": {
"node": ">=6"
"node": ">=16"
}
},
"node_modules/global-prefix/node_modules/ini": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz",
"integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/global-prefix/node_modules/isexe": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",
"integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==",
"engines": {
"node": ">=16"
}
},
"node_modules/global-prefix/node_modules/which": {
"version": "1.3.1",
"license": "ISC",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
"integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
"dependencies": {
"isexe": "^2.0.0"
"isexe": "^3.1.1"
},
"bin": {
"which": "bin/which"
"node-which": "bin/which.js"
},
"engines": {
"node": "^16.13.0 || >=18.0.0"
}
},
"node_modules/globals": {
@ -11577,6 +11569,7 @@
},
"node_modules/ini": {
"version": "1.3.8",
"dev": true,
"license": "ISC"
},
"node_modules/interpret": {
@ -11656,13 +11649,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/is-extendable": {
"version": "0.1.1",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"license": "MIT",
@ -11776,16 +11762,6 @@
"node": ">=8"
}
},
"node_modules/is-plain-object": {
"version": "2.0.4",
"license": "MIT",
"dependencies": {
"isobject": "^3.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-potential-custom-element-name": {
"version": "1.0.1",
"license": "MIT",
@ -11870,13 +11846,6 @@
"version": "2.0.0",
"license": "ISC"
},
"node_modules/isobject": {
"version": "3.0.1",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/isstream": {
"version": "0.1.2",
"license": "MIT"
@ -12089,7 +12058,8 @@
},
"node_modules/json-stringify-pretty-compact": {
"version": "4.0.0",
"license": "MIT"
"resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz",
"integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q=="
},
"node_modules/json-stringify-safe": {
"version": "5.0.1",
@ -12673,8 +12643,9 @@
"integrity": "sha512-XawLsomeCq3O+x3IYTlU1QH52m9JvgEZvffgzWZ9P61HdSghJFzLUJjGXvtwV3hEuuZy9v9iSCG7W8pfr8p4Eg=="
},
"node_modules/maplibre-gl": {
"version": "4.1.2",
"license": "BSD-3-Clause",
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.1.0.tgz",
"integrity": "sha512-6lbf7qAnqAVm1T/vJBMmRtP+g8G/O/Z52IBtWX31SbFj7sEdlrk4YugxJen8IdV/pFjLFnDOw7HiHZl5nYdVjg==",
"dependencies": {
"@mapbox/geojson-rewind": "^0.5.2",
"@mapbox/jsonlint-lines-primitives": "^2.0.2",
@ -12683,24 +12654,24 @@
"@mapbox/unitbezier": "^0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@mapbox/whoots-js": "^3.1.0",
"@maplibre/maplibre-gl-style-spec": "^20.1.1",
"@types/geojson": "^7946.0.14",
"@maplibre/maplibre-gl-style-spec": "^23.1.0",
"@types/geojson": "^7946.0.16",
"@types/geojson-vt": "3.2.5",
"@types/mapbox__point-geometry": "^0.1.4",
"@types/mapbox__vector-tile": "^1.3.4",
"@types/pbf": "^3.0.5",
"@types/supercluster": "^7.1.3",
"earcut": "^2.2.4",
"geojson-vt": "^3.2.1",
"earcut": "^3.0.1",
"geojson-vt": "^4.0.2",
"gl-matrix": "^3.4.3",
"global-prefix": "^3.0.0",
"global-prefix": "^4.0.0",
"kdbush": "^4.0.2",
"murmurhash-js": "^1.0.0",
"pbf": "^3.2.1",
"pbf": "^3.3.0",
"potpack": "^2.0.0",
"quickselect": "^2.0.0",
"quickselect": "^3.0.0",
"supercluster": "^8.0.1",
"tinyqueue": "^2.0.3",
"tinyqueue": "^3.0.0",
"vt-pbf": "^3.1.3"
},
"engines": {
@ -12711,13 +12682,24 @@
"url": "https://github.com/maplibre/maplibre-gl-js?sponsor=1"
}
},
"node_modules/maplibre-gl/node_modules/earcut": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.1.tgz",
"integrity": "sha512-0l1/0gOjESMeQyYaK5IDiPNvFeu93Z/cO0TjZh9eZ1vyCtZnA7KMZ8rQggpsJHIbGSdrqYq9OhuveadOVHCshw=="
},
"node_modules/maplibre-gl/node_modules/kdbush": {
"version": "4.0.2",
"license": "ISC"
},
"node_modules/maplibre-gl/node_modules/quickselect": {
"version": "2.0.0",
"license": "ISC"
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
"integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="
},
"node_modules/maplibre-gl/node_modules/tinyqueue": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="
},
"node_modules/marked": {
"version": "12.0.2",
@ -16239,8 +16221,9 @@
}
},
"node_modules/pbf": {
"version": "3.2.1",
"license": "BSD-3-Clause",
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/pbf/-/pbf-3.3.0.tgz",
"integrity": "sha512-XDF38WCH3z5OV/OVa8GKUNtLAyneuzbCisx7QUCF8Q6Nutx0WnJrQe5O+kOtBlLfRNUws98Y58Lblp+NJG5T4Q==",
"dependencies": {
"ieee754": "^1.1.12",
"resolve-protobuf-schema": "^2.1.0"
@ -18036,7 +18019,8 @@
},
"node_modules/rw": {
"version": "1.3.3",
"license": "BSD-3-Clause"
"resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz",
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
},
"node_modules/sade": {
"version": "1.8.1",
@ -18193,19 +18177,6 @@
"randombytes": "^2.1.0"
}
},
"node_modules/set-value": {
"version": "2.0.1",
"license": "MIT",
"dependencies": {
"extend-shallow": "^2.0.1",
"is-extendable": "^0.1.1",
"is-plain-object": "^2.0.3",
"split-string": "^3.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/setimmediate": {
"version": "1.0.5",
"license": "MIT"
@ -18503,35 +18474,6 @@
"sorcery": "bin/sorcery"
}
},
"node_modules/sort-asc": {
"version": "0.2.0",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/sort-desc": {
"version": "0.2.0",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/sort-object": {
"version": "3.0.3",
"license": "MIT",
"dependencies": {
"bytewise": "^1.1.0",
"get-value": "^2.0.2",
"is-extendable": "^0.1.1",
"sort-asc": "^0.2.0",
"sort-desc": "^0.2.0",
"union-value": "^1.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/source-map": {
"version": "0.6.1",
"license": "BSD-3-Clause",
@ -18702,37 +18644,6 @@
"node": "*"
}
},
"node_modules/split-string": {
"version": "3.1.0",
"license": "MIT",
"dependencies": {
"extend-shallow": "^3.0.0"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/split-string/node_modules/extend-shallow": {
"version": "3.0.2",
"license": "MIT",
"dependencies": {
"assign-symbols": "^1.0.0",
"is-extendable": "^1.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/split-string/node_modules/is-extendable": {
"version": "1.0.1",
"license": "MIT",
"dependencies": {
"is-plain-object": "^2.0.4"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/split2": {
"version": "4.2.0",
"license": "ISC",
@ -20353,17 +20264,6 @@
"node": ">=4.2.0"
}
},
"node_modules/typewise": {
"version": "1.0.3",
"license": "MIT",
"dependencies": {
"typewise-core": "^1.2.0"
}
},
"node_modules/typewise-core": {
"version": "1.2.0",
"license": "MIT"
},
"node_modules/ufo": {
"version": "1.0.1",
"license": "MIT"
@ -20446,19 +20346,6 @@
"version": "1.0.2",
"license": "MIT"
},
"node_modules/union-value": {
"version": "1.0.1",
"license": "MIT",
"dependencies": {
"arr-union": "^3.1.0",
"get-value": "^2.0.6",
"is-extendable": "^0.1.1",
"set-value": "^2.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/universalify": {
"version": "0.2.0",
"license": "MIT",
@ -24853,7 +24740,9 @@
}
},
"@mapbox/jsonlint-lines-primitives": {
"version": "2.0.2"
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz",
"integrity": "sha512-rY0o9A5ECsTQRVhv7tL/OyDpGAoUB4tTvLiW1DSzQGq4bvTPhNw1VpSNjDJc5GFZ2XuyOtSWSVN05qOtcD71qQ=="
},
"@mapbox/point-geometry": {
"version": "0.1.0"
@ -24865,7 +24754,9 @@
"version": "2.0.6"
},
"@mapbox/unitbezier": {
"version": "0.0.1"
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/@mapbox/unitbezier/-/unitbezier-0.0.1.tgz",
"integrity": "sha512-nMkuDXFv60aBr9soUG5q+GvZYL+2KZHVvsqFCzqnkGEf46U2fvmytHaEVc1/YZbiLn8X+eR3QzX1+dwDO1lxlw=="
},
"@mapbox/vector-tile": {
"version": "1.3.1",
@ -24877,14 +24768,29 @@
"version": "3.1.0"
},
"@maplibre/maplibre-gl-style-spec": {
"version": "20.1.1",
"version": "23.1.0",
"resolved": "https://registry.npmjs.org/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-23.1.0.tgz",
"integrity": "sha512-R6/ihEuC5KRexmKIYkWqUv84Gm+/QwsOUgHyt1yy2XqCdGdLvlBWVWIIeTZWN4NGdwmY6xDzdSGU2R9oBLNg2w==",
"requires": {
"@mapbox/jsonlint-lines-primitives": "~2.0.2",
"@mapbox/unitbezier": "^0.0.1",
"json-stringify-pretty-compact": "^4.0.0",
"minimist": "^1.2.8",
"quickselect": "^3.0.0",
"rw": "^1.3.3",
"sort-object": "^3.0.3"
"tinyqueue": "^3.0.0"
},
"dependencies": {
"quickselect": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
"integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="
},
"tinyqueue": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="
}
}
},
"@monaco-editor/loader": {
@ -26111,7 +26017,9 @@
}
},
"@types/geojson": {
"version": "7946.0.14"
"version": "7946.0.16",
"resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.16.tgz",
"integrity": "sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg=="
},
"@types/geojson-vt": {
"version": "3.2.5",
@ -26689,9 +26597,6 @@
"argparse": {
"version": "2.0.1"
},
"arr-union": {
"version": "3.1.0"
},
"array-equal": {
"version": "1.0.0"
},
@ -26745,9 +26650,6 @@
"assertion-error": {
"version": "1.1.0"
},
"assign-symbols": {
"version": "1.0.0"
},
"async": {
"version": "3.2.5"
},
@ -26919,19 +26821,6 @@
"buffer-writer": {
"version": "2.0.0"
},
"bytewise": {
"version": "1.1.0",
"requires": {
"bytewise-core": "^1.2.2",
"typewise": "^1.0.3"
}
},
"bytewise-core": {
"version": "1.2.3",
"requires": {
"typewise-core": "^1.2"
}
},
"cac": {
"version": "6.7.14"
},
@ -28431,12 +28320,6 @@
"extend": {
"version": "3.0.2"
},
"extend-shallow": {
"version": "2.0.1",
"requires": {
"is-extendable": "^0.1.0"
}
},
"extsprintf": {
"version": "1.3.0"
},
@ -28844,7 +28727,9 @@
}
},
"geojson-vt": {
"version": "3.2.1"
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/geojson-vt/-/geojson-vt-4.0.2.tgz",
"integrity": "sha512-AV9ROqlNqoZEIJGfm1ncNjEXfkz2hdFlZf0qkVfmkwdKa8vj7H16YUOT81rJw1rdFhyEDlN2Tds91p/glzbl5A=="
},
"geojson2svg": {
"version": "1.3.3",
@ -28932,9 +28817,6 @@
"get-stream": {
"version": "6.0.1"
},
"get-value": {
"version": "2.0.6"
},
"getpass": {
"version": "0.1.7",
"requires": {
@ -29043,17 +28925,31 @@
}
},
"global-prefix": {
"version": "3.0.0",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-4.0.0.tgz",
"integrity": "sha512-w0Uf9Y9/nyHinEk5vMJKRie+wa4kR5hmDbEhGGds/kG1PwGLLHKRoNMeJOyCQjjBkANlnScqgzcFwGHgmgLkVA==",
"requires": {
"ini": "^1.3.5",
"kind-of": "^6.0.2",
"which": "^1.3.1"
"ini": "^4.1.3",
"kind-of": "^6.0.3",
"which": "^4.0.0"
},
"dependencies": {
"ini": {
"version": "4.1.3",
"resolved": "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz",
"integrity": "sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg=="
},
"isexe": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz",
"integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ=="
},
"which": {
"version": "1.3.1",
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/which/-/which-4.0.0.tgz",
"integrity": "sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==",
"requires": {
"isexe": "^2.0.0"
"isexe": "^3.1.1"
}
}
}
@ -29367,7 +29263,8 @@
"version": "2.0.4"
},
"ini": {
"version": "1.3.8"
"version": "1.3.8",
"dev": true
},
"interpret": {
"version": "3.1.1",
@ -29413,9 +29310,6 @@
"has-tostringtag": "^1.0.0"
}
},
"is-extendable": {
"version": "0.1.1"
},
"is-extglob": {
"version": "2.1.1"
},
@ -29479,12 +29373,6 @@
"is-plain-obj": {
"version": "2.1.0"
},
"is-plain-object": {
"version": "2.0.4",
"requires": {
"isobject": "^3.0.1"
}
},
"is-potential-custom-element-name": {
"version": "1.0.1",
"optional": true,
@ -29535,9 +29423,6 @@
"isexe": {
"version": "2.0.0"
},
"isobject": {
"version": "3.0.1"
},
"isstream": {
"version": "0.1.2"
},
@ -29681,7 +29566,9 @@
"dev": true
},
"json-stringify-pretty-compact": {
"version": "4.0.0"
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/json-stringify-pretty-compact/-/json-stringify-pretty-compact-4.0.0.tgz",
"integrity": "sha512-3CNZ2DnrpByG9Nqj6Xo8vqbjT4F6N+tb4Gb28ESAZjYZ5yqvmc56J+/kuIwkaAMOyblTQhUW7PxMkUb8Q36N3Q=="
},
"json-stringify-safe": {
"version": "5.0.1"
@ -30084,7 +29971,9 @@
"integrity": "sha512-XawLsomeCq3O+x3IYTlU1QH52m9JvgEZvffgzWZ9P61HdSghJFzLUJjGXvtwV3hEuuZy9v9iSCG7W8pfr8p4Eg=="
},
"maplibre-gl": {
"version": "4.1.2",
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.1.0.tgz",
"integrity": "sha512-6lbf7qAnqAVm1T/vJBMmRtP+g8G/O/Z52IBtWX31SbFj7sEdlrk4YugxJen8IdV/pFjLFnDOw7HiHZl5nYdVjg==",
"requires": {
"@mapbox/geojson-rewind": "^0.5.2",
"@mapbox/jsonlint-lines-primitives": "^2.0.2",
@ -30093,32 +29982,44 @@
"@mapbox/unitbezier": "^0.0.1",
"@mapbox/vector-tile": "^1.3.1",
"@mapbox/whoots-js": "^3.1.0",
"@maplibre/maplibre-gl-style-spec": "^20.1.1",
"@types/geojson": "^7946.0.14",
"@maplibre/maplibre-gl-style-spec": "^23.1.0",
"@types/geojson": "^7946.0.16",
"@types/geojson-vt": "3.2.5",
"@types/mapbox__point-geometry": "^0.1.4",
"@types/mapbox__vector-tile": "^1.3.4",
"@types/pbf": "^3.0.5",
"@types/supercluster": "^7.1.3",
"earcut": "^2.2.4",
"geojson-vt": "^3.2.1",
"earcut": "^3.0.1",
"geojson-vt": "^4.0.2",
"gl-matrix": "^3.4.3",
"global-prefix": "^3.0.0",
"global-prefix": "^4.0.0",
"kdbush": "^4.0.2",
"murmurhash-js": "^1.0.0",
"pbf": "^3.2.1",
"pbf": "^3.3.0",
"potpack": "^2.0.0",
"quickselect": "^2.0.0",
"quickselect": "^3.0.0",
"supercluster": "^8.0.1",
"tinyqueue": "^2.0.3",
"tinyqueue": "^3.0.0",
"vt-pbf": "^3.1.3"
},
"dependencies": {
"earcut": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/earcut/-/earcut-3.0.1.tgz",
"integrity": "sha512-0l1/0gOjESMeQyYaK5IDiPNvFeu93Z/cO0TjZh9eZ1vyCtZnA7KMZ8rQggpsJHIbGSdrqYq9OhuveadOVHCshw=="
},
"kdbush": {
"version": "4.0.2"
},
"quickselect": {
"version": "2.0.0"
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/quickselect/-/quickselect-3.0.0.tgz",
"integrity": "sha512-XdjUArbK4Bm5fLLvlm5KpTFOiOThgfWWI4axAZDWg4E/0mKdZyI9tNEfds27qCi1ze/vwTR16kvmmGhRra3c2g=="
},
"tinyqueue": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/tinyqueue/-/tinyqueue-3.0.0.tgz",
"integrity": "sha512-gRa9gwYU3ECmQYv3lslts5hxuIa90veaEcxDYuu3QGOIAEM2mOZkVHp48ANJuu1CURtRdHKUBY5Lm1tHV+sD4g=="
}
}
},
@ -32401,7 +32302,9 @@
"version": "1.1.1"
},
"pbf": {
"version": "3.2.1",
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/pbf/-/pbf-3.3.0.tgz",
"integrity": "sha512-XDF38WCH3z5OV/OVa8GKUNtLAyneuzbCisx7QUCF8Q6Nutx0WnJrQe5O+kOtBlLfRNUws98Y58Lblp+NJG5T4Q==",
"requires": {
"ieee754": "^1.1.12",
"resolve-protobuf-schema": "^2.1.0"
@ -33617,7 +33520,9 @@
"integrity": "sha512-KPDNauF2Tpnm3nG0+0LJuJxwBFrhAdthpM8bVdDvjWQA7pWP7QoNwEl1+dJ7WVJj81AQP/i6kl6JUmAk7tg3Og=="
},
"rw": {
"version": "1.3.3"
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/rw/-/rw-1.3.3.tgz",
"integrity": "sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ=="
},
"sade": {
"version": "1.8.1",
@ -33720,15 +33625,6 @@
"randombytes": "^2.1.0"
}
},
"set-value": {
"version": "2.0.1",
"requires": {
"extend-shallow": "^2.0.1",
"is-extendable": "^0.1.1",
"is-plain-object": "^2.0.3",
"split-string": "^3.0.1"
}
},
"setimmediate": {
"version": "1.0.5"
},
@ -33915,23 +33811,6 @@
"sander": "^0.5.0"
}
},
"sort-asc": {
"version": "0.2.0"
},
"sort-desc": {
"version": "0.2.0"
},
"sort-object": {
"version": "3.0.3",
"requires": {
"bytewise": "^1.1.0",
"get-value": "^2.0.2",
"is-extendable": "^0.1.1",
"sort-asc": "^0.2.0",
"sort-desc": "^0.2.0",
"union-value": "^1.0.1"
}
},
"source-map": {
"version": "0.6.1"
},
@ -34070,27 +33949,6 @@
"through": "2"
}
},
"split-string": {
"version": "3.1.0",
"requires": {
"extend-shallow": "^3.0.0"
},
"dependencies": {
"extend-shallow": {
"version": "3.0.2",
"requires": {
"assign-symbols": "^1.0.0",
"is-extendable": "^1.0.1"
}
},
"is-extendable": {
"version": "1.0.1",
"requires": {
"is-plain-object": "^2.0.4"
}
}
}
},
"split2": {
"version": "4.2.0"
},
@ -35220,15 +35078,6 @@
}
}
},
"typewise": {
"version": "1.0.3",
"requires": {
"typewise-core": "^1.2.0"
}
},
"typewise-core": {
"version": "1.2.0"
},
"ufo": {
"version": "1.0.1"
},
@ -35277,15 +35126,6 @@
"union-find": {
"version": "1.0.2"
},
"union-value": {
"version": "1.0.1",
"requires": {
"arr-union": "^3.1.0",
"get-value": "^2.0.6",
"is-extendable": "^0.1.1",
"set-value": "^2.0.1"
}
},
"universalify": {
"version": "0.2.0",
"optional": true,

View file

@ -209,7 +209,7 @@
"libphonenumber-js": "^1.10.8",
"mangrove-reviews-typescript": "^1.1.0",
"maplibre": "^0.0.1-security",
"maplibre-gl": "^4.1.1",
"maplibre-gl": "^5.1.0 ",
"marked": "^12.0.2",
"monaco-editor": "^0.46.0",
"mvt-to-geojson": "^0.0.5",

View file

@ -1,10 +1,5 @@
import { ImmutableStore, Store, UIEventSource } from "../../Logic/UIEventSource"
import maplibregl, {
Map as MLMap,
Map as MlMap,
ScaleControl,
SourceSpecification,
} from "maplibre-gl"
import maplibregl, { Map as MLMap, Map as MlMap, ScaleControl, SourceSpecification } from "maplibre-gl"
import { RasterLayerPolygon } from "../../Models/RasterLayers"
import { Utils } from "../../Utils"
import { BBox } from "../../Logic/BBox"
@ -179,6 +174,10 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
maplibreMap.addCallbackAndRunD((map) => {
map.on("load", () => {
console.log("Setting projection")
map.setProjection({
type: "globe" // Set projection to globe
})
self.MoveMapToCurrentLoc(self.location.data)
self.SetZoom(self.zoom.data)
self.setMaxBounds(self.maxbounds.data)

View file

@ -176,6 +176,7 @@
</script>
<main>
<div class="absolute top-0 left-0 h-screen w-screen" style="background-color: #cccccc"></div>
<!-- Main map -->
<div class="absolute top-0 left-0 h-screen w-screen overflow-hidden">
<MaplibreMap map={maplibremap} mapProperties={mapproperties} autorecovery={true} />