Установка центра карты в выбранной точке при открытии попапа

This commit is contained in:
Krivchikov Dmitry 2014-07-05 19:05:05 +04:00
parent b32b81de5b
commit 44fe06b41d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }