Remove directions from google map api v3

后端 未结 6 1799
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 18:58

I have a google map using API v3 which gets directions from one location to another. The app works great but the window which gets the directions is an overlay on the map.

6条回答
  •  无人及你
    2020-12-29 19:30

    You can change the map binding for the DirectionsRenderer to "null" to remove the direction overlay

    directionDisplay.setMap(null);
    

提交回复
热议问题