Hello,
We're still trying to get some basic maps showing in our application. I frequently come up against an issue (caused by me) where layers stop rendering and all that is displayed is a big white box.
Can you give some pointers on what would prevent a layer from being drawn? Just some troubleshooting tips would be great.
As an example, here's the code I'm using right now to add two layers, but neither are being drawn. I've tried to roll it back to basic styles, but I still get the white box.
For Each layerFile As LayerDataFile In layerFiles
Dim l = New ShapeFileFeatureLayer(Path.Combine(layerFiles.BasePath, layerFile.Path))
l.Name = layerFile.Name
l.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Water1
'l.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.InternationalBorder1
l.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
'For Each lzl As LayerZoomLevel In layerFile.ZoomLevels
' Dim z = GetZoomLevel(l, lzl.FromLevel)
' z.DefaultAreaStyle = AreaStyles.Water1
' 'ApplyLineStyle(z, lzl.LineStyleConfiguration)
' 'ApplyAreaStyle(z, lzl.AreaStyleConfiguration)
' z.ApplyUntilZoomLevel = lzl.ToLevel
'Next
Me.StaticOverlay.Layers.Add(layerFile.Name, l)
Next
Thanks!
pk