<?php

/**
 * global variables :
 *
 * DO NOT MODIFY !
 * modify mp_optionnals.php or mp_required.php instead
 */



/* ICON SIZE
*/
$mp_icon_size = [40, 40];
if (isset($mp_settings_icon_size)) {
	if (is_array($mp_settings_icon_size)) {
		if (count($mp_settings_icon_size) === 2) {
			if ( is_numeric($mp_settings_icon_size[0]) && is_numeric($mp_settings_icon_size[1]) ) {
				$mp_icon_size = $mp_settings_icon_size;
			}
		}
	}
}


/* ICON COLOR
*/
$mp_icon_color = "#ba197a";
if (isset($mp_settings_icon_color))
	$mp_icon_color = $mp_settings_icon_color;


/* ICON FACTOR SIZE
*/
$mp_icon_size_factor = 2.5;
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
if (isset($mp_settings_coordinates_default))
	$mp_coordinates_default = $mp_settings_coordinates_default;


/* ICON COLOR
*/
$mp_icon_color = "#ba197a";
$mp_icon_color_back = "#ffffff99";
if (isset($mp_settings_icon_color))
	$mp_icon_color = $mp_settings_icon_color;
if (isset($mp_settings_icon_color_back))
	$mp_icon_color_back = $mp_settings_icon_color_back;


/* ICON STROKE WIDTH
*/
$mp_icon_stroke_width = 6;
if (isset($mp_settings_icon_stroke_width))
	$mp_icon_stroke_width = $mp_settings_icon_stroke_width;


/* MAX ZOOM
*/
$mp_max_zoom = 5;
if (isset($mp_settings_max_zoom))
	$mp_max_zoom = $mp_settings_max_zoom;


?>
