Hi folks,

I'm currently facing the following problem:
I want to display a shapefile with  a LOT of objects in it, and then lay over 
an individual layer to draw stuff in - this works fine, until I want to zoom in 
by setting the display area to a smaller area.
This zooming just doesn't work, the map is displayed in its original size on 
the screen; and, if I render it as a PNG file, the feature layer is missing!
Nevertheless, this works fine when I use a different map with less objects in 
it.

Does anyone have an idea how this can be solved?

Kind regards,
Philipp

Here's my code:

        Layer layer = new FeatureLayer(featureSource, createDefaultStyle());
        map.addLayer(layer);

       createTileData();
        map.addLayer(new TileLayer());

        if(Region.equals("europe")){
             Envelope displayedArea = new 
Envelope2D(map.getCoordinateReferenceSystem(), -14., 30.2 , 42.*(width/height), 
42.);
             mapFrame.getMapPane().setDisplayArea(displayedArea);
        }

        if(writeToPNG != null)
             try {
                    savePNG(writeToPNG);
             } catch (InterruptedException e1) {
                    e1.printStackTrace();
             }

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to