Hi Fábio,
You can call doPrepare() on the layer to get the OMGraphics rebuilt
with the new settings.
Regards,
Don
On Jun 22, 2006, at 1:15 PM, Fábio Henrique da Silva wrote:
> Dear OpenMappers,
>
> I'm a newbie user working with something like
>
> <loop> (from layers 1 to large_N)
> AreaHandler areaHandler = layer.getAreas();
> <loop> (processing all politicalAreas of this layer)
> PoliticalArea politicalArea = areaHandler.findPoliticalArea
> ("myString");
> DrawingAttributes drawingAttributes =
> politicalArea.getDrawingAttributes();
> drawingAttributes.setFillPaint(ColorFactory.parseColor
> ("myNewColor"));
> [and other drawingAttributes changes, much better than via
> properties :-)]
> <loop>
> <loop>
> ???
>
> However, I was unable to find out how to "refresh" all recoloured
> layers of my MapBean without changing the projection, since this is
> not the case. I have tried repaint() without success... Just when I
> navigate on the map the new colors are shown. Does someone have an
> idea on how to reflect these DrawingAttributes changes efficiently?
>
> Thanks in advance,
>
> Fábio Silva.
>
> --
> [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 Mon Jun 26 2006 - 10:42:38 EDT