Sunish:

If you want to repaint the whole layer you can use
mapFrame.getMapPane().layerChanged(mplle);
see the example here:
https://github.com/guziy/GeotoolsDemo/blob/master/src/RoughCreatingPoint.java
method createFeatures.

Cheers



2013/7/16 sunish <[email protected]>

> Hello,
>
> Some times after removing some layers and adding other set of layers
> JMapPane is not repainting properly.
> Some times it paints properly, some times partially and some times there
> is  no repainting.
> Is there any way to force repaint of layers?
>
> I tried
>
> mapPane.setIgnoreRepaint(true);
> ...............................
>  Remove & Add Layers
> ............................
> mapPane.setIgnoreRepaint(false);
> mapPane.repaint();
>
> But the repaint was not happening.
>
>
> Can the paintDelay help in this?
>
> Thanks for support,
>
> 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

Reply via email to