If MapName.Length <> 0 Then 'display the last viewed map
bm = xui.LoadBitmap(File.DirAssets,MapName)
ZoomImageView1.SetBitmap(bm)
ZoomImageView1.pnlBackground.Top = KVS.Get("PanelBGtop")
ZoomImageView1.pnlBackground.Height = KVS.Get("PanelBGheight")
ZoomImageView1.pnlBackground.Left = KVS.Get("PanelBGleft")
ZoomImageView1.pnlBackground.Width = KVS.Get("PanelBGwidth")
ZoomImageView1.ImageView.Top = KVS.Get("ImageTop")
ZoomImageView1.ImageView.Height = KVS.Get("ImageHeight")
ZoomImageView1.ImageView.Left = KVS.Get("ImageLeft")
ZoomImageView1.ImageView.Width = KVS.Get("ImageWidth")
ZoomImageView1.mBase.Visible = True
End If