add draw update
This commit is contained in:
parent
08cdba4131
commit
9eb5a7c48d
@ -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;
|
||||
}
|
||||
|
2
worldmap/leaflet/leaflet.draw.css
vendored
2
worldmap/leaflet/leaflet.draw.css
vendored
@ -300,4 +300,4 @@
|
||||
|
||||
.leaflet-oldie .leaflet-draw-toolbar {
|
||||
border: 1px solid #999;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
# date: Mar 11th 2019 - v2.0.0b
|
||||
# date: Mar 11th 2019 - v2.0.0d
|
||||
|
||||
CACHE:
|
||||
index.html
|
||||
|
Loading…
Reference in New Issue
Block a user