Browse Source

[openstreetmap] Update config file style/name

pull/778/head
Hypolite Petovan 3 years ago
parent
commit
524937a830
4 changed files with 48 additions and 39 deletions
  1. +24
    -15
      openstreetmap/README.md
  2. +23
    -0
      openstreetmap/config/openstreetmap.config.php
  3. +0
    -23
      openstreetmap/config/openstreetmap.ini.php
  4. +1
    -1
      openstreetmap/openstreetmap.php

openstreetmap/README → openstreetmap/README.md View File


+ 23
- 0
openstreetmap/config/openstreetmap.config.php View File

@ -0,0 +1,23 @@
<?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
return [
'openstreetmap' => [
// tmsserver (String)
// This points to the tile server you want to use. Use the full URL, with protocol (http/s) and trailing slash.
'tmsserver' => 'https://www.openstreetmap.org',
// nomserver (String)
'nomserver' => 'https://nominatim.openstreetmap.org/search.php',
// zoom (Integer)
// The default zoom level on the map.
// 1 will show the whole world and 18 is the highest zoom level available.
'zoom' => 16,
// marker (Integer)
'marker' => 0,
],
];

+ 0
- 23
openstreetmap/config/openstreetmap.ini.php View File

@ -1,23 +0,0 @@
<?php return <<<INI
; Warning: Don't change this file! It only holds the default config values for this addon.
; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
[openstreetmap]
; tmsserver (String)
; This points to the tile server you want to use. Use the full URL, with protocol (http/s) and trailing slash.
tmsserver = https://www.openstreetmap.org
; nomserver (String)
nomserver = https://nominatim.openstreetmap.org/search.php
; zoom (Integer)
; The default zoom level on the map.
; 1 will show the whole world and 18 is the highest zoom level available.
zoom = 16
; marker (Integer)
marker = 0
INI;
//Keep this line

+ 1
- 1
openstreetmap/openstreetmap.php View File

@ -49,7 +49,7 @@ function openstreetmap_uninstall()
function openstreetmap_load_config(\Friendica\App $a)
{
$a->loadConfigFile(__DIR__. '/config/openstreetmap.ini.php');
$a->loadConfigFile(__DIR__ . '/config/openstreetmap.config.php');
}
function openstreetmap_alterheader($a, &$navHtml)


Loading…
Cancel
Save