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

showModel method removed

parent 267c74e2
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -116,9 +116,12 @@ OverviewDialog.prototype.showOverview = function(overviewImageId) {
if (link.type === "OverviewModelLink") {
logger.debug("Opening model from overview. ModelId: " + link.modelLinkId);
logger.debug("link coordinates [" + link.idObject + "]: " + link.latLng);
// TODO min zoom value can be different for every map, it should be
// changed in the future
map.showModel(link.modelLinkId, link.latLng, link.zoomLevel + map.getMinZoom());
map.openSubmap(link.modelLinkId);
var submap = this.getSubmapById(id);
submap.setCenter(link.latLng);
submap.setZoom(link.zoomLevel + submap.getMinZoom());
$(self.getElement()).dialog("close");
} else if (link.type === "OverviewImageLink") {
logger.debug("Opening image from overview. ImageId: " + link.imageLinkId);
......
......@@ -525,13 +525,6 @@ CustomMap.prototype.removeSelection = function() {
}
};
CustomMap.prototype.showModel = function(id, point, zoomLevel) {
this.openSubmap(id);
var submap = this.getSubmapById(id);
submap.setCenter(point);
submap.setZoom(zoomLevel);
};
/**
* Returns list of layouts that are selected and visualized by javascript.
*
......
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