Add fallback link to Google maps
This commit is contained in:
1 parent
68957427a8
commit
8b72e6e5ef
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user