user2073343
user2073343

Reputation: 473

How can I turn off the map in google maps?

I want to display an overlay in google maps and during some circumstances I don't want to see the actual map beneath it but still be able to zoom and pan. I know that I can make a large white overlay that covers the entire map and then put my overlay on top of that, but this seems inconvenient. Is there a better way?

Upvotes: 1

Views: 101

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117334

The easiest approach should be to use a style that hides all map-features.

Add this to the map-options:

styles:[{ stylers: [{ visibility:'off' }]}]

Upvotes: 3

Related Questions