This was one of the problems I had to overcome and it was the only
solution I could come up with. I'd LOVE to hear some other ideas.

Basically, when a user creates a patch I save a 320x320 pixel image of
their patch. The Google Map API, as you know, defaults to using
256x256 images at each zoom level. Well, the patches had to go through
a moderation process so they weren't being added to the quilt until
after the moderation process. At that time, I would be able to add to
the quilt at zoom level 1 (320x320) but when a user zoomed out to
level 2 the 320x320 image would need to be reduced by some factor
(we'll say divided in half for this example). So each tile would
become 160x160 pixels. I would need to take two images and combine
them back into a single 320x320 pixel image to maintain the same tile
size.

Instead, what I did was save out every image (when it's moderated) to
the appropriate size for each zoom level. So I have a set at 320x320,
160x160, 80x80, and 40x40. When the user zooms in and out, I swap the
path to the directory with the correct images and reload the map with
the new tileset at that same size.

I do still need to figure out how to keep the centering when zooming.
I'm having trouble getting the current map center when you reload the
page. I do have a function that will reset the center correctly, I'm
just not sure how to pass it the proper coordinates from the previous
map center when it loads. Any thoughts?

On Oct 12, 2:11 pm, Gregory Short <[email protected]> wrote:
> Interesting. Can I make one small suggestion though? There's no reason  
> I can think of that would require reloading the entire page every time  
> the zoom level is changed, and it de-centers the map from the current  
> location, which means you either have to pan around at whatever zoom  
> you want to view a patch at, or you can't zoom in on a specific patch  
> once you find it. Why do that? :)
>
> -G
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to