What I ended up having to do to get this to work is add the following to my 
renderer hints:
        hints.put("optimizedDataLoadingEnabled",new
                Boolean(true) ); 

The line above is more required then a hint if doing manipulation on a 
featurecollection.

the following is a full snipped of my renderer declaration, hints, and 
assignment to my JMapPane(wrappedPane):
        StreamingRenderer streamingRenderer=new StreamingRenderer();
       
        Map<Object, Object> hints=new HashMap<Object, Object>();
         //to prevent warning: "Assuming rendering buffer       
         hints.put("renderingBuffer",1);
        //to prevent ConcurrentModificationException
        hints.put("optimizedDataLoadingEnabled",new
                Boolean(true) ); 
        streamingRenderer.setRendererHints(hints);

        wrappedPane.setRenderer(streamingRenderer);


-----Original Message-----
From: "Michael Bedward" <[email protected]>
Sent: Saturday, January 16, 2010 9:00pm
To: "Oliver Gottwald" <[email protected]>
Cc: "geouser" <[email protected]>
Subject: Re: [Geotools-gt2-users] FeatureCollection Update Issue

Hi Oliver,

If the feature collection is being used in a MapLayer, clearing the
feature collection will cause an event to be fired that prompts
repainting. Try this...

mapPane.setRepaint( false );
myFeatureCollection.clear();
... // repopulate collection
mapPane.setRepaint( true );

Hope this helps.

Michael
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to