How to copy MapType in Google Maps to an arbitrary polygon. For example, if I have a custom ImageMapType that covers a large area (i.e. the whole world), but I want to show it only inside the given polygon (i.e. one country).
Is there a way to crop ImageMapType for a given polygon or implement a custom MapType to achieve this behavior? It should provide zooming and panning as usual.
The rest of the map should remain the same and there will be a MapType covering only a specific area. Therefore, it is impossible to simply overlay a polygon to cover areas outside the polygon to display only what is needed.
Same:

Server-side cropping is not an option.
javascript google-maps google-maps-api-3
Nicolas Jun 19 '14 at 16:11 2014-06-19 16:11
source share