const imgloc = 'http://geoget.ararat.cz/img/ge/'; var gc_type_last : string; function ExportExtension: string; begin result := 'KML'; end; function ExportDescription: string; begin result := 'Cache details (shorted) for iGO8 by Fractal&ATom'; end; function ExportHeader: string; begin Result :='' + CRLF + '' + CRLF + '' + CRLF + ' ' + CRLF + ' ' + CRLF + ' ' + CRLF + ' ' + CRLF; end; function ExportFooter: string; begin result := '' + CRLF + '' + CRLF + '' + CRLF; end; function ExportPoint: string; var mapIconStyle, bubbleicon, foundstatus, shinfo, status : string; begin bubbleicon:='blank.png'; foundstatus:='gc_notfound.png'; mapIconStyle:='mp_point'; shinfo:=''; status:=''; if gc_isfound then begin foundstatus:='gc_found.png'; mapIconStyle:='mp_found'; status:= status + 'F'; end; if gc_isowner then begin mapIconStyle:='mp_own'; status:= status + 'O'; end; if gc_isdisabled then begin mapIconStyle:='mp_disabled'; status:= '!' + status; end; if (gc_type = 'Multi Cache') then gc_type := 'Multi-cache'; if gc_type='Traditional Cache' then bubbleicon:=imgloc+'gc_traditional.gif'; if gc_type='Multi-cache' then bubbleicon:=imgloc+'gc_multi.gif'; if gc_type='Unknown Cache' then bubbleicon:=imgloc+'gc_unknown.gif'; if gc_type='Webcam Cache' then bubbleicon:=imgloc+'gc_webcam.gif'; if gc_type='Event Cache' then bubbleicon:=imgloc+'gc_event.gif'; if gc_type='Letterbox Hybrid' then bubbleicon:=imgloc+'gc_letter.gif'; if gc_type='Earthcache' then bubbleicon:=imgloc+'gc_earthcache.gif'; if gc_type='Virtual Cache' then bubbleicon:=imgloc+'gc_virtual.gif'; shinfo:= Uppercase(copy(gc_type,1,1)) + Uppercase(copy(GC_SIZE,1,1)) + GC_DIFFICULTY + '/' + GC_TERRAIN; if (gc_type_last <> gc_type) then begin if (gc_type_last<>'') then Result := Result + '' + CRLF; Result := Result + '' + CRLF + ' ' + gc_type + '' + CRLF gc_type_last := gc_type; end; GC_TYPE := Trim(ReplaceString(ReplaceString(ReplaceString(GC_TYPE,'Cache',''),'cache',''),'-','')); Result := Result + ' ' + CRLF + ' ' + CDATA(status + ' ' + GC_FullName + ' [' + shinfo + ']') + '' + CRLF + ' ' + CDATA('
ID: ' + GC_ID + '' + ',
' + 'H: ' + Reverse(GC_HINT) + ',
' + 'A: ' + GC_AUTHOR + ',
' + 'U: ' + DateToStr(GC_Updated) + ',
' + 'T/S: ' + GC_TYPE + '/' + GC_SIZE + ',
' + 'D/T: ' + GC_DIFFICULTY + '/' + GC_TERRAIN + '
'); Result := Result + '
' + CRLF + ' #' + mapIconStyle + '' + CRLF + ' ' + CRLF + ' ' + GC_Lon + ',' + GC_Lat + ',0' + CRLF + ' ' + CRLF + '
' + CRLF; end; function ExportAfter(value: string): string; begin // RunShell(value); end;