Very New Here
I have created a pointlayer with a collection of valuestyles called OILSStyles
OILSStyle.ColumnName = "OIL"
rdgicon = New PointStyle(New GeoImage(icopath & "ur_ly_c.ico"))
rdgicon.PointType = PointType.Bitmap
OILSStyle.ValueItems.Add(New ValueItem("ur_lyc", rdgicon)) ' Creates the new style.
rdgicon = New PointStyle(New GeoImage(icopath & "ur_lg_c.ico"))
rdgicon.PointType = PointType.Bitmap
OILSStyle.ValueItems.Add(New ValueItem("ur_lgc", rdgicon)) ' Creates the new style.
pointLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(OILSStyle)
pointLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
pointLayer.Open()
pointLayer.Columns.Add(New FeatureSourceColumn("OIL"))
pointLayer.Columns.Add(New FeatureSourceColumn("BOXID"))
pointLayer.Columns.Add(New FeatureSourceColumn("Lat"))
pointLayer.Columns.Add(New FeatureSourceColumn("Lon"))
pointLayer.Columns.Add(New FeatureSourceColumn("Time"))
pointLayer.Columns.Add(New FeatureSourceColumn("Rdg"))
pointLayer.Columns.Add(New FeatureSourceColumn("Rtyp"))
pointLayer.Columns.Add(New FeatureSourceColumn("Units"))
pointLayer.Close()
pointOverlay.Layers.Add("rdgLayer", pointLayer)
Form1.WinformsMap1.Overlays.Add("PointOverlay", pointOverlay)
Based on the OIL Value The map properly displays the correct Icon.
I would also Like to display a Label at each point with the Value of Rdg.
I am at a losss