1

It's easy to draw a circle on a Google map using a Circle object, but is it possible to gray out everything in the world except for a circle, which should remain clear?

Thanks!

superluminary
  • 47,086
  • 25
  • 151
  • 148
  • Yes, it is. But not with a google.maps.Circle, with a google.maps.Polygon that looks like a circle. – geocodezip Dec 04 '13 at 19:36
  • possible duplicate of [Change map opacity outside circle of Google Maps JavaScript API v3](http://stackoverflow.com/questions/19736418/change-map-opacity-outside-circle-of-google-maps-javascript-api-v3/19746322#19746322) – geocodezip Dec 04 '13 at 19:38
  • This has been answered nicely here: http://stackoverflow.com/a/19746322/687677 – superluminary Dec 05 '13 at 09:39

1 Answers1

0

Have a look here it was something similar to what you're asking for.

The idea is to create two maps, and put one on front of another

Community
  • 1
  • 1
paulitto
  • 4,585
  • 2
  • 22
  • 28
  • That looks cool, although there will be problems when dragging and zooming he map around. The polygon solution looks like a better bet. – superluminary Dec 05 '13 at 09:40