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:
SimpleFeatureCollection pointsFC = createFeatureCollection(points);
pathML = new MapLayer(pointsFC, pathStyle);
Do you know a better way to update the Layer rendering?
Thanks in advance.