remove route with google map

后端 未结 8 2068
半阙折子戏
半阙折子戏 2020-12-03 20:29

I got a small app that use the Direction Service feature of Google Map. It is working well, I can change routes, but I have a small problem, where a user could go back to a

8条回答
  •  没有蜡笔的小新
    2020-12-03 21:03

    You could also use:

    directionsDisplay.setDirections({routes: []});
    

    In this way, you can keep using one map with one renderer for all routes.

提交回复
热议问题