 	
 	@IBAction func showMap(_ sender: UIBarButtonItem) {
 	
-		mapPanelViewController.modalPresentationStyle = .popover
+		mapPanelVC.modalPresentationStyle = .popover
 		
-		mapPanelViewController.popoverPresentationController?.barButtonItem = sender
+		mapPanelVC.popoverPresentationController?.barButtonItem = sender
 		
-		present(mapPanelViewController, animated: true, completion: nil)
+		present(mapPanelVC, animated: true, completion: nil)
 		
 	}
 	
 	@IBAction func showTextViewPanel(_ sender: UIBarButtonItem) {
 	
-		textPanelViewController.modalPresentationStyle = .popover
+		textPanelVC.modalPresentationStyle = .popover
 		
-		textPanelViewController.popoverPresentationController?.barButtonItem = sender
+		textPanelVC.popoverPresentationController?.barButtonItem = sender
 		
-		present(textPanelViewController, animated: true, completion: nil)
+		present(textPanelVC, animated: true, completion: nil)
 		
 	}
 

	var panelPinnedPreviewView: UIView?
	
	var panels: [PanelViewController?] {
		return [mapPanelViewController, textPanelViewController]
	}
	
	var allowFloatingPanels: Bool {

	override func viewDidLoad() {
		super.viewDidLoad()
		
		mapPanelContentVC = storyboard?.instantiateViewController(withIdentifier: "MapPanelContentViewController") as! MapPanelContentViewController
		
		mapPanelVC = PanelViewController(with: mapPanelContentVC, in: self)
		
		
		textPanelContentVC = storyboard?.instantiateViewController(withIdentifier: "TextPanelContentViewController") as! TextPanelContentViewController
		
		textPanelVC = PanelViewController(with: textPanelContentVC, in: self)
		
	}
	
