Hi,
I'm using Virtual Earth maps inside a Winforms application. My C# application, everytime that receives a new lat/long position, writes dinamically a HTML file in the user's "temp" directory. This HTML file containing the map specification is loaded into a webBrowser control. Untill today, I have no problems with Virtual Earth V4 API. I could draw pushpins with custom icons without problems; the HTML file was in user's "temp" directory and images referenced in the pushpins were located in another path on disk.
Today started upgrading application to V5. I've seen that now pushpins and polygons must be added like shapes. Then I was trying to show a simple pushpin with setCustomIcon method. I read from the documentation that:
"If the customIcon field is a string that begins with the < character, it is considered to be HTML, and it is used to create the pushpin icon. All other strings are treated as URLs to an image. If the URL is invalid or doesn't point to an image, then nothing will be displayed for the pushpin icon."
I used to do this with Virtual Earth V4:
Code Block
AddPin(40.405305,-3.68926,'C:\\image.gif', 'MADRID','Mostoles');
Code Block
shape.setCustomIcon("C:\\image.gif");
I hope somebody can give me a quick solution.
Thanks very much.