Hello,
I’m trying to style a layer of road segments (a total of 2048 features created with LineShape
) based on a feature value using ValueStyle
, but some tiles are not loading.
The request returns status code 200, but with content-length = 0, and the ones that do load are taking 3 to 4 seconds each.
The way I’m setting the layer style is something like this:
var valueStyle = new ValueStyle();
valueStyle.ColumnName = "RoadStatus";
valueStyle.ValueItems.Add(new ValueItem("Open", new LineStyle(new GeoPen(GeoColor.FromHtml("#5181b2"), 3))));
valueStyle.ValueItems.Add(new ValueItem("Closed", new LineStyle(new GeoPen(GeoColor.FromHtml("#d13135"), 3))));
roadsLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(valueStyle);
roadsLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
If I change the ValueStyle
to a LineStyle
, all tiles are rendered correctly:
roadsLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = new LineStyle(new GeoPen(GeoColor.FromHtml("#5181b2"), 3));
I CPU profile shows the majority of CPU time (97%) is spent on MapSuite.WebApi.Overlay::Draw
.
Do you have any idea where the problem may be?
Thanks!