File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
packages/web-forms/src/components/common/map Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const props = defineProps<{
99 selectedVertex: Coordinate | undefined ;
1010}>();
1111
12- const emit = defineEmits ([' open-paste-dialog' , ' update-vertex ' ]);
12+ const emit = defineEmits ([' open-paste-dialog' , ' save ' ]);
1313
1414const accuracy = ref <number | undefined >();
1515const latitude = ref <number | undefined >();
@@ -52,7 +52,7 @@ const updateVertex = () => {
5252 newVertex .push (accuracy .value );
5353 }
5454
55- emit (' update-vertex ' , fromLonLat (newVertex ));
55+ emit (' save ' , fromLonLat (newVertex ));
5656};
5757 </script >
5858
Original file line number Diff line number Diff line change @@ -141,7 +141,11 @@ const undoLastChange = () => {
141141 emitSavedFeature ();
142142};
143143
144- const updateCoords = () => {
144+ const updateFeatureCoords = () => {
145+ // todo
146+ };
147+
148+ const updateVertexCoords = () => {
145149 // todo
146150};
147151 </script >
@@ -200,7 +204,12 @@ const updateCoords = () => {
200204 @open-advanced-panel =" isAdvancedPanelOpen = !isAdvancedPanelOpen"
201205 />
202206
203- <MapAdvancedPanel :is-open =" isAdvancedPanelOpen" :selected-vertex =" selectedVertex" @open-paste-dialog =" isUpdateCoordsDialogOpen = true" />
207+ <MapAdvancedPanel
208+ :is-open =" isAdvancedPanelOpen"
209+ :selected-vertex =" selectedVertex"
210+ @open-paste-dialog =" isUpdateCoordsDialogOpen = true"
211+ @save =" updateVertexCoords"
212+ />
204213
205214 <MapProperties
206215 v-if =" mapHandler.canViewProperties()"
@@ -234,7 +243,7 @@ const updateCoords = () => {
234243 <MapUpdateCoordsDialog
235244 v-model:visible =" isUpdateCoordsDialogOpen"
236245 :draw-feature-type =" drawFeatureType"
237- @save =" updateCoords "
246+ @save =" updateFeatureCoords "
238247 />
239248</template >
240249
You can’t perform that action at this time.
0 commit comments