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

model provides also info about name and dimension

parent f7f8e597
No related branches found
No related tags found
1 merge request!146Submap visualization error
......@@ -159,7 +159,13 @@ function createProjectData(options) {
getModels: function () {
var result = [{modelId: map.getId()}];
for (var i = 0; i < map.getSubmaps().length; i++) {
result.push({modelId: map.getSubmaps()[i].getId()});
var subModel = map.getSubmaps()[i].getModel();
result.push({
modelId: subModel.getId(),
name: subModel.getName(),
width: subModel.getWidth(),
height: subModel.getHeight()
});
}
return result;
}
......
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