Re: [OpenMap Users] Problem with printLayerProperties when switching to 4.6.4

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 18 Jun 2008 21:51:59 -0400

Hi Frédéric,

Can you clarify what you mean when you san the layerHandler contains the
updated value, but the props contain the old value? Specifically, the
value of what? Are you referring to the changed fill color property?
If so, isn't that property being retrieved from the layer before being
written out?

- Don


Frédéric Delanoy wrote:
> Hi,
>
> I'm using a LayersPanel and the user can change, for instance, fill
> color from layers loaded from a binary .shp file.
>
> I've a custom PropertyHandler that basically removes properties from
> dynamically generated layers so they aren't saved on exit.
>
> at some point, I have the current code:
>
> Properties getCurrentViewProperties(LayerHandler layerHandler,
> MapBean mapBean) {
> Properties props = new Properties();
> printLayerProperties(layerHandler, this, null, props);
> <...>
> }
>
> This code works nice for openmap 4.6.2 and 4.6.3. <http://4.6.3.>
> However, when switching to 4.6.4 (same problem with 4.6.5 beta), it
> stopped working.
>
> The sequence was so
> - load the map
> - change the fillColor of a .shp file through the LayersPanel
> - exit the app, and the previous function is called.
>
> When debugging, it seems the layerHandler contains the new updated
> value, but props still contains the old value.
>
> Could anyone please help ?
>
> Thanks in advance.
>
> Frédéric

--
[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 Jun 18 2008 - 21:52:10 EDT

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