If I want to select a polygon simply to change the color I am finding I have to add it to an InMemoryLayer. Is there a way to select the polygon without having to copy it to another layer?
Selecting Polygon - Other options other than InMemoryLayer?
Steve,
I think currently in all kinds of layers, the features in it should shared the same style, if you want to just change the style(color, width etc) only for the selected feature, the standard and suggested way is copy it and send it to another layer.
But we still can do in another 2 ways I can think out.
1) Create your own kind of styled layer. Please take a reference to post
gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/5824/afv/topic/afpgj/1/Default.aspx#8838
2) Use advanced styles: Just like Value Style/ ClassBreak Style etc.
Take Value style as a example, we will set two valueitem for this style, one is for selected, one if for non-selected. If we selected one item, just mark the feature column to select.
Any more problems just let me know.
Thanks.
Yale