Suppose I want to add two ShapeFileFeatureLayer on map.
- First layer should be visible by default on any map at any zoom level from 0 to 20.
- Second layer should only be visible on map at zoom level 5 only.
- And second layer should not hide first layer once visible (Transparency)
//layer 1:
ShapeFileFeatureLayer layer1 = new ShapeFileFeatureLayer("shp file1 path");
layer1.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Green,GeoColor.SimpleColors.Green);
layer1.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUtilZoomLevel.Level20;
//layer 2:
ShapeFileFeatureLayer layer2 = new ShapeFileFeatureLayer("shp file2 path");
layer2.ZoomLevelSet.ZoomLevel05.DefaultAreaStyle =
AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Yellow,GeoColor.SimpleColors.Yellow);
layer2.ZoomLevelSet.ZoomLevel05.ApplyUntilZoomLevel = ApplyUtilZoomLevel.Level05;
Please guide me how can I achieve this or what I am missing here??
ShapeFileFeatureLayer display ordering Issue
Hi Zuhaib,
Would you please change the DefaultAreaStyle in layer2 like this:
AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent,GeoColor.SimpleColors.Yellow,2);
if you have any more question , please feel free to let us know.
Best Regards
Summer
Hi Zuhaib,
Would you please change the DefaultAreaStyle in layer2 like this:
AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent,GeoColor.SimpleColors.Yellow,2);
if you have any more question , please feel free to let us know.
Best Regards
Summer