Google map Direction ServiceApi 有两个“副作用”,
1-它会Markers自动添加到起点和终点。
2-它将两个添加InfoWindow到新的Markers,包含他们的地址。

知道如何摆脱这些标记和他们的 infoBubble 吗?
Google map Direction ServiceApi 有两个“副作用”,
1-它会Markers自动添加到起点和终点。
2-它将两个添加InfoWindow到新的Markers,包含他们的地址。

知道如何摆脱这些标记和他们的 infoBubble 吗?
将 suppressMarkers: true 添加到DirectionsRendererOptions
suppressMarkers | boolean |Suppress the rendering of markers.