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"]
Received on Thu Jun 22 2006 - 13:19:47 EDT