Установка центра карты в выбранной точке при открытии попапа
This commit is contained in:
parent
b32b81de5b
commit
44fe06b41d
|
|
@ -197,6 +197,7 @@ function showInfo(id)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myMap.setView(points[id]._latlng, myMap.getZoom());
|
||||||
history.pushState({}, document.title, "/?point=" + id);
|
history.pushState({}, document.title, "/?point=" + id);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue