wip bad address are ignored

This commit is contained in:
lenovo
2022-11-09 12:47:29 +01:00
parent d326b6f51e
commit 163eaa2f04
6 changed files with 92 additions and 74 deletions

View File

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

View File

@@ -4,8 +4,8 @@ function mp_init_map() {
* following variable are created by mp_add_to_script.php
* - let locations = [
* {
* coord: {}
* events: [{}, ...]
* coordinates: {}
* events : [{}, ...]
* },
* ...
* ]