FeatureLayer cannot share DefaultFeatureCollection
--------------------------------------------------
Key: GEOT-3716
URL: https://jira.codehaus.org/browse/GEOT-3716
Project: GeoTools
Issue Type: Bug
Components: data, docs, render
Reporter: Jody Garnett
Have an interesting one here:
1) following the example of the map style tutorial
2) Two layers each created from the same "data"
3) one was used as a basemap
4) the second had a filter dynamically applied to show selection
The feature collection was created by hand:
{code}
SimpleFeatureCollection collection = FeatureCollections.newCollection();
{code}
And populated from a CSV file.
And then two layers were created:
{code}
baseLayer = new FeatureLayer(collection, style);
Have an interesting one here:
1) following the example of the map style tutorial
2) Two layers each created from the same "data"
3) one was used as a basemap
4) the second had a filter dynamically applied to show selection
The feature collection was created by hand:
{code}
SimpleFeatureCollection collection = FeatureCollections.newCollection();
{code}
And populated from a CSV file.
And then two layers were created:
{code}
baseLayer = new FeatureLayer(collection, style);
map.addLayer(facesLayer);
this.map.addLayer(facesLayer);
this.selectLayer = new FeatureLayer(collection, selectStyle);
map.addLayer(facesLayer);
{code}
And the selectLayer was never rendered; not sure why.
The solution was to read in a second FeatureCollection and allow each layer to
operate independently.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel