I have the following code to show features with diferent images according with its ID value:
Dim
pointsLayer As New
InMemoryFeatureLayer
Dim style As New ValueStyle
style .ColumnName =
For Each row In ds.Tables("IDS"
).Rows
Dim subStyle As New
PointStyle
subStyle .PointType = PointType.Bitmap
subStyle .Image = New GeoImage(Imagenes(row(0).ToString)) 'this function (images(string)) returns the path for the image(.bmp)
New
ValueItem(row(0).ToStrin, subStyle ))
Next
pointsLayer .ZoomLevelSet.ZoomLevel01.CustomStyles.Add(estilo)
pointsLayer .ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
pointsLayer .IsVisible =
True
winformsMap1.StaticOverlay.Layers.Add(
"pointsLayer"
, pointsLayer ) I've test if the problem cames from the image but it works perfectly in other enviroment (a picturebox for example or in a simple style with image).
I f anybody knows how to make it works I'll be really t
style .ValueItems.Add(
"ID"