Add target=_blank to map URLs so they always open in new tab

This commit is contained in:
Dan Nemec
2020-12-17 01:37:36 -06:00
parent 48d6f4dc3c
commit bd51e92115

View File

@@ -124,7 +124,7 @@ html_template = '''<html>
}).addTo(map);
function onEachFeature(feature, layer) {
layer.bindPopup(`<a href="https://www.instagram.com/explore/locations/` + feature.properties.external_id + `$date_var">` + feature.properties.name + `</a><br />` + feature.properties.address );
layer.bindPopup(`<a href="https://www.instagram.com/explore/locations/` + feature.properties.external_id + `$date_var" target="_blank">` + feature.properties.name + `</a><br />` + feature.properties.address );
}
L.geoJSON(locs, {