[worldKit-dev] Rounding problem in worldkit flash app?
Mikel Maron
mikel_maron at yahoo.com
Mon May 1 10:16:41 PDT 2006
Hi Stefan,
Try "<accuplot>true</accuplot>" in config.xml
This is an undocumented option, which changes the way that worldKit plots annotations.
(Normally, zoom is accomplished by scaling a layer containing all annotations, and this ahs some limits of precision. With accuplot, each annotation is positioned individually.)
I think accuplot should probably be the default behavior. The only reason there might be to keep the current method is if there's some performance hit.
Mikel
----- Original Message ----
From: Stefan F. Keller <sfkeller at gmail.com>
To: worldkit-dev at lists.brainoff.com
Sent: Monday, May 1, 2006 1:53:52 PM
Subject: [worldKit-dev] Rounding problem in worldkit flash app?
I got a rounding problem in worldkit flash app:
When being zoomed in at about factor 256 I could not position item 'test 1' nearer to 'test 2'. Any long-value between 8.81677 and 8.8556 had no influence to the position of the displayed map symbol of 'test 2' - until a certain value where test 1 snapped to test 2 like in a grid.
Here is a snipped of rss.xml:
...
<item>
<title>test 1</title><link> http://www.gis.hsr.ch</link>
<description>test at position 1</description>
<geo:lat>47.22350</geo:lat>
<geo:long>8.81677</geo:long>
</item>
<item>
<title>test 2</title><link> http://www.gis.hsr.ch</link>
<description>test at position 2</description>
<geo:lat>47.22350</geo:lat>
<geo:long>8.8556</geo:long>
</item>
I could influence this behaviour by changing object-tag values in the HTML which are WIDTH="500" HEIGHT="250".
This probably has to do with rounding numbers in flash code?
Regards -- Stefan
_______________________________________________
worldkit-dev mailing list
worldkit-dev at lists.brainoff.com
http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.brainoff.com/pipermail/worldkit-dev-brainoff.com/attachments/20060501/236a536f/attachment-0005.htm>
More information about the worldkit-dev
mailing list