locations corresponds to markers

This commit is contained in:
lenovo
2022-11-12 17:22:28 +01:00
parent cda936deb7
commit 07694a71f0
6 changed files with 39 additions and 19 deletions

View File

@@ -21,10 +21,8 @@ function create_markers(map, locations, infowindow) {
let markers = [];
for (loc of locations) {
if (loc.coordinates == null) {
//console.log("coordinates == null");
if (loc.coordinates == null)
continue;
}
let count = loc.events.length;

View File

@@ -10,6 +10,9 @@
*/
function filter_show_only_selection(indexes, show_only = true) {
console.log("indexes:");
console.log(indexes);
let indexes_count = indexes.length;
if (indexes_count === 0)
return;

View File

@@ -42,8 +42,8 @@ function mp_init_map() {
* - let cluster_size_factor = Number
*/
//console.log("locations:");
//console.log(locations);
console.log("locations:");
console.log(locations);
console.log("filters:");
console.log(filters);
@@ -58,6 +58,8 @@ function mp_init_map() {
g_map = create_map(map_div);
g_markers = create_markers(g_map, locations, infowindow);
console.log("markers:");
console.log(g_markers);
g_marker_cluster = draw_clusters(g_map, g_markers);