Hello,

as I mentioned a few days before, you need to call JMapPane.setReset(true) 
before JMapPane.repaint() to "tell" the map/renderer, that something has 
changed.
>From your point this proceeding might look unnecessary complex, because in the 
>most cases you want to see your new layer immediately.
But sometimes this would be inefficient, e.g. if you add many layers to the map 
all at once.
So it is better, that the renderer only updates the map, if the reset flag is 
set.

Martin S.


> -----Ursprüngliche Nachricht-----
> Von: "pennyw 81" <[EMAIL PROTECTED]>
> Gesendet: 11.09.06 14:37:51
> An: [email protected]
> Betreff: [Geotools-gt2-users] Repainting issue


> Hi everybody,
>       when I add a layer to the context of a map (this map extends the 
> JMapPane class), I can view the content of the layer only if a zoom / pan 
> the map. I try adding a call to the repaint() method on the map, but it 
> doesn't seem to work.
> I think I'm missing something. Anyone can help me?
> Thank you
> Andrea
> 
> _________________________________________________________________
> Vuoi vedere la reazione dei tuoi amici? 
> http://imagine-msn.com/messenger/launch80/?locale=it-it
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to