locations corresponds to markers
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user