added settings for map on post

This commit is contained in:
lenovo
2022-11-13 19:26:11 +01:00
parent ada87da370
commit 5596c5e954
7 changed files with 66 additions and 10 deletions

View File

@@ -37,6 +37,15 @@ if (isset($mp_settings_icon_size_factor))
$mp_icon_size_factor = $mp_settings_icon_size_factor;
/* DEFAULT ZOOM
*/
$mp_zoom_set = [2, 5];
if (isset($mp_settings_zoom_set))
$mp_zoom_set = $mp_settings_zoom_set;
// also create the variable, and set to map page by default
$mp_zoom = $mp_zoom_set[0];
/* DEFAULT COORDINATES
*/
$mp_coordinates_default = (object)["lat" => 46.227638, "lng" => 2.213749]; // france

View File

@@ -9,15 +9,6 @@
/* ************************************
dimensions de l'icone des marqueurs
_
valeur par defaut [40, 40]
************************************ */
//$mp_settings_icon_size = [50, 50];
/* ************************************
facteur de taille des clusters
_
@@ -27,6 +18,17 @@
/* ************************************
zoom initial
- pour les pages
- pour les posts
_
valeur par defaut [2, 5]
************************************ */
//$mp_settings_zoom_set = [1, 6];
/* ************************************
coordonnees par defaut
(pour centrer la carte globale,