Alex Rivera | Logout

Remove the Report a map error from google map

Asked 2012-06-01T22:16:56.697
13

I have a v3 google map and in the bottom-right corner of the map, there is a "Report a map error" link overlaid onto the map. Does anyone know if it is possible to remove this from the map?

Edit: Here is an example of what I mean: http://jsfiddle.net/ahfA5/

Edit
Report

1 Answer

16

You could style the map to get rid of this. Check this out.

Notice that if you compare the first two screenshots, the "Report a map error" link is present in the first, but not in the second.

The simplest way to apply a dummy style to the map so that it still looks like google maps but without the error link would be to do the following:

const styleOptions = {
  name: `Dummy Style`,
}

const MAP_STYLE = [
  {
    featureType: `road`,
    elementType: `all`,
    stylers: [{ visibility: `on` }],
  },
]
const mapType = new google.maps.StyledMapType(MAP_STYLE, styleOptions)
map.mapTypes.set(`Dummy Style`, mapType)
map.setMapTypeId(`Dummy Style`)

Here's the updated JSFiddle.

answered 2012-07-24T06:40:19.233

Your Answer