wip bad address are ignored
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -4,8 +4,8 @@ function mp_init_map() {
|
||||
* following variable are created by mp_add_to_script.php
|
||||
* - let locations = [
|
||||
* {
|
||||
* coord: {}
|
||||
* events: [{}, ...]
|
||||
* coordinates: {}
|
||||
* events : [{}, ...]
|
||||
* },
|
||||
* ...
|
||||
* ]
|
||||
|
||||
Reference in New Issue
Block a user