loleaflet: Check boxes against checked items in context menu

Change-Id: I1a51fec67ba79dc2e82cccb54731bfabb9731470
This commit is contained in:
Pranav Kant
2016-12-08 21:58:22 +05:30
parent 4c2e59c1f2
commit 33ce6f38e4
2 changed files with 11 additions and 2 deletions

View File

@ -134,11 +134,11 @@ L.Control.ContextMenu = L.Control.extend({
if (item.checktype === 'checkmark') {
if (item.checked === 'true') {
contextMenu[item.command.icon] = 'checkmark';
contextMenu[item.command]['icon'] = 'lo-checkmark';
}
} else if (item.checktype === 'radio') {
if (item.checked === 'true') {
contextMenu[item.command.icon] = 'radio';
contextMenu[item.command]['icon'] = 'radio';
}
}