markers icon change problem

I would like to modify icon file, But not modified.

Is there any way?

--------------------------------------------------------------------------------



     TMarker * mk ;

     mk = WebGMaps1 -> Markers -> Items [ 2 ];



     UnicodeString icon ;

     icon = mk -> Icon ;

     icon = "C:\E2M3\ComponentTest\googlemap\pink_blank.png" ;

     icon = PrepareIconString ( icon ) ;



     mk -> Icon = icon ;

     mk -> Title = "zzzzzzz" ;

     mk -> Latitude = 38 ;

     mk -> Longitude = 127 ;

     mk -> Icon = icon ;

Try setting icon URL with a valid specifier prefix, i.e.  file://


file://C:...

AnsiString __fastcall TForm1::PrepareIconString(AnsiString pString)

{

     if ( pString.Pos ( "://" ) == 0 ) // no protocol specifier found

          pString = "file://" + pString;



     pString = StringReplace ( pString, "\", "/",TReplaceFlags()<< rfReplaceAll << rfIgnoreCase );

     return pString ;

}



same problem....

Hi,

Can you please make sure the result of PrepareIconString is correct and the file is available in that location?
The string reference to the image file should look like this:
'file://C:/E2M3/ComponentTest/googlemap/pink_blank.png'