There is a similar delay. [...] It might also be the building of 'sensitivity' regions. Do you run much code 'onload'?
yes - I run quite a bit "onload" - I color the states geometry and dynamically create the circles using .createElementNS()
But I don't have the impression that it is the problem of "onload" or starting
the javascript engine, since the delay is always, no matter how long I wait
until I start mouse-over the states geometry.
It is the building of the sensitive regions. I have a quick fix that uses a faster computation of the 'sensitive' bounding boxes and then when the BBox is penetrated the true sensitive region is computed. This eliminates the initial 'pause' - however some of the states take over 400ms to generate the sensitive region (Texas in particular). This is because we do actually do a geometric union of the fill/stroke (and markers) to get this region*.
I will try and deliver the code tonight.
[*] There may be ways to get the same effect for less cost, but it's tricky with markers and winding-rule considerations.
At this time "onload" is executed already long ago and the js-engine should have been started. If you would wait 5 minutes after onload the effect still appears.
It must be something different ... once the first mouse-over event occured it is much more responsive!
Andreas
-- The only thing that stands between a man and what he wants from
life is often merely the will to try it and the faith to believe
that it is possible ...
-- M. DeVos
---------------------------------------------- Andreas Neumann - Department of Cartography Swiss Federal Institute of Technology (ETH) ETH Hoenggerberg, CH-8093 Zurich, Switzerland Phone: ++41-1-633 3031, Fax: ++41-1-633 1153 e-mail: [EMAIL PROTECTED] www: http://www.karto.ethz.ch/neumann/ SVG.Open/Carto.net: http://www.svgopen.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]