I uDig we use something like swtmappane - but we draw the different layers into their own swt images, allowing us to both draw in parallel and only refresh one layer if needed.
You may be able to redraw just a small bounding box on screen, but the result would have trouble with labeling. When we perform a similar optimization in uDig (during editing) we restrict the style from using labeling - showing the content as "selected" rather than with the current style. -- Jody Garnett On 9 March 2016 at 07:31, Piero Campalani <[email protected]> wrote: > Hi list, > > is there a way to refresh/redraw a single layer in a map? > (and by map I especially but non-exclusively mean /SwtMapPane/ :) ) > > If a layer changes, the event is fired in the /SwtMapPane/ > (#layerChanged(MapLayerListEvent)) which redraws the entire canvas -- if I > am not wrong -- so I believe the answer here is "no". > > I would like to refresh a little area of the map, without the cost > associated to the repainting of the whole map. > > Thanks in advance for any help, > -Piero > > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > >
------------------------------------------------------------------------------
_______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
