[various] Remove config/addon.config.php in favor of per-addon configuration file

This commit is contained in:
Hypolite Petovan 2022-11-20 11:43:42 -05:00
parent 5b25b03ea3
commit 46d4d0b51e
29 changed files with 137 additions and 206 deletions

View file

@ -42,18 +42,20 @@ Open the `config/local.config.php` file and add "openstreetmap" to the list of a
...
]
You can set configuration variables for the addon in the `config/addon.config.php` file:
You can set configuration variables for the addon in the `config/openstreetmap.config.php` file:
'openstreetmap' => [
'tmsserver' => 'https://www.openstreetmap.org',
'nomserver' => 'https://nominatim.openstreetmap.org/search.php',
'zoom' => 16,
'marker' => 0,
],
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.
Please see provided `config/openstreetmap.php` file for explanation on the additional configuration keys.

View file

@ -1,7 +1,7 @@
<?php
// Warning: Don't change this file! It only holds the default config values for this addon.
// Instead overwrite these config values in config/addon.config.php in your Friendica directory
// Instead, copy this file to config/openstreetmap.config.php in your Friendica directory and set the correct values there
return [
'openstreetmap' => [