Hi,
Iam binding the data to FeatureSource of InMemorymarkeroverlay by using For Loop as below. It worksfine. But it is time consuming if the number of markers increases. Is there any possible option to load the FeatureSource without using For Loop/ForEach.. Loop?
memoryFeatureLayer.FeatureSource.Open(); memoryFeatureLayer.FeatureSource.BeginTransaction(); for (var i = 0; i < 20; i++)Random random = new Random(i.GetHashCode());Vertex v = new Vertex(-95.28109 + random.Next(1, 10), 38.95363 + random.Next(1, 5));Feature feature = new Feature(v, i.ToString());"AssetType", "Endpoint");Feature feature1 = new Feature(-118.28109, 34.505363);"AssetType", "Meter");"LA", feature1);FeatureSourceColumn column = new FeatureSourceColumn("AssetType");
{
feature.ColumnValues.Add(
memoryFeatureLayer.InternalFeatures.Add(i.ToString(), feature);
}
feature1.ColumnValues.Add(
memoryFeatureLayer.InternalFeatures.Add(
memoryFeatureLayer.Columns.Add(column);
memoryFeatureLayer.FeatureSource.CommitTransaction();
memoryFeatureLayer.FeatureSource.Close();