Hi Sunish, It's well hidden but you can do this...
StreamingRenderer renderer = mapPane.getRenderer(); Map<Object, Object> hints = renderer.getRendererHints(); LabelCache cache = (LabelCache) hints.get(StreamingRenderer.LABEL_CACHE_KEY); cache.clear(); You could also sub-class JMapPane and access the protected labelCache field. Michael On 15 July 2013 22:52, sunish <[email protected]> wrote: > Hello, > > I am using geotools 10 snapshot. Testing JMapPane. > > After removing a layer I added a new one. JMapPane is showing labels of > both. > Is there a way to clear the label cache? > > Thank You, > > Sunish > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > GeoTools-GT2-Users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ GeoTools-GT2-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
