Can I remove the "metro stations", "zoos", and "bus stops"icons from Google Maps?
6
Author: Артём Ионаш, 2016-09-03
2 answers
You can use Styled Maps.
For example, to remove all bus stops, when creating the google.maps.Map
object in options, you need to specify:
styles: [{
featureType: 'transit.station.bus',
elementType: 'all',
stylers: [
{
visibility: 'off'
}
]
]}
5
Author: Anatoly Sukhanov, 2018-11-26 09:16:41
Here you can generate a map by setting all the settings through the interface and get the code: https://mapstyle.withgoogle.com/
Here is the code obtained from that generator to solve your problem:
[
{
"featureType": "poi.attraction",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit.station.bus",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit.station.rail",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
}
]
2
Author: Anna Bakurova, 2018-11-26 08:32:47