                 else if (geom is WKTLine) {
                     let line=geom as WKTLine;
                     let temp=self;
-                    mapObject=GeoBaseEntityStyledMkPolylineAnnotation(line: line)
+                    mapObject=GeoBaseEntityStyledMkPolylineAnnotation(line: line, geoBaseEntity: self)
                     (mapObject as GeoBaseEntityStyledMkPolylineAnnotation).geoBaseEntity=self
                 }
             }

}

class GeoBaseEntityStyledMkPolylineAnnotation:MKPolyline{
    var geoBaseEntity: GeoBaseEntity

    override init() {

               // mapView.showAnnotations([mapObject as GeoBaseEntityPointAnnotation], animated: true)

            }
            else if (mapObject is GeoBaseEntityStyledMkPolylineAnnotation){
                mapView.addOverlay(mapObject as GeoBaseEntityStyledMkPolylineAnnotation);
                mapView.addAnnotation(mapObject as GeoBaseEntityStyledMkPolylineAnnotation);

            }
            
        }
