Check for holdpoint end

This commit is contained in:
portree_kid
2020-04-03 21:08:03 +02:00
parent 61d9145dd8
commit cb8a49fc9d
2 changed files with 43 additions and 3 deletions
+1 -1
View File
@@ -199,7 +199,7 @@
return { 'index': Number(o['glueindex']), '_leaflet_id': o._leaflet_id, 'type': o.holdPointType };
} else if (o instanceof L.Polyline) {
console.log(o)
return { 'start': Number(o['begin']), 'end': Number(o['end']), '_leaflet_id': o._leaflet_id, 'type': 'poly' };
return { 'start': Number(o['begin']), 'end': Number(o['end']), '_leaflet_id': o._leaflet_id, 'type': 'poly', 'isPushBackRoute': o.options.attributes.isPushBackRoute };
} else {
console.log('Unknown Type ')
console.log(typeof o)