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

don't visualize removed comments

parent 5ba10fcd
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -46,7 +46,10 @@ CommentDbOverlay.prototype._getDetailArrayByIdentifiedElement = function(element
CommentDbOverlay.prototype.getIdentifiedElements = function(){
var result = [];
for (var i=0;i<this.elements.length;i++) {
result.push(this.elements[i].getIdentifiedElement());
//we return only elements that are pinned to the map and weren't removed
if (!this.elements[i].isRemoved()) {
result.push(this.elements[i].getIdentifiedElement());
}
}
return result;
}
......
......@@ -637,6 +637,7 @@ describe('CustomMap', function() {
return map.getOverlayDataForIdentifiedElement(ie, {
comment : true
}).then(function(details) {
logger.debug(details);
assert.equal(details.length,1);
var overlayData = details[0];
......
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