                // mapView.showAnnotations([mapObject as GeoBaseEntityPointAnnotation], animated: true)
 
             }
-            else if (mapObject is MKPolyline){
-                mapView.addOverlay(mapObject as MKPolyline);
+            else if (mapObject is GeoBaseEntityStyledMkPolylineAnnotation){
+                mapView.addOverlay(mapObject as GeoBaseEntityStyledMkPolylineAnnotation);
+                mapView.addAnnotation(mapObject as GeoBaseEntityStyledMkPolylineAnnotation);
+
             }
             
         }

}

class GeoBaseEntityStyledMkPolylineAnnotation:MKPolyline{
    var geoBaseEntity: GeoBaseEntity

    override init() {

            if (mapObject is GeoBaseEntityPointAnnotation){
                mapView.removeAnnotation(mapObject as MKAnnotation);
            }
            else if (mapObject is GeoBaseEntityStyledMkPolylineAnnotation){
                mapView.removeOverlay(mapObject as GeoBaseEntityStyledMkPolylineAnnotation);
            }
        }
    }
