How to reload/refresh a Google Maps tile layer? -


I have found a tile layer that I want to delete and replace from someone else in Google Maps.

For example, I want to remove a county layer and replace it with the census path.

When I try to do this then when I pan the map it simply loads the new layer. I think I need to remove old tiles from Google's cache (like That I close the browser caching, it still happens).

I have tried the map "resize" event, but it is not working.

Do I need to map the map and restart everything? Or can I reload my map tile layer?

When I change the layer, the URL for the tile loading changes - so I guess that by adding fake parameters, I will not help.

The code is too long (and it has additional content), but if you want to see it in this task, then you

  var jmapMapType = new google.maps.ImageMapType Can go to (jmapTypeOptions); Map.overlayMapTypes.push (jmapMapType);  

I need to store jmapMapType in the global variable.

Then I can delete it, and add it back, it reloads the tile:

  map.overlayMapTypes.removeAt (0); Map.overlayMapTypes.push (jmapMapType);  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -