Re: [OpenMap Users] Coloring the lines from a shapefile

From: JR Andreassen <>
Date: Mon, 19 Mar 2007 13:51:27 -0500

That's esentially what I did for Locations/Points:
Sorry if the comments leave a little to be desired
I use it to create colored Icon's for the Location as Dot's.
You can probably change it to update the "DrawingAttribute.lineColor"
Here is my property string

Start in :DBLocationHandler.reloadData(QuadTree qt)
UnitData.load(RecordSet drs, LocationColorFormatter colfmt) throws
Hope it helps

> Hello,
> I have an OpenMap display that shows a map with streets. Iím using
> this map to show where street robberies take place. What I want now is
> to change the color of the street depending on the number crimes that
> have committed in that street. For example, a street with a low crime
> density would be blue and one with a high crime density would be red.
> I want to be able to set this color after I have loaded the
> shapefile.? I know how to set the color for all streets with the
> Properties class, but how can I do this for each specific street ?
> Should I set the color as an attribute and specify colors for certain
> values?
> Thanks and regards,
> Jeroen

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Mar 19 2007 - 14:52:30 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT