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

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

Hi...
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
UnitHandler.colorFormat=Inactive:lightgray/Active:green:black/ALERT:red/STOPPED:yellow/OFFLINE:darkgray/STALE:Gray/PURSUIT:red(1):red

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

> 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 "majdart_at_bbn.com"
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