Re: [OpenMap Users] Refresh

From: Carsten Ø. Madsen <com_at_navicon.dk>
Date: Thu, 07 Jun 2007 17:09:32 +0200

Hi

Are you using the BufferedLayerMapBean?

http://www.jdocs.com/openmap/4.6.2/api/com/bbn/openmap/BufferedLayerMapBean.html

And have you set the background flag of the layers below the animation
layer to true?

That should reduce the flickering.

Alternatively, writing your own MapRepaintPolicy might help even though
I do not how how to do this.

Carsten

Jay D. Askren wrote:
> We are trying to visualize the results of a simulation on top of Open Map. The map looks something like the following, but with only about 20 points or so:
>
> http://www.cybergeography.org/atlas/mids_intrworld9901_large.gif
>
> Our problem is that the simulation updates fairly frequently (on the order of milliseconds) and is quite CPU intensive. No matter what we do, we seem to be getting some map flickering. I.E. the points on the map disappear and then come back later. Our layer extends Location Layer and our naïve approach was to call doPrepare() every time the simulation updated the map. We also tried having a separate thread run in the background to sleep for a second or half second, call doPrepare(), and then do it again. Doing so did help a little, but it seems to be very dependent on the speed of the machine the application is running on. If we sleep too long, it appears the doPrepare() thread is getting starved because the map is not refreshing properly. Strangely enough the thing that has helped the most has been changing the radius of the points to be a little larger. Even with that, we still have some flickering happening. During the animation, the radius and the color of each circle are changing, but the cir
cles aren't moving. Any ideas of how to fix this? Thanks.
>
>
> Jay
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe openmap-users"]
>


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jun 07 2007 - 11:42:56 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT