Now that I have figured out how to load and unload image layers on
zoom change, I am trying to wrap my head around mapping coordinates to
pixels. The aim is to pre-create a bunch of images that are loaded
one-to-one to give the sharpest image no matter the zoom level. I have
the following coords

    map:

        # map image in pixels
        width : 800;
        height: 360;

        # world coordinates in spherical mercator
        xmin  : -20037508.34
        ymin  : -20037508.34
        xmax  :  20037508.34
        ymax  :  20037508.34
        maxres:    156543.03

    start_zoom: 8

    aoi:

        # aoi image in pixels
        width : ? # 244
        height: ? # 184

        # aoi world coordinates
        xmin  : -10179111.60
        ymin  :   5638990.53
        xmax  :  -9829162.44
        ymax  :   5903962.12

In other words, I want to figure out what the size of my image should
be at the default zoom level 8 so it shows up as is, without any
stretching or shrinking. And, I want to figure out the same at other
zoom levels from 1 through 10.

Nudge me in the right direction, por favor.

-- 
Puneet Kishor
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to