Hello,
I'm trying to add an "InMemoryFeatureLayer" to my map, but I want to specify my own values of each feature label, without using the DFB file. So i'm looking for something like that "labeling (double x, double y, string texteValue)".
Thank you
Hello,
I'm trying to add an "InMemoryFeatureLayer" to my map, but I want to specify my own values of each feature label, without using the DFB file. So i'm looking for something like that "labeling (double x, double y, string texteValue)".
Thank you
Hi gigi,
We don't have a function like your sample.
You can add a column for labeling and then add defaultTextStyle.
Here is some important code part:
InMemoryFeatureLayer layer = new InMemoryFeatureLayer();
layer.Open();
layer.Columns.Add("label");
layer.Close();
Feature feature = new Feature();
feature.ColumnValues.Add("label", "featureLabel");
layer.InternalFeatures.Add(feature);
layer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.Country1("label");
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
Regards,
Don