dont show popup "click to add a marker" when moving marker
This commit is contained in:
parent
d1ffd76d47
commit
afbe7c90d8
1 changed files with 3 additions and 2 deletions
|
@ -1250,8 +1250,9 @@ L.U.Editable = L.Editable.extend({
|
||||||
|
|
||||||
drawingTooltip: function (e) {
|
drawingTooltip: function (e) {
|
||||||
var content;
|
var content;
|
||||||
if (e.layer instanceof L.Marker) content = L._('Click to add a marker');
|
if (e.layer instanceof L.Marker && e.type != "editable:drawing:move") {
|
||||||
else if (e.layer instanceof L.Polyline) {
|
content = L._('Click to add a marker');
|
||||||
|
} else if (e.layer instanceof L.Polyline) {
|
||||||
// when drawing a Polyline or Polygon
|
// when drawing a Polyline or Polygon
|
||||||
if (e.layer.editor._drawnLatLngs) {
|
if (e.layer.editor._drawnLatLngs) {
|
||||||
// when drawing first point
|
// when drawing first point
|
||||||
|
|
Loading…
Reference in a new issue