I have an Image from a KML file, and when using google maps with the
KML it auto-zooms it to zoom level 4.  The image itself is far larger
than just overlaying it at zoom level 4 so I'm trying to understand
how to re-size the image for different zoom levels (as the KML
automatically does).

So far I've taken the Lat / Lng and created a box from the NW and SE
corners, than converted those points to pixels, and used that for the
size of the image (IE at zoom level 5

NWlat = '50.406626367301044';
NWlng = '-127.620375523875420';

SElat = '21.652538062803';
SElng = '-66.517937876818';

produce points:
1191,2763 and 2582,3591

finding 'supposed dimensions' of that image than are:
1391 x 828

However when re-sizing my image to this, it not only distorts the
image (stretches it a bit more vert than it should), it doesn't seem
to line up with my KML test at zoom level 5.  the KML image is still
stretched about 30-50 extra pixels in height.  I'm trying to
understand where I might be going wrong with my calculations.. Could
anyone give me a hand please?

Thank you..


-- 
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 [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-js-api-v3?hl=en.

Reply via email to