feat: public/config.json
This commit is contained in:
@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=true
|
||||
# z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen
|
||||
# basePath wird jetzt in public/config.json gepflegt
|
||||
# App-Versionsnummer
|
||||
NEXT_PUBLIC_APP_VERSION=1.1.327
|
||||
NEXT_PUBLIC_APP_VERSION=1.1.328
|
||||
|
||||
@@ -25,4 +25,4 @@ NEXT_PUBLIC_USE_MOCKS=false
|
||||
# basePath wird jetzt in public/config.json gepflegt
|
||||
|
||||
# App-Versionsnummer
|
||||
NEXT_PUBLIC_APP_VERSION=1.1.327
|
||||
NEXT_PUBLIC_APP_VERSION=1.1.328
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "nodemap",
|
||||
"version": "1.1.327",
|
||||
"version": "1.1.328",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "nodemap",
|
||||
"version": "1.1.327",
|
||||
"version": "1.1.328",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.13.3",
|
||||
"@emotion/styled": "^11.13.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nodemap",
|
||||
"version": "1.1.327",
|
||||
"version": "1.1.328",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.13.3",
|
||||
"@emotion/styled": "^11.13.0",
|
||||
|
||||
@@ -13,7 +13,8 @@ export const initializeMap = (
|
||||
setPolylineEventsDisabled,
|
||||
logError = false
|
||||
) => {
|
||||
const basePath = process.env.NEXT_PUBLIC_BASE_PATH;
|
||||
// basePath wird aus config.json geladen (siehe unten)
|
||||
let basePath = undefined;
|
||||
|
||||
if (
|
||||
!mapContainer ||
|
||||
@@ -80,6 +81,10 @@ export const initializeMap = (
|
||||
}
|
||||
}
|
||||
if (config) {
|
||||
// basePath aus config.json
|
||||
if (typeof config.basePath === "string") {
|
||||
basePath = config.basePath;
|
||||
}
|
||||
// Tile source
|
||||
if (config.tileSources && config.active && config.tileSources[config.active]) {
|
||||
const tileSource = config.tileSources[config.active];
|
||||
|
||||
Reference in New Issue
Block a user