Hello,

I need to change the features of a MapLayer in real-time but I don't know
how I can update/refresh/repaint the layer on the map without having to
remove it and add it again (which creates flickering).

Right now I'm doing this:

map.removeLayer(pathML);
SimpleFeatureCollection pointsFC = createFeatureCollection(points);
pathML = new MapLayer(pointsFC, pathStyle);
map.addLayer(pathML);

Do you know a better way to update the Layer rendering?

Thanks in advance.
André.
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to