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',