Skip to content

Commit

Permalink
add chek
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Nov 29, 2024
1 parent d35aa12 commit 51f464b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions envergo/hedges/static/hedge_input/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,10 @@ createApp({
let onRemove = hedgeList.removeHedge.bind(hedgeList);
const newHedge = hedgeList.addHedge(map, onRemove, latLngs, additionalData);

newHedge.polyline.on('editable:vertex:new', () => {
showHelpBubble.value = true;
newHedge.polyline.on('editable:vertex:new', (event) => {
if(event.vertex.getNext() === undefined) { // do not display tooltip when adding a point to an existing hedge
showHelpBubble.value = true;
}
});

// Cacher la bulle d'aide à la fin du tracé
Expand Down

0 comments on commit 51f464b

Please sign in to comment.