summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2017-05-31 14:20:58 +0530
committerPranav Kant <pranavk@collabora.co.uk>2017-05-31 14:20:58 +0530
commit073b58269b1fd63f946f3b7ba7b8b11754e5092c (patch)
tree7a32ef2de7c73689094da99ec3fb975a02d9fbc8
parentd840e8720a2ba45ae981b53e5a06b4d28f847314 (diff)
tdf#103673 - Use hex color value in API
Change-Id: I51e2431e9253a625fb590af276d991a34e720141
-rw-r--r--loleaflet/src/map/Map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index c809980e0..891386b77 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -160,7 +160,7 @@ L.Map = L.Evented.extend({
addView: function(viewInfo) {
this._viewInfo[viewInfo.id] = viewInfo;
- this.fire('postMessage', {msgId: 'View_Added', args: {ViewId: viewInfo.id, UserId: viewInfo.userid, UserName: viewInfo.username, UserExtraInfo: viewInfo.userextrainfo, Color: viewInfo.color, ReadOnly: viewInfo.readonly}});
+ this.fire('postMessage', {msgId: 'View_Added', args: {ViewId: viewInfo.id, UserId: viewInfo.userid, UserName: viewInfo.username, UserExtraInfo: viewInfo.userextrainfo, Color: L.LOUtil.rgbToHex(viewInfo.color), ReadOnly: viewInfo.readonly}});
// Fire last, otherwise not all events are handled correctly.
this.fire('addview', {viewId: viewInfo.id, username: viewInfo.username, extraInfo: viewInfo.userextrainfo, readonly: this.isViewReadOnly(viewInfo.id)});