-1

sample image

Ignore the Hide|Show bar in the upper right hand corner. It was present in the image I screen grabbed for this example.

Google adds the following:

  • Google icon on the bottom left corner.
  • Text on the bottom right corner.
  • The little yellow man icon, + and - at the bottom of the right hand margin.
  • The zoom icon at the top right corner.

Is it possible to hide any or all of these programmatically?

4
  • 2
    If you plan to screw with the copyright then anticipate getting your Google account and domain blocked
    – Darkrum
    Commented Mar 11, 2018 at 2:15
  • truthfully i seriously didn't expect google to be ok with that but i've been wrong about what i thought were sure things before Commented Mar 11, 2018 at 14:38
  • It's in their TOS you may get away with it for a very long time or short depends when someone reports it.
    – Darkrum
    Commented Mar 11, 2018 at 15:36
  • @Darknum i am not so starved for screen space that i need to do anything like that. my client asked, i said i had a suspicion it wouldn't fly but would seek to verify. i'm calling this verified Commented Mar 11, 2018 at 15:46

1 Answer 1

2

Your not really supposed to hide or remove the logo + copyright info but you can remove the controls by using disableDefaultUI: true.

Example:

function initMap() {
  var map = new google.maps.Map(document.getElementById('map'), {
    zoom: 4,
    center: {lat: -33, lng: 151},
    disableDefaultUI: true
  });
}

More info can be found here: https://developers.google.com/maps/documentation/javascript/controls

2
  • 1
    You can also turn then on/off individually
    – McMurphy
    Commented Mar 11, 2018 at 3:54
  • @McMurphy that's good to know. right now, my use case is all or nothing. we'll see what the UI designer says when they see the all or nothing solution Commented Mar 11, 2018 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.