Centre map view on spawn marker if left-clicked
This commit is contained in:
@@ -139,6 +139,9 @@ overviewer.util = {
|
||||
ovconf.spawn[2],
|
||||
ovconf);
|
||||
var ohaimark = L.marker(latlng, {icon: spawnIcon, title: "Spawn"});
|
||||
ohaimark.on('click', function(ev) {
|
||||
overviewer.map.setView(ev.latlng);
|
||||
});
|
||||
overviewer.collections.spawnMarker = ohaimark
|
||||
overviewer.collections.spawnMarker.addTo(overviewer.map);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user