From 5aa33c6814f8684791260b97ea2e961439256263 Mon Sep 17 00:00:00 2001 From: Keith Paterson Date: Tue, 22 Dec 2020 19:51:43 +0100 Subject: [PATCH] Fix pushback create --- src/renderer/components/EditLayer.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index 6f15642..186f0ef 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -567,7 +567,7 @@ You should have received a copy of the GNU General Public License along with FG polyLine.addListeners() polyLine.on('editable:drawing:end', event => { - console.log(event) + console.debug(event) event.target.addTo(this.groundnetLayerGroup) }) }, @@ -585,11 +585,11 @@ You should have received a copy of the GNU General Public License along with FG polyLine.addListeners() polyLine.on('editable:drawing:end', event => { - console.log(event) + console.debug(event) event.target.addTo(this.groundnetLayerGroup) var pt = event.sourceTarget._latlngs[event.sourceTarget._latlngs.length-1]; - pt.options.attributes['holdPointType'] = 'PushBack' - var nIndex = pt.options.attributes.index + pt.attributes['holdPointType'] = 'PushBack' + var nIndex = pt.attributes.index var fa_icon = "
"; const icon = new L.DivIcon({ className: 'custom-div-icon',