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).
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é.