Have a program that places a graphic of a bus on a map based on the lan and lon, The feature overide is y (lon), x (lat), and the vehicle number is the feature ID. I need that vehicle number to appear by the marker image (the bus). I’ve looked at several examples and nothing seems to be working. Here’s a small snippet of the code that adds the vehicle location and the marker overlay.
'Add vehicle location to feature layer
Frm_DispatchMap.DispMapInmemoryFeatureLayer.InternalFeatures.Add(New Feature(lon, lat, veh))
'Active Vehicle Overlay
Frm_DispatchMap.DispMapMarkerOverlay.FeatureSource = Frm_DispatchMap.DispMapInmemoryFeatureLayer.FeatureSource
'Zoom to OverLay
Frm_DispatchMap.DispMapMarkerOverlay.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.Image = My.Resources.Bus_13x16
Frm_DispatchMap.DispMapMarkerOverlay.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.Height = 16
Frm_DispatchMap.DispMapMarkerOverlay.ZoomLevelSet.ZoomLevel01.DefaultPointMarkerStyle.Width = 16
Frm_DispatchMap.DispMapMarkerOverlay.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
Frm_DispatchMap.DispMapMarkerOverlay.MapControl = Frm_DispatchMap.Map_DispatchMap
Frm_DispatchMap.Map_DispatchMap.Overlays.Add(Frm_DispatchMap.DispMapMarkerOverlay)