I have a map control inside a web user control. The web control is then placed on a main page inside an UpdatePanel. The web control is not shown until the user clicks on the map tab, which then shows the control containing the map.
The user can then add markers for geocoded locations to the map. I plot the locations code similar to the following:
mrkLayer = New InMemoryMarkerOverlay("markerlayer")
mrkLayer.FeatureSource.Open()
mrkLayer.Columns.Add(New FeatureSourceColumn("ADDRESS"))
mrkLayer.FeatureSource.Close()
mrkLayer.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.WebImage = New WebImage("theme/default/img/marker.gif")
mrkLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20
mrkLayer.ZoomLevelSet.ZoomLevel01.DefaultMarkerStyle.Popup.ContentHtml = "[#ADDRESS#]"
' Set the correct projection (Decimal Degrees to Google’s)
Dim proj4 As New Proj4Projection(Proj4Projection.GetEpsgParametersString(4326), Proj4Projection.GetGoogleMapParametersString())
mrkLayer.FeatureSource.Projection = proj4
ctlMap.CustomOverlays.Add(mrkLayer)
ctlMap.CustomOverlays("markerlayer").IsVisible = True
mrkLayer = DirectCast(ctlMap.CustomOverlays(MARKERLAYERNAME), InMemoryMarkerOverlay)
mrkLayer.Features.Add("L1", _
New Feature(point.Longitude, point.Latitude, "L1", _
New String() {"ADDRESS:" & street.Trim() & "
" & city.Trim() & "
" & state.Trim()}))
...which places the marker just fine.
The issue occurs when I attempt to export this to a bitmap. All my layers are exported...except the marker layer. Is this because I'm using an InMemoryMarkerLayer.
The attached file gives an example of this phenomenon in action.
Thanks in advance,
Bob Mc.
ThinkGeo_Marker_Export_Example.zip (133 KB)