Hi Yale !
The projection that I m using
proj.InternalProjectionParameters = ManagedProj4Projection.GetEpsgParameters(4326) 'WGS84
proj.ExternalProjectionParameters = ManagedProj4Projection.GetEpsgParameters(32638) 'UTM zone 38N
This works fine when I display single icon using following code
Dim inMemoryFeatureLayer As New InMemoryFeatureLayer()
inMemoryFeatureLayer.FeatureSource.Projection = proj
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.Image = New GeoImage("..\..\Images\sedan.png")
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.RotationAngle = 360
inMemoryFeatureLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
inMemoryFeatureLayer.InternalFeatures.Add("Car", New Feature(New PointShape(47.3677, 29.3901)))
Dim car_overlay As New LayerOverlay()
car_overlay.Layers.Add("CarOverlay", inMemoryFeatureLayer)
winformsMap1.Overlays.Add(car_overlay)
After I made change to display multiple icons as u suggested still showing nothing
Dim dt As New DataTable
Dim i As Integer
Dim valueStyle As New ValueStyle
Dim pointLayer As New InMemoryFeatureLayer()
ValueStyle.ColumnName = "Type"
dt = getTable("select * from Units", "")
pointLayer.FeatureSource.Projection = proj
pointLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle.PointType = PointType.Bitmap
For i = 0 To dt.Rows.Count - 1
Dim UnitPointStyle As New PointStyle(New GeoImage("..\..\Images\primary_symbols\" & dt.Rows(i).Item("Symbol_name")))
Dim Coordinates As New Feature(New PointShape(dt.Rows(i).Item("Longitude"), dt.Rows(i).Item("Latitude")))
valueStyle.ValueItems.Add(New ValueItem("Units", UnitPointStyle))
pointLayer.InternalFeatures.Add(Coordinates)
Next
pointLayer.ZoomLevelSet.ZoomLevel01.CustomStyles.Add(valueStyle)
pointLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Dim UnitOverlay As New LayerOverlay()
UnitOverlay.Layers.Add("UnitOverlay", pointLayer)
winformsMap1.Overlays.Add(UnitOverlay)
Regards,
Zeeshan