RE: [OpenMap Users] shapeLayer.pointImageURL

From: Rubén Ruiz <vinilo@cancerbero.org>
Date: Wed Jun 23 2004 - 08:08:30 EDT

Thanks Don,

Now i can see mi image in the mapBean, but it has a fixed size on the
screen...quite bigger than my maps...
Anyone knows how to resize it? I'm going to try with the AreaShapeLayer you
told me...

Thanks,
Rubén.

-----Mensaje original-----
De: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] En
nombre de Don Dietrick
Enviado el: martes, 22 de junio de 2004 13:29
Para: Rubén Ruiz
CC: openmap-users@bbn.com
Asunto: Re: [OpenMap Users] shapeLayer.pointImageURL

Hi Rubén,

On Jun 21, 2004, at 1:20 PM, Rubén Ruiz wrote:

> Hi all again,
>
> I don't undestand the next property for shapelayer:
>
> shapeLayer.pointImageURL=<URL for image to use for point objects>
>
> 1. Does it load a given image in every ESRIPoint of the layer?

No, it reuses it for each ESRIPoint.

> 2. What kind of images can i load? Gif & JPEG supose....

Anything Java can handle internally. The code uses a javax.swing.ImageIcon
to load the URL of the image. Certainly gifs and jpegs, but I think tiffs,
too. png.

> I want to load an image in certain points of my shapelayers, is it
> possible?

The AreaShapeLayer can do this, but you'll have to set the properties for
the URL for the default, and for each point with a particular image. You
could also extend the layer, and modify the code to set the images in the
points yourself.

> Do i have to use other kind of layer? Does any other layer support the
> pointImageURL property?

No, it depends on the layer.

> Another question by the way...
> Is there any way to get the corresponding ID of a OMGraphic associated
> to the row of the corresponding DBF file?

The appObject of an OMGraphic (OMGraphic.getAppObject()) contains an Integer
of the row ID.

  - Don

> Maybe using NumAndBox?
>
>
> I would thank any explanation.
> Thanks in advance,
> Rubén.
>
>
>
> --
> [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"]
--
[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 Wed Jun 23 08:10:22 2004

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