Center map on marker when clicking it
This commit is contained in:
parent
0859324a46
commit
354ca8d1d7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user