portree_kid
2020-07-12 20:58:12 +02:00
parent d372170fe9
commit d61dc7c955
4 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -310,7 +310,7 @@ You should have received a copy of the GNU General Public License along with FG
latlng.lat = e1.lat;
latlng.lng = e1.lng;
this.$store.dispatch('setCenter', latlng);
if(e1.__vertex._icon.style!=null) {
if(e1.__vertex !== undefined && e1.__vertex !== null && e1.__vertex._icon.style!=null) {
e1.__vertex._icon.style['background-color'] = 'red';
}
return;
+3 -1
View File
@@ -127,7 +127,9 @@
'name': o.options.attributes.name,
'radius': String(o.options.attributes.radius),
'lat': o._latlng.lat,
'lng': o._latlng.lng };
'lng': o._latlng.lng,
'box': o.box!==undefined?o.box.getLatLngs():null
};
} else if (o instanceof L.RunwayNode) {
console.log(o)
return { 'index': Number(o['glueindex']), '_leaflet_id': o._leaflet_id, 'type': 'runway' };