diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue
index f8644ed..21fc2fd 100644
--- a/src/renderer/components/EditLayer.vue
+++ b/src/renderer/components/EditLayer.vue
@@ -485,8 +485,10 @@
if (event.latlng === undefined) {
return
}
- const circle = new L.ParkingSpot(event.latlng, {attributes: {radius: 20, heading: 0}})
- circle.id = (++this.groundnetLayerGroup.maxId)
+ const newIndex = (++this.groundnetLayerGroup.maxId)
+ const circle = new L.ParkingSpot(event.latlng, {attributes: {index: newIndex, radius: 20, heading: 0}})
+ circle.id = newIndex
+ circle.glueindex = circle.id
circle.addTo(this.groundnetLayerGroup)
circle.featureLookup = this.featureLookup
circle.enableEdit()
diff --git a/src/renderer/components/ParkingItem.vue b/src/renderer/components/ParkingItem.vue
index e4b6fd0..b49e1df 100644
--- a/src/renderer/components/ParkingItem.vue
+++ b/src/renderer/components/ParkingItem.vue
@@ -1,5 +1,5 @@
- {{parking.name}}{{parking.number}}
+ {{parking.name}} {{parking.number}}