Hi,
How can I add custom point styes according to the column value of a layer.?
ShapeFileFeatureLayer shpFeatureLayer = new ShapeFileFeatureLayer("Poi.shp");
shpFeatureLayer.Open();
foreach (Feature feature in shpFeatureLayer.FeatureSource.GetAllFeatures(ReturningColumnsType.AllColumns))
{
string keyValue = feature.ColumnValues["KATEGORI"].ToString();
if (keyValue == "Akaryakit")
{
string imagePath = "images/pointers/001.gif";
Here I want to add an image for that point with zoomlevel (for example zoomlevel from 4 until 20)
.... new PointStyle(new GeoImage(imagePath));
}
}
shpFeatureLayer.Close();
thanks.