HI
i have plotted GIF files using mapshapelayer method. I want hover to each individual icon on the map with different info retrieving from the database. i am pasting the code in which i am retrieving GIF from the database on the map. Kindly add hover method ..thanks
Dim mapshapelayer As New MapShapeLayer
Dim mapshape1 As New MapShape
Dim dt As New DataTable
Dim i As Integer
Dim path As String
dt = getTable("select * from Units")
If dt.Rows.Count <> 0 Then
For i = 0 To dt.Rows.Count - 1
path = "Images/primary_symbols/" & dt.Rows(i).Item("Symbol”)
mapshape1 = New MapShape(New Feature(CDbl(dt.rows(i).item(“Longitude”)), CDbl(dt.rows(i).item(“Latitude”))))
mapshape1.ZoomLevels.ZoomLevel01.DefaultPointStyle = New PointStyle(New GeoImage(MapPath(path)))
mapshape1.ZoomLevels.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
mapshapelayer.MapShapes.Add(i, mapshape1)
Next
End If
Dim staticOverlay As New LayerOverlay("IconOverlay")
staticOverlay.IsBaseOverlay = False
staticOverlay.Layers.Add("IconShapeLayer", mapshapelayer)
Map1.CustomOverlays.Add(staticOverlay)