Re: [Geotools-gt2-users] usage of MapContext area of interest

2009-02-27 Thread Michael Bedward
Hi Ben, With the current JMapPane a change in a feature layer triggers a repaint but not a recalculation of layer bounds. So perhaps the bottleneck for your data is the renderer. Michael -- Open Source Business Conferen

Re: [Geotools-gt2-users] usage of MapContext area of interest

2009-02-27 Thread Benoît Thiébault
That would be nice indeed. My only limit there is that my client wants me to use geotools 2.5, so I'm not sure I will be allowed to use your new version in the end. I will have a look at it anyway, it's interesting. I have another remark about the JMapPane, regarging performances... They are n

Re: [Geotools-gt2-users] usage of MapContext area of interest

2009-02-27 Thread Michael Bedward
2009/2/27 Benoît Thiébault : > The only problem is when you decide to resize the window containing the map > : at some point, it seems the JMapPane (or is it the StreamingRenderer ?) > asks all layers for their bounds and goes back to a view containing all your > data (even if you were zoomed in...

Re: [Geotools-gt2-users] usage of MapContext area of interest

2009-02-27 Thread Benoît Thiébault
Hi everyone, This is how I do to update a JMapPane. I created an update method taking as arguments the new area of interest and the new CRS (if you wish to change it, to perform a map rotation for instance). The fixAspectRatio method is the same than the JMapPane one. There is maybe a smart

Re: [Geotools-gt2-users] usage of MapContext area of interest

2009-02-26 Thread Michael Bedward
Hi Carsten, I thought the same as you. The method name, setAreaOfInterest, certainly implies that it should do what you are expecting, but it doesn't :-( All that happens is that the bounds you set are stored by the context and can be retrieved (by you) later with the getter method. I think it

[Geotools-gt2-users] usage of MapContext area of interest

2009-02-26 Thread Carsten Ehbrecht
Hi, the MapContext in geotools has a setter/getter for the area of interest. I would expect from the method to get the current visible map area (area of interest). But it doesn't seem to be updated (i'm using StreamMap) and i get only the "fallback" method boundsOfLayers which gives my the total a