Skip to content

Commit a5cde9b

Browse files
Merge pull request #48 from OS2iot/feature/IoT-1552
Feature/iot_1552
2 parents 7e59eee + 88dd02b commit a5cde9b

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

source/installation-guide/installation-guide.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ Defaults are set in :code:`OS2IoT-frontend/src/environments/environment.ts`
284284
+-------------------------------+--------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
285285
| TABLE_PAGE_SIZE | Default page size of tables | :code:`25` |
286286
+-------------------------------+--------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
287+
| DAF_USERNAME | Username to https://datafordeler.dk | :code:`""` |
288+
+-------------------------------+--------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
289+
| DAF_PASSWORD | Password to https://datafordeler.dk | :code:`""` |
290+
+-------------------------------+--------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------+
291+
287292
288293
OS2IoT-Mosquitto broker
289294
^^^^^^^^^^^^^^^^^^^^^^^

source/maintenance-guide/maintenance-guide.rst

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,44 @@ The default credential can be seen in `Users Notes <../users-notes/users-notes.h
124124

125125
Map
126126
~~~
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/.
128132

129133
The tiles can be changed by following the steps listed below:
130134

131135
1. Find "map.component.ts" in the frontend project
132136

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.
134138

135139
a. Make sure you also change the attribution attribute.
136140

137141
Note that the solution must be deployed before the changes takes presence.
138142

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.
160+
161+
162+
139163
Debugging
140-
^^^^^^^^^^
164+
~~~~~~~~~~~
141165

142166
Debugging the frontend
143167
''''''''''''''''''''''

0 commit comments

Comments
 (0)