diff --git a/.env b/.env index 7c4a2b937..03df8f425 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ REACT_APP_API=https://dev-k8s.treetracker.org/webmap/ -REACT_APP_TILE_SERVER_URL=https://dev-k8s.treetracker.org/tiles +REACT_APP_TILE_SERVER_URL=https://dev-k8s.treetracker.org/tiles/ diff --git a/src/map.js b/src/map.js index 942871ab4..d381012df 100644 --- a/src/map.js +++ b/src/map.js @@ -963,14 +963,14 @@ var initialize = function() { throw new Error("Tile server url isn't set"); } new window.L.tileLayer( - baseURL_def + `${isFreetown?"/freetown":""}/{z}/{x}/{y}.png`, + baseURL_def + `${isFreetown?"freetown/":""}{z}/{x}/{y}.png`, { minZoom: 16, maxZoom: 20, } ).addTo(map); utfGridLayer = new window.L.utfGrid( - baseURL_def + `${isFreetown?"/freetown":""}/{z}/{x}/{y}.grid.json`, + baseURL_def + `${isFreetown?"freetown/":""}{z}/{x}/{y}.grid.json`, { minZoom: 16, maxZoom: 20,