You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/maintenance-guide/maintenance-guide.rst
+27-3Lines changed: 27 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -124,20 +124,44 @@ The default credential can be seen in `Users Notes <../users-notes/users-notes.h
124
124
125
125
Map
126
126
~~~
127
-
OS2IoT maps are running on the Leafletjs framework: https://leafletjs.com/. The tiles are current presented using OpenStreetMap: https://www.openstreetmap.org.
127
+
OS2IoT maps are running on the Leafletjs framework: https://leafletjs.com/. The Street view tiles are currently presented using OpenStreetMap: https://www.openstreetmap.org.
128
+
129
+
The satellite tiles are presented using Datafordeler: https://datafordeler.dk/. The specific tiles are from "Ortofoto forår WMTS": https://datafordeler.dk/dataoversigt/geodanmark-ortofoto/ortofoto-foraar-wmts/.
130
+
131
+
The height curves overlay is also presented by Datafordeler, and is the "DHM WMS": https://datafordeler.dk/dataoversigt/danmarks-hoejdemodel-dhm/dhm-wms/.
128
132
129
133
The tiles can be changed by following the steps listed below:
130
134
131
135
1. Find "map.component.ts" in the frontend project
132
136
133
-
2. Within the initMap() method, replace L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png') with the desired tiles
137
+
2. Within the initMap() method, for changing the Street view, replace :code:`L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png')` with the desired tiles. For changing the satellite map, replace :code:`L.tileLayer('https://services.datafordeler.dk/GeoDanmarkOrto/orto_foraar_wmts......')` with the desired tiles.
134
138
135
139
a. Make sure you also change the attribution attribute.
136
140
137
141
Note that the solution must be deployed before the changes takes presence.
138
142
143
+
It's possible to search for a location with the search bar on the map when creating a new device or gateway. When you find your destination, you can dobbeltclick on the map to move the marker to that spot.
144
+
145
+
The height curves will only be visible if you are zoomed in to a certain level, and if you have selected the height curves option on the map.
146
+
147
+
Authentication
148
+
^^^^^^^^^^^^^^^
149
+
150
+
For using the satellite map and height curves, a user has to be created in Datafordeler: https://datafordeler.dk/konto/log-paa-selvbetjening/. Without this, the frontend won't be authenticated to access the data.
151
+
152
+
1. Create a new user on https://datafordeler.dk
153
+
2. After creation, create "Tjenestebruger".
154
+
155
+
a. Choose "Brugernavn og adgangskode"
156
+
b. Create a password. BE AWARE! Don't choose a password you use elsewhere. When using the map, all the requests to datafordeler has the username and password included in the http request, which COULD be intercepted.
157
+
c. Press "Opret".
158
+
159
+
3. Use the given username and your created password as your credentials in the environment variables in the frontend. See the "installation-guide" in these docs.
0 commit comments