Each tile layer on the map has it's own getTileUrl() method. See the documentation here: http://code.google.com/apis/maps/documentation/reference.html#GTileLayer.getTileUrl
Maybe you could re-write that method for each tile layer used on your map to only retrieve tiles in the area that you want to be visible? The modified getTileUrl() method could return a URL to a blank tile for any area you don't want to be visible. Martin. On 14 Aug, 11:39, McLee <[email protected]> wrote: > Hi! > > I'm trying to somehow blur out/white out the whole map except one > small area, say, a country, and I'm unsure of what would be the best > way to do that - hope you can help. > > I can imagine two alternatives: > 1. Create a polygon (with white fill color and opacity=1) that covers > the whole map, but with a hole in the middle - how would a polygon at > this size affect performance? > 2. Somehow replace the tiles outside the area I want to focus on with > an all white tile. I want to avoid this if I can, though since it will > probably create a "jaggedy" look since the area I want to focus on > isn't rectangular. > > What do you think would be the best way to do this? 1 or 2 or maybe > there's a third way? > > Also, if anyone has an example where something like this has been done > that would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
