RE: [OpenMap Users] MapBean projection change policy

From: Rick Lane <lane_richard_b_at_bah.com>
Date: Fri, 6 May 2005 14:09:04 -0400

I've resolved this earlier issue, however one still remains: for some
reason, after the last frame of animation, and before the new projection is
displayed, I'm getting a flicker of blue (as if the ShapeLayer is not yet
prepared to draw, and so the only thing that gets rendered, at first, is the
blue "ocean").

I've attached the mouse mode I wrote to get the animation effect, and anyone
is free to use it as they wish-- I'm hoping that someone will be able to see
the "flicker" I'm talking about and give me some suggestions on how I might
be able to fix it. Currently, when you use the NavMouseMode supplied with
OpenMap, and you zoom in, there is no blue flicker-- this is exactly what I
would like to happen.

Thanks in advance,
Rick

-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Rick Lane
Sent: Friday, May 06, 2005 10:24 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] MapBean projection change policy

Greetings. I'm looking for a way to temporarily turn off the MapBean's
behavior of automatically redrawing each layer when the projection changes.
This is because I'm doing an animation (the user clicks on a region on the
map and the animation makes it look like you're zooming down to that area).
To do this, I draw to the MapBean's graphics context, however in the
background, while the animation is occurring I want to update the projection
such that it equals the same projection that the "zoom" animation took us
to. I currently have it working nicely, however I get a flicker effect
because as I'm animating, the MapBean is telling all the layers to repaint
because of the update in projection. I was hoping for a way to disable the
MapBean's auto-repaint policy, but I'm not too familiar with the
ProjectionChangePolicy class-- if that's even the right place to look.

Any help is appreciated.

Rick

--
[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 Fri May 06 2005 - 14:10:34 EDT

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