I just noticed when using OMCircle and zooming the circle seems to get
bigger and bigger as you zoom, but the when using OMPoint the point stays
the same size. I also noticed you can set the point to an oval using
setOval() method, so basically the marker can be set to an by adding the
SetLocationMarker method in the CSVLocationHandlerclass and specifying the
parameter as OMPoint and there can just be a markerShape property (oval or
square) to define the point's shape and a add a markerSize property to
specify a size parameter.
Luke
-----Original Message-----
From: Luke A. Catania (TEC) [mailto:lcatania@tec.army.mil]
Sent: Wednesday, February 05, 2003 10:05 PM
To: Email List, OpenMap
Subject: RE: Specifying Graphic type and size for
LocationLayer/CSVLocationHandler
I found that the line:
loc = new URLRasterLocation(lat, lon, name, iconURL);
in CSVLocationHandler.java.
and tried the lines :
loc.setLocationMarker(new OMPoint(lat,lon,3));
and
loc.setLocationMarker(new OMCircle(lat,lon,3));
after it and it managed to change the graphic.
It would seem like a good idea to add a graphic property and graphic
attribute property to the CSVLocationHandler such as:
public static final String OmGraphicProperty = " omGraphic";
which could take on values of Point, Circle, Rect, etc. Also adding a size
property such as:
public static final String OmGraphicSizeProperty = " omGraphicSize";
which would be associated to radius for point and circle. Or more specific
properties for each graphic that are only valid if the specific graphic is
described by OmGraphicProperty.
If there are any other suggestions I would like to here them
Thanks,
Luke
-----Original Message-----
From: Luke A. Catania (TEC) [mailto:lcatania@tec.army.mil]
Sent: Wednesday, February 05, 2003 9:52 PM
To: 'openmap-users@bbn.com'
Subject: Specifying Graphic type and size for
LocationLayer/CSVLocationHandler
I am displaying locations using LocationLayer and CSVLocationHandler. The
little box or point graphic representing the location is pretty small. Is
there anyway to specify the size of this graphic, so I can control the size?
Even specify the graphic type, such as box or a point or circle. Can it be
specified either by modifying an existing class or through a property?
Thanks,
Luke
-- [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 Feb 5 22:25:32 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:34 EDT