Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
Needs more info comment that > 10 days [ID: 963198]
Comment such as: SPAM, non-actionable [ID: 963127]
Resolved actionable follow-up comments [ID: 963027]
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
-----------------------
What would you like to see us add to this API?
Offer the ability to fill the outside of a polygon, as opposed to the inside.
Explain your use case for that feature:
I use a polygon to define a region of interest on a map. Because it is the region of interest, I want to highlight it to the user, and deemphasize the rest of the map, by filling the outside of the polygon with a semi-opaque color. Currently I can only make the region of interest itself more opaque, which is not useful.
I see two ways to work around the issue:
1. Define my own TileOverlay, defining and filling the outside of a polygon on my own bitmaps (hard)
2. Define 3 polygons covering the entire globe, one of which contains my region of interest as a hole. This is also non-trivial to pull off correctly due to various Maps bugs and special cases to cover.
This is similar to