Google Maps API

0

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.

    
asked by anonymous 07.01.2016 / 18:40

2 answers

1

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}); 
    
17.02.2016 / 14:04
0

I removed it like this:

var noPoi = [
        {
            featureType: "poi",
            stylers: [
              { visibility: "off" }
            ]   
          }
        ];
        map.setOptions({styles: noPoi});
    
17.01.2017 / 15:04