Google Maps API

Asked

Viewed 96 times

0

Does anyone know if it is possible to remove automatic google tags from inside the map?inserir a descrição da imagem aqui

These markers already carry along with the map, I wonder if it is possible to remove.

Thank you.

  • 2

    That’s Google advertising, the price to pay for being free... if you want to take it you have to find a paid service I think.

  • 2

    If you use the google maps api and generate your own map with your Key... you won’t have it there.

2 answers

1

You mean the establishments, bus stops and everything else that appears? It has to remove.

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}); 
  • André that I wanted, helped me 100% even. Thank you very much!

0

I removed it like this:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.