简体   繁体   中英

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

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:

.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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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