Do you guys have any suggestions on how to remove an entire object ( and keep the other 55 objects) from an array collection that is a dataprovider of a combobox? Thank you!!!
Thank you Ivan! I have been looking all day for a way to remove an object! Now, on your project, why can't we see the layers we select on the map, just on the legend? Also, for that to work do I have to have that legendskin.mxml?
Now, on your project, why can't we see the layers we select on the map, just on the legend? Also, for that to work do I have to have that legendskin.mxml?
1 - on your project - are you talk about this sample http://web.zone.ee/bespiva/legendwithskin/ ??? [/HR] 2 - why can't we see the layers we select on the map - hmmmmmmmm just zoom to some big city (LA, NY, ...) and you'll see all streets, parks ... you turn on in TOC. Some sublayers are empty (no map features), but layer is visible and has all needed information to be shown in legend [/HR] 3 - do I have to have that legendskin.mxml? - IMHO skin is just a skin ~ collection of rules+styles by which the element/component is drawn, so if you need to change smthing in legend visualization - yes the better way to change skin. Skin is used in my sample, because default esri legend skin has some bugs
Yes, that is the project I asked about. I zoomed in to NY and I still couldnt see any layers besides the baselayer. For L.A., I could see the streets, but nothing else. Am I doing something wrong? Thanks!
:rolleyes: All you're doing right. As I told: some sublayers are empty(no any features or very few count of them) in this sample - that is the reason why you can not see anything in the NY. But it does not matter. To display the legend you must know information about layer properties but not its contents. Forget about this sample. Do not zoom in/to ...
What about your base question - Did you find answer for "How to remove an entire object from an array collection"? Yes? - very good.
Sorry for the delay in replying. That did not work for me, I think because the array has a filter, but that's ok because I decided to try something else to remove the objects I needed from the array collection. Thank you so much for your help!!!