Does anyone know if it's possible to remove automatic google tags from within the map?
These markers already load along with the map, I'd like to know if it's possible to remove.
Thank you.
Do you refer to establishments, bus stops and everything else that appears? You can withdraw.
var mapOptions = {
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
};
var map = new google.maps.Map(document.getElementById("map"),
mapOptions);
var noPoi = [
{
featureType: "all",
stylers: [
{visibility: "off"}
]
},
{
featureType: "road",
stylers: [
{visibility: "on"}
]
}
];
map.setOptions({styles: noPoi});
I removed it like this:
var noPoi = [
{
featureType: "poi",
stylers: [
{ visibility: "off" }
]
}
];
map.setOptions({styles: noPoi});