Re: [OpenMap Users] BufferedShapeLayer lineColor update Question

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Thu, 15 Jul 2010 12:08:57 -0400

Hi Nathan,

I haven't seen the problem you describe, but that's because I use the DrawingAttributes object to reset the rendering parameters of the shapes:

layer.getDrawingAttributes().setLinePaint(newColor);

You might want to check out the OMMouseMode in the beta version of OpenMap, it has very similar behavior to what you are looking for. Combined with the com.bbn.openmap.app.Main application, it gives a different application experience that the former version of the OpenMap application. I've enclosed my version of the properties file I use with that class. I haven't totally integrated the properties into the beta distribution because the Main class component properties are not the same as the default ones on the openmap.properties file. I just run the Main class with a -propertes <path to ommain.properties> flag.

Hope this helps,

Don









On Jul 14, 2010, at 7:36 PM, Nathaniel Conos wrote:

> Hi All,
>
> I am trying to implement a smooth panning feel (similar to google-earth).
> I have modified the existing PanMouseMode.java file to account for
> delta lat/lon projections on the mapbean by recentering during a mousedrag.
>
> It works well when using a lower resolution .shp file (dcwpo-browse.shp), which is
> sufficient for my purposes. However, when changing the layer properties on the fly,
> specifically the linecolor, the panning performance severely degrades.
> Currently, I modify the linecolor via the property file, which I beliebe reloads
> the shape file with the updated color.
>
> In short, it seems that when the BufferedShapeLayer is initially created,
> the panning performance is fine, but as soon as the linecolor is modified,
> the performance degrades. Also, when updating the fillColor, the performance seems
> to not be affected.
>
> Any thoughts/leads would be greatly appreciated!
>
> Regards,
> Neil
>
> --
> [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 Jul 15 2010 - 12:09:51 EDT

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