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