I have an application with a tab for maps. It was working and it stopped working. I can't figure out the problem.
Side note: This code snippet works with the mapview added to an activity.
i.e Activity.AddView(Mview, 0, 0, 100%x, 100%y)
This is my code...
Sub AddMapTab
Dim tabIcon, tabIconselected As Bitmap
If File.ExternalWritable=False Then
' OSMDroid requires the use of external storage to cache tiles
' if no external storage is available then the MapView will display no tiles
Log("WARNING NO EXTERNAL STORAGE AVAILABLE")
End If
mView.Initialize("")
mView.SetZoomEnabled(True)
mView.SetMultiTouchEnabled(True)
mView.Zoom=12
mView.SetCenter(45.340633, -75.719283)
tabIcon = LoadBitmapSample(File.DirAssets, "map.png",TabWidth, TabHeight)
tabIconselected = LoadBitmapSample(File.DirAssets, "mapselected.png",TabWidth, TabHeight)
TabHost1.AddTabWithIcon2("", tabIcon, tabIconselected, mView)
End Sub
Side note: This code snippet works with the mapview added to an activity.
i.e Activity.AddView(Mview, 0, 0, 100%x, 100%y)
This is my code...
Sub AddMapTab
Dim tabIcon, tabIconselected As Bitmap
If File.ExternalWritable=False Then
' OSMDroid requires the use of external storage to cache tiles
' if no external storage is available then the MapView will display no tiles
Log("WARNING NO EXTERNAL STORAGE AVAILABLE")
End If
mView.Initialize("")
mView.SetZoomEnabled(True)
mView.SetMultiTouchEnabled(True)
mView.Zoom=12
mView.SetCenter(45.340633, -75.719283)
tabIcon = LoadBitmapSample(File.DirAssets, "map.png",TabWidth, TabHeight)
tabIconselected = LoadBitmapSample(File.DirAssets, "mapselected.png",TabWidth, TabHeight)
TabHost1.AddTabWithIcon2("", tabIcon, tabIconselected, mView)
End Sub