## Alternative Configuration
-Open the `config/local.config.php` file and add "openstreetmap" to the list of activated addons.
-
- 'system' => [
- ...
- 'addon' => '...,openstreetmap'
- ...
- ]
-
-You can set configuration variables for the addon in the `config/addon.config.php` file:
-
- 'openstreetmap' => [
- 'tmsserver' => 'https://www.openstreetmap.org',
- 'nomserver' => 'https://nominatim.openstreetmap.org/search.php',
- 'zoom' => 16,
- 'marker' => 0,
- ],
+Open the `config/node.config.php` file and add "openstreetmap" to the list of activated addons.
+
+ 'addons' => [
+ ...
+ 'openstreetmap' => [
+ admin => true,
+ ],
+ ]
+
+You can set configuration variables for the addon in the `config/openstreetmap.config.php` file:
+
+ return [
+ 'openstreetmap' => [
+ 'tmsserver' => 'https://www.openstreetmap.org',
+ 'nomserver' => 'https://nominatim.openstreetmap.org/search.php',
+ 'zoom' => 16,
+ 'marker' => 0,
+ ],
+ ];
The *tmsserver* points to the tile server you want to use. Use the full URL,
with protocol (http/s) and trailing slash. You can configure the default zoom
level on the map with *zoom*. 1 will show the whole world and 18 is the highest
zoom level available.
-Please see provided `config/openstreetmap.php` file for explanation on the additional configuration keys.
\ No newline at end of file
+Please see provided `config/openstreetmap.php` file for explanation on the additional configuration keys.