fixed broken option reset filters
This commit is contained in:
@@ -2,12 +2,7 @@ function create_map(map_div) {
|
|||||||
// default map center to france
|
// default map center to france
|
||||||
let map_center = coordinates_default;
|
let map_center = coordinates_default;
|
||||||
// map_center = {lat:-2.515748362923059, lng:32.93366215464864};
|
// map_center = {lat:-2.515748362923059, lng:32.93366215464864};
|
||||||
let world_bound = {
|
let world_bound = g_init_bounds;
|
||||||
north: 80,
|
|
||||||
south: -80,
|
|
||||||
west: -180,
|
|
||||||
east: 180,
|
|
||||||
};
|
|
||||||
let map_options = {
|
let map_options = {
|
||||||
/* map options : https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions */
|
/* map options : https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions */
|
||||||
disableDefaultUI: true,
|
disableDefaultUI: true,
|
||||||
|
|||||||
@@ -51,6 +51,6 @@ function filter_show_only_selection(indexes, show_only = true) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function filter_show_all() {
|
function filter_show_all() {
|
||||||
console.log("filter_show_all");
|
g_marker_cluster.addMarkers(g_markers);
|
||||||
marker_cluster.addMarkers(markers);
|
g_map.fitBounds(g_init_bounds);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
let g_map = {};
|
let g_map = {};
|
||||||
let g_markers = [];
|
let g_markers = [];
|
||||||
let g_marker_cluster = {};
|
let g_marker_cluster = {};
|
||||||
|
const g_init_bounds = {
|
||||||
|
north: 80,
|
||||||
|
south: -80,
|
||||||
|
west: -180,
|
||||||
|
east: 180,
|
||||||
|
};
|
||||||
|
|
||||||
function mp_init_map() {
|
function mp_init_map() {
|
||||||
|
|
||||||
|
|||||||
@@ -148,7 +148,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
|
||||||
#ljdp_map_filters .filter_menu .filter_menu_title {
|
#ljdp_map_filters .filter_menu .filter_menu_title {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -196,4 +195,64 @@
|
|||||||
#ljdp_map_filters .filter_menu .filter_menu_drop p:hover {
|
#ljdp_map_filters .filter_menu .filter_menu_drop p:hover {
|
||||||
background-color: #dddddd;
|
background-color: #dddddd;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* **************************************
|
||||||
|
VERSION DIV SWITCH AND CLOSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
*/
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_title {
|
||||||
|
width: 100%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop {
|
||||||
|
flex-direction: column;
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
max-height: 400px;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
overflow: scroll;
|
||||||
|
|
||||||
|
border: 1px solid red;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop:focus {
|
||||||
|
background-color: #ffffff;
|
||||||
|
height: auto;
|
||||||
|
top: 100%;
|
||||||
|
overflow: scroll;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid #ba197a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop p:first-child {
|
||||||
|
margin-top: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop:focus p:first-child {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop p {
|
||||||
|
padding: 0px 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ljdp_map_filters .filter_menu .filter_menu_drop p:hover {
|
||||||
|
background-color: #dddddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user