Disable Stop on Google Map

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

The problem is that I have to replace all the stop icons on the map with the icons on the bus icon. To do this, I need to hide / disable them (or at least public transports), but I do not know how to do this. I searched many times, but did not find a solution.

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

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

+5
source share
2 answers

received it!

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

    map.setOptions({ styles: styles });

that google map management got a great api!

+9
source

API Google v2. API Google v3 , . Duncan_m, " API API JavaScript JavaScript Google 2 19 2010 . V2 API 19 2013 .", API .

0

All Articles