Reputation: 473
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
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