jayzee.smith at GMAIL.COM
Mon Oct 23 11:43:19 EDT 2006
i'm sooo close to making my own rubberband except i got a *small* problem- i
don't quite understand img/pixelspace and map/extentspace (probably the most
repeated question on this forum).
anyway the map zooms to the extent i provide but the extent i provide (from
the click-and-drag zoombox) is wrong. see if you can iron out my warped
img size = current map exent
i convert user click to where that click'd be inside the map extent like so-
click_point_in_map_extent = sign_of_map_quadrant * (click_point_of_img *
([maxx] - [minx]))/[mapwidth];
--------- [mapwidth], [mapheight]
[-, + ] --------- maxx, maxy [+, +]
minx, miny [-, -] [+, -]
does this even look right? if it's right then when the user clicks on the
center of the map img the converted point on the map extent'd be 0,0! that
doesn't make much sense.
anyway my screen resolution doesn't effect, my user click capture looks
right, so what gives?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users