[Google Maps API v3] Re: Refresh Base Map Type Tiles

2012-01-20 Thread Martin™
The only thing i can see that would work would be to use a solution
similar to that which i posted in post #4 of the thread i linked to
previously:

https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/25a3f290cdf0fa5e/34d32ac679be539c?hl=en&lnk=gst

Add a bogus parameter to your tile URLs and when you want to refresh
the tiles just remove and then re-add the tile layer.
A time based bogus parameter will ensure new tiles are requested
instead of cached tiles being reused.



That will not be visually smooth but should work. :-(

Can you not implement your tile layer as a BaseMapType?

http://code.google.com/apis/maps/documentation/javascript/maptypes.html#BaseMapTypes

"Map types which you construct in this manner may either stand alone
or be combined with other map types as overlays. Standalone map types
are known as base map types."

Martin.


On Jan 20, 7:40 am, NoRyb  wrote:
> Hello Martin
>
> Thank you for the answer. Unfortunately this does not help me as I don't
> have a list of tiles. I extended the ImageMapType so I can use it as Base
> Map instead of overlay map. There I only get the getTileUrl-Callback which
> does not have a pointer to the tile (only the URL).
>
> Is there a way to get to the Tiles over the map object so I can iterate
> through them?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Refresh Base Map Type Tiles

2012-01-19 Thread NoRyb
Hello Martin

Thank you for the answer. Unfortunately this does not help me as I don't 
have a list of tiles. I extended the ImageMapType so I can use it as Base 
Map instead of overlay map. There I only get the getTileUrl-Callback which 
does not have a pointer to the tile (only the URL).

Is there a way to get to the Tiles over the map object so I can iterate 
through them?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/tQjZSXqn3KYJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Refresh Base Map Type Tiles

2012-01-19 Thread Martin™
Here's a thread that may prove useful:

https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/25a3f290cdf0fa5e/34d32ac679be539c?hl=en&lnk=gst

Martin.


On Jan 19, 12:19 pm, NoRyb  wrote:
> Hello! I would like to know if it's possible to "refresh" or "update" a
> MapType. I'm using an ImageMapType to display custom tiles. If I change a
> parameter, I want to display another set of tiles - how do I accomplish
> this?
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.