Check Intersection

This commit is contained in:
portree_kid
2020-03-07 21:35:41 +01:00
parent 9eb92fb13d
commit 2f86bed0bf
6 changed files with 86 additions and 6 deletions
+7 -1
View File
@@ -167,7 +167,13 @@
},
featuresMapper(o) {
if (o instanceof L.ParkingSpot) {
return { 'index': Number(o['id']), '_leaflet_id': o._leaflet_id, 'type': 'parking', 'name': o.options.attributes.name, 'radius': String(o.options.attributes.radius) };
return { 'index': Number(o['id']),
'_leaflet_id': o._leaflet_id,
'type': 'parking',
'name': o.options.attributes.name,
'radius': String(o.options.attributes.radius),
'lat': o._latlng.lat,
'lng': o._latlng.lng };
} else if (o instanceof L.RunwayNode) {
console.log(o)
return { 'index': Number(o['glueindex']), '_leaflet_id': o._leaflet_id, 'type': 'runway' };
+1 -1
View File
@@ -9,7 +9,7 @@
ref="map"
>
<!--The backgroundmap-->
<l-tile-layer :url="url" :attribution="attribution">
<l-tile-layer :url="url" :attribution="attribution" :options="{maxZoom: 22, maxNativeZoom: 19}">
</l-tile-layer>
<!--<l-marker :lat-lng="marker"></l-marker>-->
<LeafletSidebar></LeafletSidebar>