Re: [OpenMap Users] When and Where(which object) load the all layser and set the layersMentu inital menu itme according with properties file ("open.layers" ) when the OpenMap startup?

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Jul 17 2003 - 12:17:28 EDT

The layer sets its own name by reading the prettyName property. When
the LayerHandler lets the ComponentFactory build a layer, the
ComponentFactory checks to see if the new object is a PropertyConsumer,
and provides the prefix/properties to the object if it is.

- Don

On Thursday, July 17, 2003, at 03:51 AM, xiexz wrote:

> Thanks your reply!
> I know the layersMenu create menu item with the layer.getlayername()
> by the layerHandler when it recive the BeanContextMembershipEvent.
> But I didn't know when the layer object get the prettyName attribute
> from property files ( "Political Edge"). It seems the layer object
> don't be set the name when it be created in
> componmentFactory.create() method. any help?
>
>
> Best Regards
>
> Calvin
> WebGIS Development Team
> ShenZhen Y&D Electronics Co.,Ltd
> Tel:0755-26727593
> FAX:0755-26727593
> http://www.s-ec.com
> Email:xiexz@s-ec.com
> ----- Original Message -----
> From: "Don Dietrick" <dietrick@bbn.com>
> To: "xiexz" <xiexz@s-ec.com>
> Cc: <openmap-users@bbn.com>
> Sent: Wednesday, July 16, 2003 10:28 PM
> Subject: Re: [OpenMap Users] When and Where(which object) load the all
> layser and set the layersMentu inital menu itme according with
> properties file ("open.layers" ) when the OpenMap startup?
>
>
>> The LayerHandler is responsible for reading the openmap.layers
>> property
>> and creating the appropriate layers. The LayersMenu connects to the
>> LayerHandler as a LayerListener, and receives events from the
>> LayerHandler when new layers are added/removed.
>>
>> The LayersMenu gets a handle to the LayerHandler using the MapHandler.
>> All components listed in the openmap.components property of the
>> openmap.properties file are added to the MapHandler, those that are
>> BeanContextMembershipListeners receive events that tell them what
>> other
>> objects are in the MapHandler.
>>
>> - Don
>>
>>
>> On Wednesday, July 16, 2003, at 05:00 AM, xiexz wrote:
>>
>>>
>>> Where(which object) load the all layser and set the layersMentu
>>> inital menu itmes according with the properties file ("open.layers" )
>>> when the OpenMap startup?
>>>
>>>
>>> Best Regards
>>>
>>> calvin xie
>>>
>>> WebGIS Development Team
>>> ShenZhen Y&D Electronics Co.,Ltd
>>> Tel:0755-26727593
>>> FAX:0755-26727593
>>> http://www.s-ec.com
>>> Email:xiexz@s-ec.com
>>> ----- Original Message -----
>>> From: <avasile@csc.com.au>
>>> To: <openmap-users-digest@bbn.com>
>>> Sent: Tuesday, July 15, 2003 3:59 PM
>>> Subject: [OpenMap Users] Getting dynamic layers displayed.
>>>
>>>
>>>> If I manually construct the properties file and manage my own list
>>>> of
>>>> properties I can get a map layer to appear based on some level 1
>>>> DTED
>>>> layer to appear and some basic graphics symbols to appear.
>>>>
>>>> If I try to use a properties file from the PropertyHandler class I
>>>> can't
>>>> get the map to appear even though the I believe I have copied all
>>>> the
>>>> same
>>>> parameters from my hard coded version to my openmap.properties file.
>>>>
>>>> I have set the following layers fields
>>>>
>>>> layers=jdted vehicles graphics
>>>> openmap.startUpLayers=jdted vehicles graphics
>>>> openmap.layers=jdted vehicles graphics
>>>>
>>>> vehicles and graphics are two layers that I have written. Also I
>>>> create
>>>> currently these layers in the class that handles the MapBean. I do
>>>> this so
>>>> I can call methods on these layer classes. Is there anyway to get a
>>>> handle
>>>> on this layer if I set the parameters for these layers from within
>>>> the
>>>> openmap.properties file?
>>>>
>>>> Basically what I'm trying to do is optionally have a map layer
>>>> because we
>>>> haven't decided what data format we going to specifiy the map in.
>>>> I've have
>>>> access to some dted level 1 data for the area of interest.
>>>>
>>>> Any help would be most appreciated.
>>>>
>>>> Yours
>>>> Tony Vasile
>>>> __________________________________________________
>>>> CSC Australia
>>>> Cnr Nicholson & Oxley Streets, St Leonards NSW 2065
>>>> Ph: +61-2-9901-1536 Fax: +61-2-9901-1178 Email:
>>>> avasile@csc.com.au
>>>> --------------------------------------------------------------------
>>>> --
>>>> ------------------
>>>>
>>>> This is a PRIVATE message. If you are not the intended recipient,
>>>> please
>>>> delete without copying and kindly advise us by e-mail of the mistake
>>>> in
>>>> delivery. NOTE: Regardless of content, this e-mail shall not operate
>>>> to
>>>> bind CSC to any order or other contract unless pursuant to explicit
>>>> written
>>>> agreement or government initiative expressly permitting the use of
>>>> e-mail
>>>> for such purpose.
>>>> --------------------------------------------------------------------
>>>> --
>>>> ------------------
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> [To unsubscribe to this list send an email to "majdart@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@bbn.com"
>>> with the following text in the BODY of the message "unsubscribe
>>> openmap-users"]
>>>
>>>
>>
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Don Dietrick, BBN Technologies, dietrick@bbn.com
>> 10 Moulton Street, Cambridge, MA 02138
>> 617-873-3031 [fax]-2794
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>> --
>> [To unsubscribe to this list send an email to "majdart@bbn.com"
>> with the following text in the BODY of the message "unsubscribe
>> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jul 17 12:18:32 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT