function mp_init_map() {

	/*
	 * following variable are created by mp_add_to_script.php
	 * - let locations =	[
	 *							{
	 *								coordinates: {}
	 *								events     : [{}, ...]
	 *							},
	 *							...
	 *						]
	 *
	 *            {                                            }
	 *            {               [                          ] }
	 * - filters: { - pays      : [ { - _name     : "" }     ] }
	 *            {               [ { - villes    : [] }     ] }
	 *            {               [ { - categories: [] }     ] }
	 *            {               [ { - mode      : [] }, ...] }
	 *            {               [                          ] }
	 *            {                                            }
	 *            {               [                          ] }
	 *            { - villes    : [ { - _name     : "" }     ] }
	 *            {               [ { - pays      : [] }     ] }
	 *            {               [ { - categories: [] }     ] }
	 *            {               [ { - mode      : [] }, ...] }
	 *            {               [                          ] }
	 *            {                                            }
	 *            {               [                          ] }
	 *            { - categories: [ { - _name     : "" }     ] }
	 *            {               [ { - pays      : [] }     ] }
	 *            {               [ { - villes    : [] }     ] }
	 *            {               [ { - mode      : [] }, ...] }
	 *            {               [                          ] }
	 *            {                                            }
	 *            {                                            }
	 *            {               [                          ] }
	 *            { - mode      : [ { - _name     : "" }     ] }
	 *            {               [ { - pays      : [] }     ] }
	 *            {               [ { - villes    : [] }     ] }
	 *            {               [ { - categories: [] }, ...] }
	 *            {               [                          ] }
	 *            {                                            }
	 *
	 * - let filters
	 * - let coordinates_default = {lat: ,lng: }
	 * - let icon_color = ""
	 * - let icon_color_back = ""
	 * - let icon_size = [x, y]
	 * - let cluster_size_factor = Number
	 */

	//console.log("locations:");
	//console.log(locations);
	console.log("filters:");
	console.log(filters);

	// default map center to france
	let map_center = coordinates_default;
	let world_bound = {
		north: 80,
		south: -80,
		west: -180,
		east: 180,
	};
	let map_options = {
		/* map options : https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions */
		disableDefaultUI: true,
		zoomControl: true,
		scaleControl: true,
		zoom: 2,
		gestureHandling: "cooperative",
		//gestureHandling: "greedy",
		//gestureHandling: "none",
		//gestureHandling: "auto",
		//disableDoubleClickZoom: "false",	//deprecated
		//draggable: "true",				//deprecated
		center: map_center,
		restriction: {
			latLngBounds: world_bound,
			strictBounds: true,
		},
	}
	let map_div = document.getElementById("ljdp_map");
	let infowindow = new google.maps.InfoWindow();

	/*
	 * DRAW MAP
	 */

	let map = new google.maps.Map(map_div, map_options);
	let markers = create_markers(map, locations, infowindow);
	draw_clusters(map, markers);

	let filters_div = document.getElementById("ljdp_map_filters");
	fill_filters(filters_div);

	// add listener to close infowindow at any click on map
	map.addListener('click', function() {
		infowindow.close();
	});

}
