screencast.com/t/t4ZH297e
How do i re-order the layers, i tried drawing level but it doesnt work :(
screencast.com/t/t4ZH297e
How do i re-order the layers, i tried drawing level but it doesnt work :(
Hello Gregory,
Thanks for your post, I want to know what’s the yellow circle, an overlay or a layer? Could you please provide me some code or sample?
Regards,
Gary
Dim SitePointLayer As InMemoryFeatureLayer = New InMemoryFeatureLayer()
SitePointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.CreateSimplePointStyle(PointSymbolType.Star, GeoColor.FromArgb(200, GeoColor.StandardColors.Red), 25)
SitePointLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(150, GeoColor.StandardColors.Yellow), GeoColor.StandardColors.Red)
SitePointLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle.DrawingLevel = DrawingLevel.LevelOne
SitePointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.DrawingLevel = DrawingLevel.LevelOne
SitePointLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
SitePointLayer.InternalFeatures.Add(mySitePointFeature)
Dim dynamicOverlayUserSite As New LayerOverlay(OverLayKey)
dynamicOverlayUserSite.IsBaseOverlay = False
dynamicOverlayUserSite.Layers.Add(OverLayKey, SitePointLayer)
SelectedMap.CustomOverlays.Add(dynamicOverlayUserSite)
SelectedMap.CurrentExtent = dynamicOverlayUserSite.GetBoundingBox()
SelectedMap.RestrictedExtent = SelectedMap.CurrentExtent
Dim myCurrentScale As Double = SelectedMap.CurrentScale
Hello ?
Gregory,
Looking at your screeshot I understand what you are trying to do though the code is a bit confusing. Let me give you a high level on this and I hope you can apply it to your code.
First overlays draw on separate images that get composed together. This means that there is no way for one part of an overlay to get above another overlay if it is on the bottom. I just wanted to throw that out there even though I do not think this is your problem. Going a bit deeper the higher the drawing level the higher up the item is. For example a drawing level 4 polygon would cover up a drawing level 3 polygon. For labels they use a special label level which is higher than all the other levels.
In the sample above I was a bit confused as you set the area and point style to level one they one does not take presidence over the other. I would put the circle at the lowest level and then put the points at a higher level. As long as they are all on the same overlay the drawing level should be respected. If you still have issues we can create a small sample with test data to demonstrates how this works.
David