Re: [OpenMap Users] urgently need help, how to add a plugin as a layer

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Jun 01 2004 - 18:07:54 EDT

Hi Yulei,

Add the WishEsriPlugIn and the LayerHandler to the MapHandler, the
LayerHandler will create a PlugInLayer for it and handle it correctly.

- Don

On May 27, 2004, at 6:21 PM, zhj45321@mail.sc.cninfo.net wrote:

> Hi Don,
>
> I try to add my EsriPlugIn layer to map.But it does not show, and
> there is no item for this
> layer in the layer control. What's wrong? The code is as following:
>
> //create parameters for plugIn,have setAddToBeanContext(true)
> PlugIn plugIn = WishEsriPlugIn.fromString(str);
> //create _list and _model, etc
> ((WishEsriPlugIn)plugIn).setProperties();
>
> /*
> PlugInLayer layer = new PlugInLayer();
> layer.setPlugIn(plugIn);
> */
> PlugInLayer layer = (PlugInLayer)plugIn.getComponent();
> layer.setName(((WishEsriPlugIn)plugIn).getName());
> m_layerHandler.addLayer(layer);
> //m_mapHandler.add(layer);
>
> I urgently need help.
>
> Thanks a lot.
>
> Yulei
>
>
>
> --
> [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, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Tue Jun 1 18:08:16 2004

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