Hi Russ,
On Monday, March 11, 2002, at 02:59 PM, S. Russell Berckmoes wrote:
>> Is this client code? You still have to use it in the server, and load
>> the LinkGraphics with the drawing attributes sent in the request.
>>
> No, this is server code. A link list polygon is created on the server
> side
> using the link properties below. Again, line colors and fill colors
> (when I
> use them for areas) work correctly. It is the line width that I can't
> get to
> work.
>
>>>
>>> Properties props = new Properties();
>>> LinkProperties lp = new LinkProperties();
>>> .
>>> .
>>> .
>>> // transportation properties
>>> props.setProperty("trans.coverageType", "trans");
>>> props.setProperty("trans.featureTypes", "edge");
>>> props.setProperty("trans.edge", "runwayl");
>>> props.setProperty("trans.lineColor", "ff55ff");
>>> props.setProperty("trans.lineWidth", "3f");
>>> // link properties
>>> lp.setProperty(LinkProperties.LPC_LINEWIDTH, "3f");
>>> lp.setProperty(LinkProperties.LPC_LINECOLOR, "ff55ff");
What if you do:
lp.setProperty(LinkProperties.LPC_LINEWIDTH, "3");
leave the 'f' off. The LinkPoly code is looking for an integer. If the
color can be set here, that's the only thing I can see that might make a
difference.
If that doesn't work, you might want to try putting some debug
statements in the code to try to find out where the 1 is being set
instead of the 3. I'd check the LinkPoly.write and LinkPoly.read
methods first.
- Don
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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"]Received on Mon Mar 11 16:35:08 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT