current position:Home>Vue Gaode map can only have one start point and end point. How to realize it

Vue Gaode map can only have one start point and end point. How to realize it

2022-04-29 04:43:12CSDN Q & A

What I want to achieve : Click the green button ( Mark the starting point ) Then mark a starting point on the map , It can only be one , Click on the red button ( Mark the end point ), You can only mark one .

however , My code , Click the green button and then click the red , It will be marked together on the map , I try to mark only one by closing the function , But I can't , The code picture is as follows , Can someone help me ?

img

img

img

img

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/110/202204201443338550.html

Random recommended