Center map on marker when clicking it

This commit is contained in:
Markus Koch 2020-04-19 09:12:37 +02:00
parent 0859324a46
commit 354ca8d1d7
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ function load_geojson(name, url, iconname, iconcolor, active=1, style={}) {
permanent: true,
direction: "center",
className: "city-names"
}).openTooltip();
}).openTooltip().on('click', jump_to_marker);
};
pointToLayer = function(feature, latlng) {
label = String(feature.properties.name)