Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable bus stop on Google Map

I'm developing an ASP.Net project using Google Maps. My team decided to use Google Maps API v2.

The problem is, I have to replace all bus stop icons on the map with my bus stop icons. To do this, I have to hide/disable them (or at least public transports) but I don't know how to do this. I searched many times but I have found no solution.

What command can I use to hide these bus stop icons?

Note: My team replaced Google Map v2 with Google Map v3.

like image 805
user2130296 Avatar asked Mar 04 '13 03:03

user2130296


People also ask

How do I turn off transit layer in Google Maps?

It cannot be disabled, but it can be hidden away, see: Hiding Map Features with Styling.

Does Google Maps have a bus option?

You can get transit departures from the Google Maps app. Some transit stations show real-time departures while others show a schedule of departures.

What is the green bus in Google Maps?

The color code shows you the speed of traffic on the road. Green: No traffic delays. Orange: Medium amount of traffic. Red: Traffic delays.


1 Answers

got it!

        var styles = [
    {
        "featureType": "transit.station.bus",
        "stylers": [{ "visibility": "off" }]
    }
    ];

    map.setOptions({ styles: styles });

that google maps control has got a great api !

like image 118
TheFraktal Avatar answered Nov 11 '22 08:11

TheFraktal