X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=openstreetmap%2FREADME.md;h=782389f5b57e8e8ad252c8d47a2e7a11ec19e588;hb=77ad52d1f41f99de3e2ee3a1f894b56fafae5389;hp=d8709a181ba76d6ae830e8007de45fc8c0c498e1;hpb=ffe5038102b53dc9e00ef0b52d33e27226d35f7f;p=friendica-addons.git diff --git a/openstreetmap/README.md b/openstreetmap/README.md index d8709a18..782389f5 100644 --- a/openstreetmap/README.md +++ b/openstreetmap/README.md @@ -34,26 +34,29 @@ zoom level available. ## 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.