Re: [OpenMap Users] From: Andy Gaskins <andyg@stingrayboats.com>

From: Don Dietrick <dietrick@bbn.com>
Date: Sun Nov 16 2003 - 22:33:24 EST

Hi Andy,

It doesn't sound like you are too far away. The easiest thing to do is
to create an object that extends from com.bbn.openmap.Layer, and add it
to the ImageServer as you are doing with the ESRILayers. You can use
the DemoLayer and DrawingToolLayer as examples of where to start, or
you can use any other layer class. Each one has different qualities
that you may want to mimic. Heck, you can use the ESRILayer as a base
and modify that.

You also have the option of creating a PlugIn object that creates the
OMGraphicList, and give it to a PlugInLayer. You can extend the
AbstractPlugIn as a start, or use any of the other PlugIns as an
example.

- Don

On Nov 15, 2003, at 12:00 PM, owner-openmap-users@bbn.com wrote:

> On Sat, 2003-11-15 at 11:48, Andy Gaskins wrote:
>
> This might be a stupid question but i have yet to find out how to do it
>
> I know there is a way but I cant seem to figure it out.
>
> I am using imageserver to create my GIFs passing it an array of
> ESRILayers. Well before I was using and omgraphicslist of omtext to
> create the labels.. but that was using a class that extended MapBean
>
>
> public void paint(java.awt.Graphics g) {
> super.paint(g);
> try{
> labels.generate(this.projection);
> labels.render(g);
> }catch(Exception E){}
> }
>
>
> I guess what I am asking is how do I add an omgraphiclist to a layer so
> I can create the labels and have them visible.
> I have tried to add the omgraphics list to a layer and even called
> generate on the list ( I thought maybe this is what i was missing)
>

--
[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 Sun Nov 16 22:34:49 2003

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