Skip to content
Snippets Groups Projects
Commit 21544a23 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Move wms url setting to local_settings.py

parent 5b714d0b
Branches
No related tags found
No related merge requests found
...@@ -138,6 +138,7 @@ SITE_OWNER_NAME = {"en":"FooBar Inc","nb":"ACME industrier"} ...@@ -138,6 +138,7 @@ SITE_OWNER_NAME = {"en":"FooBar Inc","nb":"ACME industrier"}
SITE_OWNER_URL = "http://www.example.com/" SITE_OWNER_URL = "http://www.example.com/"
# Grid models settings # Grid models settings
WMS_SERVER_URL = "https://gridweb.vips.nibio.no/cgi-bin/"
AVAILABLE_GRID_MODELS = [ AVAILABLE_GRID_MODELS = [
{"model_id":"SEPTREFHUM", "model_name": {"nb":"Septoria referansefuktmodell", "en":"Septoria reference humidity model"}}, {"model_id":"SEPTREFHUM", "model_name": {"nb":"Septoria referansefuktmodell", "en":"Septoria reference humidity model"}},
{"model_id":"PSILARTEMP", "model_name": {"nb":"Gulrotflue svermetidspunktmodell", "en":"Carrot rust fly (Psila rosae) temperature model"}} {"model_id":"PSILARTEMP", "model_name": {"nb":"Gulrotflue svermetidspunktmodell", "en":"Carrot rust fly (Psila rosae) temperature model"}}
......
...@@ -59,5 +59,6 @@ var settings = { ...@@ -59,5 +59,6 @@ var settings = {
}, },
// The attribution shown in the corner of the map // The attribution shown in the corner of the map
MAP_ATTRIBUTION : "&copy; <a href='http://www.openstreetmap.org'>OpenStreetMap</a> contributors" MAP_ATTRIBUTION : "&copy; <a href='http://www.openstreetmap.org'>OpenStreetMap</a> contributors",
WMS_SERVER_URL: "{{settings.WMS_SERVER_URL}}"
}; };
...@@ -6,8 +6,7 @@ proj4.defs( ...@@ -6,8 +6,7 @@ proj4.defs(
let layers = []; let layers = [];
let mapserverURL="https://testvips.nibio.no/cgi-bin/"; let mapserverURL=settings.WMS_SERVER_URL
//let mapserverURL="https://gridweb.vips.nibio.no/cgi-bin/";
let modelId = undefined; let modelId = undefined;
let today = getSystemTime().format("YYYY-MM-DD"); let today = getSystemTime().format("YYYY-MM-DD");
let todayLayerIndex = undefined; let todayLayerIndex = undefined;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment