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

proper color is used when highlighting aliases

parent ddddc03c
No related branches found
No related tags found
1 merge request!367Resolve "color of highlighted element"
Pipeline #
......@@ -75,6 +75,14 @@ AliasSurface.prototype.setColor = function (color) {
}
};
/**
*
* @returns {string}
*/
AliasSurface.prototype.getColor = function () {
return this._color;
};
/**
*
* @param {number} opacity
......@@ -188,7 +196,7 @@ AliasSurface.prototype.init = function () {
if (overlayData !== undefined) {
return functions.overlayToColor(overlayData);
} else {
return "#FF0000";
return self.getColor();
}
}).then(function (color) {
self.addMapCanvasObject(map.getMapCanvas().createRectangle({
......
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