Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide or disable the google logo, footer, copyright on google maps JavaScript API v3?

I have this assignment at work in which I need to use the Google maps API v3 and the design they gave me was without the logo/footer/copyright that google puts in the inferior part of the map. Well, I need to have it disabled or hidden because I was told that I need to match the exact design no matter what.

I had to emphasize that by doing this I breach the terms of use of Google service...

9.4 Attribution.

(a) Content provided to you through the Service may contain the trade names, trademarks, service marks, logos, domain names, and other distinctive brand features of Google, its partners, or other third party rights holders of content indexed by Google. When Google provides this attribution, you must display it as provided through the Service or as described in the Maps APIs Documentation and may not delete or in any manner alter these trade names, trademarks, service marks, logos, domain names, and other distinctive brand features. https://developers.google.com/maps/terms

Well at my work they didn't care about that and they always told me to do it anyway so these is how I'm doing it.

In the css I added the following lines of code:

#map-report div.gmnoprint, #map-report div.gmnoscreen {     display: none;       }  img[src="http://maps.gstatic.com/mapfiles/google_white.png"] {     display: none;  } 
like image 891
mkhuete Avatar asked Sep 19 '12 17:09

mkhuete


People also ask

How do I hide markings on Google Maps?

Step 1 Go to Add or Edit Map and Scroll down to the 'Infowindow Settings' section. Step 2 Enable the box of 'Hide Markers on Page Load' option. Step 3 Click on Save Map and open it in browser.

How do I hide markers on Google Maps API?

Once you are able to detect the marker click event you need to "hide" or remove the marker from the map. The standard way for doing this with google maps is to do this: this. setMap(null);


2 Answers

This CSS works like charm [October 2019 tested].
Removes Google Logo, terms of use, and Report a problem div.


a[href^="http://maps.google.com/maps"]{display:none !important} a[href^="https://maps.google.com/maps"]{display:none !important}  .gmnoprint a, .gmnoprint span, .gm-style-cc {     display:none; } .gmnoprint div {     background:none !important; } 
like image 165
Abhishek Goel Avatar answered Sep 19 '22 16:09

Abhishek Goel


Try this for api v3:

.gm-style-cc { display:none; }

like image 26
Luis A. Florit Avatar answered Sep 18 '22 16:09

Luis A. Florit