Google Maps – Resolving Copyright Popup on Map Update or User Input

googleiosopenlayers-2

I have used a Google Maps hybrid layer in Openlayers in my HTML5 iOS app for months now and it worked perfectly. Just recently they changed something because the 'Map data…' line at the bottom looks different (light grey background) and whenever you touch the screen or the map position is updated via navigator.geolocation.getCurrentPosition() the map data copyright box pops up.

Has anyone else experienced this? If so I'd really appreciate any info on any solutions/workarounds you've found.

Best Answer

I saw this answer on the Openlayers mailing list a few days ago. You need to make sure you are providing a version, such as v=3.6:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&v=3.6"></script>

Then it should disappear.

-- May 17, 2012 edit:

I just saw that this problem has returned on the OpenLayers mailing list. A suggested fix (which worked for me) is to paste the following into the openlayers style.css

.olLayerGooglePoweredBy.olLayerGoogleV3.gmnoprint {
visibility:hidden;
}
Related Question