I am trying to add different colored markers to my map based on different properties of each shape (properties stored in a separate database). I tried using multipe InMemoryMarkerOverlays but only the last overlay is visible. They apparently cover up the previously added overlay. Any way to prevent this from happening? Here is the creation code of one of the Overlays:
m_markerOverlayForeclosures = New ThinkGeo.MapSuite.DesktopEdition.InMemoryMarkerOverlay()
With m_markerOverlayForeclosures
.MapControl = WinformsMap1
.Columns.Add(New FeatureSourceColumn("APN"))
.Columns.Add(New FeatureSourceColumn("SaleDate"))
.Columns.Add(New FeatureSourceColumn("OpeningBid"))
.Columns.Add(New FeatureSourceColumn("EstValue"))
With .ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle
.Image = New System.Drawing.Bitmap(".\images\MapMarkerGreen.gif")
.Width = 20
.Height = 20
.YOffset = -10
.XOffset = -10
.ToolTipText = String.Format("APN: [#APN#]{0}SaleDate: [#SaleDate#]{0}OpeningBid: [#OpeningBid#]{0}EstValue: [#EstValue#]", vbCrLf)
End With
.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
End With
WinformsMap1.Overlays.Add("MarkerOverlayForeclosure", m_markerOverlayForeclosures)
Any help would be appreciated.