> I have a JMapPane displaying a MapContext containing a number of
> layers.  I modify one of these layers via
> WritableRandomIter.setSample(x, y, b, value).  When I pan or zoom, the
> changes appear.  Is there some way that I can force the changes to
> appear programmatically?

Ah, good question Greg.  I'd be interested in this too...

A quick but ugly cludge would be to call JMapPane.paint() to force an
immediate repaint of the pane.

It would be nicer to make use of the 'layer changed' event system
similar to when you change a feature collection that is being
displayed. I'll have a little look at the DefaultMapLayer code...
Meanwhile, someone else may be able to enlighten us.

Michael

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to