add draw update

This commit is contained in:
Dave Conway-Jones 2019-03-11 21:46:04 +00:00
parent 08cdba4131
commit 9eb5a7c48d
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
4 changed files with 4 additions and 6 deletions

View File

@ -1343,7 +1343,6 @@ function setMarker(data) {
else if (typeof data.label === "string" && data.label.length > 0) {
marker.bindTooltip(data.label, { permanent:true, direction:"right", offset:labelOffset });
}
console.log("M1",marker);
delete marker.options.title;
delete data.label;
}
@ -1351,7 +1350,6 @@ function setMarker(data) {
else if (data.tooltip) {
if (typeof data.tooltip === "string" && data.tooltip.length > 0) {
marker.bindTooltip(data.tooltip, { direction:"left", offset:[22,-16] });
console.log("M2",marker);
delete marker.options.title;
delete data.tooltip;
}
@ -1781,7 +1779,7 @@ function doCommand(cmd) {
if (cmd.side && basemaps.hasOwnProperty(cmd.side)) {
if (sidebyside) { sidebyside.remove(); map.removeLayer(basemaps[sidebyside.lay]); }
basemaps[cmd.side].addTo(map);
sidebyside = L.Control.sideBySide(basemaps[baselayername], basemaps[cmd.side]);
sidebyside = L.control.sideBySide(basemaps[baselayername], basemaps[cmd.side]);
sidebyside.addTo(map);
sidebyside.lay = cmd.side;
}

View File

@ -1,5 +1,5 @@
CACHE MANIFEST
# date: Mar 11th 2019 - v2.0.0b
# date: Mar 11th 2019 - v2.0.0d
CACHE:
index.html