             anView.rightCalloutAccessoryView=UIButton.buttonWithType(UIButtonType.DetailDisclosure) as UIView;
             anView.leftCalloutAccessoryView=UIImageView(image: UIImage(named: gbePA.callOutLeftImageName));
             return anView
-        }
+        } else if (annotation is GeoBaseEntityStyledMkPolylineAnnotation){
+            let gbeSMKPA=annotation as GeoBaseEntityStyledMkPolylineAnnotation;
+            let reuseId = "belisAnnotation"
+            var anView = mapView.dequeueReusableAnnotationViewWithIdentifier(reuseId)
+            if anView == nil {
+                anView = MKAnnotationView(annotation: gbeSMKPA, reuseIdentifier: reuseId)
+                
+            }
+            else {
+                anView.annotation = gbeSMKPA
+            }
+            
+            //Set annotation-specific properties **AFTER**
+            //the view is dequeued or created...
+            anView.image = UIImage(named: gbeSMKPA.imageName);
+            anView.canShowCallout = gbeSMKPA.shouldShowCallout;
+            return anView
+            
+        }
+        
         return nil;
-      }
+    }
     
     
     func mapView(mapView: MKMapView!, didChangeUserTrackingMode mode: MKUserTrackingMode, animated: Bool) {

        }
    }
    
//    func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
//       
//    }
//    
//    func tableView(tableView: UITableView!, editActionsForRowAtIndexPath indexPath: NSIndexPath!) -> [AnyObject]! {
//        
//    }

    
    // CLLocationManagerDelegate
    func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) {
//        println("locations = \(locations)");
    }
    
    

    }
    
    @IBAction func lookUpButtonTabbed(sender: AnyObject) {
        //        if tableView.hidden {
        //            tableView.hidden = false;
        //        }
        //        else {
        //            tableView.hidden = true;
        //        }
        
        //        tableView.selectRowAtIndexPath(NSIndexPath(forRow: 1, inSection: 2), animated: true,scrollPosition: UITableViewScrollPosition.Middle);
        //        tableView(tableView, didSelectRowAtIndexPath: NSIndexPath(forRow: 1, inSection: 2));
        
    }
    
    @IBAction func focusItemTabbed(sender: AnyObject) {
        focusToggle.setOn(!focusToggle.on, animated: true)
    }
    
