Merge pull request #1805 from umap-project/fix-continue-line
fix: do not try to render drawinTooltip on drawing start
This commit is contained in:
commit
4ebbf8ed11
1 changed files with 2 additions and 5 deletions
|
@ -1319,10 +1319,7 @@ U.ContextMenu = L.Map.ContextMenu.extend({
|
||||||
U.Editable = L.Editable.extend({
|
U.Editable = L.Editable.extend({
|
||||||
initialize: function (map, options) {
|
initialize: function (map, options) {
|
||||||
L.Editable.prototype.initialize.call(this, map, options)
|
L.Editable.prototype.initialize.call(this, map, options)
|
||||||
this.on(
|
this.on('editable:drawing:click editable:drawing:move', this.drawingTooltip)
|
||||||
'editable:drawing:start editable:drawing:click editable:drawing:move',
|
|
||||||
this.drawingTooltip
|
|
||||||
)
|
|
||||||
this.on('editable:drawing:end', (e) => {
|
this.on('editable:drawing:end', (e) => {
|
||||||
this.closeTooltip()
|
this.closeTooltip()
|
||||||
// Leaflet.Editable will delete the drawn shape if invalid
|
// Leaflet.Editable will delete the drawn shape if invalid
|
||||||
|
|
Loading…
Reference in a new issue