How do I add feature to FeatureLayer from another FeatureLayer with all column values?
I try like this:
//Works, but seems that doesn't add column values myLayer.FeatureSource.AddFeature(feature); //Doesn't work like this at all (invalid arguments). What should be the second variable? myLayer.FeatureSource.AddFeature(feature, feature.ColumnValues);
You are not giving us the context in which you are performing adding features to a FeatureLayer from another FeatureLayer, but it seems to me that you are doing something similar to Intersecting two layers. We have a sample in the Code Community Intersecting Two Layers wiki.thinkgeo.com/wiki/Map_Suite_De...Two_Layers where we create a new FeatureLayer from the result of the intersection of two original FeatureLayers combining the columns of both original FeatureLayers to the new one. I think you are doing soemthing pretty similar. If not, give us a little more background on your case. Thank you.