简体   繁体   English

如何使用 Google Maps API 3 仅显示航点

[英]How to show only waypoints using Google Maps API 3

I'm using this code example: https://developers.google.com/maps/documentation/javascript/examples/directions-draggable我正在使用此代码示例: https : //developers.google.com/maps/documentation/javascript/examples/directions-draggable

And the result is this:结果是这样的: 在此处输入图片说明

But i not like show the directions... I would like to show only waypoints.. like this:但我不喜欢显示方向......我只想显示航点......像这样: 在此处输入图片说明

Any help will be appreciated :)任何帮助将不胜感激 :)

Well you could always hide that unwanted part of the panel using additional css:好吧,您始终可以使用其他 css 隐藏面板中不需要的部分:

.adp-directions, .adp-summary {
    display:none;
}    

Check out this fiddle ( I think you have to run it again after it loads) : https://jsfiddle.net/eyxyhwor/1/看看这个小提琴(我认为你必须在加载后再次运行它): https : //jsfiddle.net/eyxyhwor/1/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM