It is my hope if you wanted "an overview" you could make a MapViewport
> > that wrapped the original (adjusting the by a scale factor). Or you could
> > use listeners
> > and update the second MapViewport for a slightly more complicated solution.
> That sounds ideal.
Let us make it an acceptance test then; ie when we can do this smoothly we will 
know our design is good. 
> > So the general theme is that work is proceeding apace (Andrea reviewed your
> > patch, I added StyledLayer, and
> > we can adjust MapViewport and MapContent to try and make coding easier and
> > reduce duplication).
> Please see the comment and updated patch I just added to the Jira issue:
> http://jira.codehaus.org/browse/GEOT-3565
Comment was:
> I thought the "instanceof FeatureLayer" check which it puts into 
> StreamingRenderer.getMaxBackBufferMemory is a stupid idea because it ignores 
> grid coverage / reader layers. To fix this I have used the new StyleLayer 
> class in the instanceof check, but then have to resort to creating a MapLayer 
> instance to act as a helper for the next step (checking features to decide if 
> the style is active). 
I don't understand "the next step"; what do mean by checking features to decide 
if the style is active?

I did expect a series of "instance of checks" in the renderer; with it skipping 
any layer it does not know how to handle.

Do you mean this?
> currLayer = new MapLayer(mapContent.layers().get(i)); if 
> (!currLayer.isVisible()) {
Because Layer.isVisible() is defined?

You probably mean this:

> FeatureType ftype = mapLayer.getFeatureSource().getSchema(); for 
> (FeatureTypeStyle fts : styleLayer.getStyle().featureTypeStyles()) {
> 

For that case I do expect only FeatureLayer to be used (so an instance of 
FeatureLayer is valid; there should be no need to create a MapLayer?)

Am I missing something?

Jody 
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to