Ed,
One approach is:
ImageIcon icon = new ImageIcon( "someImage.gif" ); // assumes .gif is in
same folder as application.
OMRaster LLicon = new OMRaster(
LocObj.getLatitude().floatValue(),
LocObj getLongitude().floatValue(),
-20, 0, // Pixel offset (right, down) of icon in relation to
LocObj
icon);
and add LLicon to your graphics list.
phil
Ed MacKerrow wrote:
> Dear OpenMappers,
>
> Is it possible to place a .gif file (or other image file) on a map as
> the icon for a Location object? If so, how can I do this?
>
> Thanks in advance for the help,
>
> ed
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Ed MacKerrow
> Decision Applications Division
> Mail Stop - F602 Los Alamos National Laboratory
> Los Alamos, NM 87545
> (505) 665-3491 (office)
> (505) 603-0352 (cell)
> (505) 665 - 2017 (fax)
> mackerrow@lanl.gov
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- [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"]
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT