Skip to content
Snippets Groups Projects
Commit 976bae88 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

frontend js properly process new coordinates from API

parent b3578560
No related branches found
No related tags found
No related merge requests found
......@@ -184,11 +184,12 @@ OverviewDialog.prototype.openLink = function (link) {
var map = self.getMap();
if (link.type === "OverviewModelLink") {
logger.debug("Opening model from overview. ModelId: " + link.modelLinkId);
logger.debug("link coordinates [" + link.idObject + "]: ", link.latLng);
logger.debug("link coordinates [" + link.idObject + "]: ", link.modelPoint);
map.openSubmap(link.modelLinkId);
var submap = map.getSubmapById(link.modelLinkId);
submap.setCenter(link.latLng);
logger.debug("zoom [" + link.idObject + "]: ", link.zoomLevel + submap.getMinZoom());
submap.setCenter(submap.fromPointToLatLng(link.modelPoint));
submap.setZoom(link.zoomLevel + submap.getMinZoom());
$(self.getElement()).dialog("close");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment