FeatureLayer zipcodeLayer = Helpers.GetFeatureLayer(LayerUtility.StaticType.ZipCodes);
if (zipcodeLayer != null)
{
zipcodeLayer.ZoomLevelSet.ZoomLevel10.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
zipcodeLayer.FeatureSource.Projection = proj4;
zipcodeLayer.IsVisible = true;
zipcodeLayer.Open();
ValueStyle selectedZipCodes = new ValueStyle();
selectedZipCodes.ColumnName = "ZIP";
for (int i = 0; i < zipcodes.Length; i++)
{
string zipcode = zipcodes;
ValueItem valueItem = new ValueItem(zipcode, new AreaStyle(new GeoPen(new GeoColor(0, 0, 255), 2), new GeoSolidBrush(GeoColor.FromArgb(0, GeoColor.StandardColors.Blue))));
valueItem.DefaultTextStyle = TextStyles.Capital1("ZIP");
selectedZipCodes.ValueItems.Add(valueItem);
Collection<feature> features = zipcodeLayer.QueryTools.GetFeaturesByColumnValue("ZIP", zipcode);
if (features.Count > 0)
{
............
....................
}
}
zipcodeLayer.Close();
zipcodeLayer.ZoomLevelSet.ZoomLevel10.CustomStyles.Add(selectedZipCodes);
}</feature>