Am 20.11.2008, 19:06 Uhr, schrieb Christopher Barker <[EMAIL PROTECTED]>:
> Nitro wrote: >>> Matthias, can this be done with FC2? >> >> Sure it can :-) You create the bitmap node and zoom and shift it. If you >> click on it, you perform the cartesian-to-lang/lat conversion on the >> event.coords.world coordinates. Then display those. > > sure, but the goal here is for FC to do all the transforming, not my > user code. And the reason for that is that I want other objects drawn on > top of it to use lat-long coords. So, I need world coords to be > lat-long, but the image displayed in raw form. I've prepared a simple example, checkout the demo in svn called "Map Drawing". It loads a bitmap in the background, displays a grid over it (the coordinates of the lines are given in long-lat format) and draws the grid with the mercator transform. Then the user can draw his own lines onto that grid, the coordinates of the lines are stored in long-lat format (radians as a base, not degrees, so the ranges are from -PI to +PI in x-direction and from -PI/2 to +PI/2 in y-direction). The lines are added to the same parent node as the grid, so they inherit the mercator transform and thus are drawn properly. > By the way, if Andrea's new docs catch on, we might want to integrate > with those. Yeah, already asked him how it could be done. -Matthias _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
