Re: [OpenMap Users] MapBean and paning

From: Carsten Madsen <com_at_navicon.dk>
Date: Wed, 27 Oct 2010 16:32:50 +0200

  Hello

Try using PanningImageRenderPolicy:

layer.background=true
layer.renderPolicy=ta
layer.ta.class=com.bbn.openmap.layer.policy.PanningImageRenderPolicy
layer.ta.renderingHints=KEY_TEXT_ANTIALIASING
layer.ta.KEY_TEXT_ANTIALIASING=VALUE_TEXT_ANTIALIAS_ON
layer.ta.KEY_ANTIALIASING=VALUE_ANTIALIAS_ON
layer.ta.KEY_RENDERING=VALUE_RENDER_QUALITY

BR
Carsten


On 10/27/2010 03:00 PM, Tore Halset wrote:
> Hello.
>
> I am currently using a the normal MapBean in an swing application. It has some shape layers set as background and a overlay with the application specific polygons. On a mac, panning is nice. On windows, the map jumps back and forth after the panning. This flickering does not take long time, but it does not look nice.
>
> Changing PanMouseMode to use GraphicsConfiguration#createCompatibleImage to create the image buffers improved the situation slightly. Or nothing at all.
>
> Switching from MapBean to BufferedMapBean got the situation worse.
>
> Is there any other thing to try out to improve the panning in my app? This is all on openmap svn trunk.
>
> - Tore.
>
> --
> [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 Wed Oct 27 2010 - 10:52:27 EDT

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