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

export of image added for unselected part of map

parent 3236d351
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -131,10 +131,12 @@ function create(params) {
customMap : result
});
result.setContextMenu(new MapContextMenu({
var mapContextMenu = new MapContextMenu({
element : document.getElementById("contextMenu"),
customMap : result
}));
});
result.setContextMenu(mapContextMenu);
var selectionContextMenu = new SelectionContextMenu({
element : document.getElementById("selectionContextMenu"),
customMap : result
......@@ -153,6 +155,8 @@ function create(params) {
return topMenu.init();
}).then(function(){
return selectionContextMenu.init();
}).then(function(){
return mapContextMenu.init();
}).then(function(){
if (GuiConnector.getParams["layout"] !== undefined) {
var layouts = params.project.getModel().getLayouts();
......
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