Re: [OpenMap Users] VPFLayer issue - how are all the VPF layer properties set ?

From: Don Dietrick <dietrick_at_bbn.com>
Date: Tue, 27 Jul 2004 15:11:00 -0400

Hi Xavier,

I hate to tell you this, but it works for me, even without the
modification for the BeanContext. 2 VPFLayers in a BufferedLayer, both
display, and both write out their properties when map properties are
saved.

- Don

On Jul 26, 2004, at 8:43 AM, xrr_at_altern.org wrote:

> Hello,
>
> I have an issue trying to use a BufferedLayer with many VPFLayers.
>
> First I had to change the BufferedLayer and the VPFlayer classes.
> Because the layers handled managed by the bufferedLayer were not aware
> of the bean context. So I overrided setBeanContext in BufferedLayer so
> that it will call setBeanContext in all the layers.
>
> Now all the VPFLayers are properly set-up but when I save a map, the
> properties are not properly saved.
>
> here's what I get in the saved properties for one of the layers
> agregated by BufferedLayer :
>
> vmapRoads1.addToBeanContext=true
> vmapRoads1.autoPalette=false
> vmapRoads1.background=false
> vmapRoads1.class=com.bbn.openmap.layer.vpf.VPFLayer
> vmapRoads1.consumeEvents=false
> vmapRoads1.pcp.class=com.bbn.openmap.layer.policy.ListResetPCPolicy
> vmapRoads1.prettyName=VMAP L0 SASAUS(Asia)
> vmapRoads1.projectionChangePolicy=pcp
> vmapRoads1.removeable=true
> vmapRoads1.renderPolicy=rp
> vmapRoads1.rp.class=com.bbn.openmap.layer.policy.BufferedImageRenderPol
> icy
>
> here's the full set in the initial openmap.properties file :
>
> vmapRoads1.class=com.bbn.openmap.layer.vpf.VPFLayer
> vmapRoads1.prettyName=VMAP L0 SASAUS(Asia)
> vmapRoads1.libraryBean=VMAPL0SASAUS
> vmapRoads1.coverageType=trans
> vmapRoads1.featureTypes=edge area text
> vmapRoads1.edge=roadl trackl traill
> vmapRoads1.addToBeanContext=true
>
> vmapRoads1.roadl.lineWidth=1
> vmapRoads1.roadl.lineColor=F0000000
> vmapRoads1.roadl.matted=false
> vmapRoads1.roadl.mattingColor=F0000000
> vmapRoads1.traill.lineWidth=1
> vmapRoads1.traill.lineColor=F0000000
> vmapRoads1.traill.matted=false
> vmapRoads1.trackl.lineWidth=1
> vmapRoads1.trackl.dashPattern=10 10
> vmapRoads1.trackl.lineColor=F0ffb200
> vmapRoads1.trackl.matted=false
> vmapRoads1.trackl.mattingColor=000000
>
>
>
>
> you can see that a lot are missing...
>
> Any idea how I can update bufferedLayer so that all the properties of
> the VPFLayer will be properly saved ?
> Actually I have no idea so far about how and where those missing
> properties are handled.
>
>
> Thanks in advance,
>
> Xavier
>
> --
> [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"]
>
>


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Tue Jul 27 2004 - 15:11:29 EDT

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