Hi Denny,
It looks like a bug in the ImageServerUtils.getBackground(...)
method, where white is used if the defaults are not set.
One workaround (until you see a fix) would be to add the property
("BGCOLOR", "RRGGBB"), with RRGGBB being the hex string
representation of the background color set in the MapRequestHandler,
before the utils are asked to decode the color. I'd only add this
property if it's not already in the Properties object.
- Don
On Feb 13, 2006, at 6:19 PM, Denny Lee wrote:
> Hello all,
> I am using a servlet to serve maps and I am trying to
> change the map background color. I would like to be
> able to do it in the servlet code if possible. I saw
> the setBackground() in the MapRequestHandler class but
> I can't make it to do anything. Here is my code
> fragment
>
> MapRequestHandler iServer = new
> MapRequestHandler(requestProperties);
>
> iServer.setBackground(new Color(51, 0,0,0,));
>
> I tried various values in the argument spot for Color
> but I can't seem to make the background change color.
> It is constantly white.
>
> Any suggestions?
>
> Thanks.
>
> Denny
>
> --
> [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"]
--
[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 Tue Feb 14 2006 - 10:54:03 EST