Add fallback link to Google maps

This commit is contained in:
Björn Fromme
2018-10-09 18:03:43 +02:00
parent 68957427a8
commit 8b72e6e5ef
@@ -45,6 +45,10 @@
marker.on('click', () => {
window.open(this.externalLink, '_blank');
});
} else {
marker.on('click', () => {
window.open('https://www.google.com/maps/search/?api=1&zoom=15&query=' + this.lat + ',' + this.lng, '_blank');
});
}
marker.addTo(this.map);
this.map.setView(position);