                         foundPoint = pointAnnotation
                         println("foundPoint")
                         selectOnMap(foundPoint?.getGeoBaseEntity())
+                        selectInTable(foundPoint?.getGeoBaseEntity())
                         break
                     }
                 }

                
                if let hitPolyline = foundPolyline {
                    selectOnMap(hitPolyline.getGeoBaseEntity())
                    println("selected Line with \(hitPolyline.pointCount) points")
                }
                else {

                mapView.addOverlay(line); //bring the highlightedLine below the line
                
            }
        } else {
            selectedAnnotation=nil
        }
    }


    func selectInTable(geoBaseEntityToSelect : GeoBaseEntity?){
        if let geoBaseEntity = geoBaseEntityToSelect?{
            var kindOfGeoBaseEntity = 0;
            if geoBaseEntity is Leuchte {
                kindOfGeoBaseEntity=LEUCHTEN
