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.
It cannot be disabled, but it can be hidden away, see: Hiding Map Features with Styling.
You can get transit departures from the Google Maps app. Some transit stations show real-time departures while others show a schedule of departures.
The color code shows you the speed of traffic on the road. Green: No traffic delays. Orange: Medium amount of traffic. Red: Traffic delays.
got it!
var styles = [
{
"featureType": "transit.station.bus",
"stylers": [{ "visibility": "off" }]
}
];
map.setOptions({ styles: styles });
that google maps control has got a great api !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With