CIAndrew


Hello All,

Each pushpin I map has a custom image and that image shows up fine in 2D mode but is replaced with an orange thumbtack or something in 3D mode.

Has enyone seen this before is there a solution

TIA

Andrew




Re: Custom pushpin images not showing up in 3D mode

SoulSolutions


I have a vague memory there was a post about this.

Something to do with the format of your pin being 72dpi not 96dpi.

I would try a few different formats.

here it is:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=997175&SiteID=1

Looks like that was cropping.

What is the format of you image, it's not an animated GIF is it

John.







Re: Custom pushpin images not showing up in 3D mode

CIAndrew

Hey John,

I'm using plain old gif files. not animated in any way






Re: Custom pushpin images not showing up in 3D mode

Derek Chan

Can you provide us with a link to your gif as well as some sample code to duplicate this bug




Re: Custom pushpin images not showing up in 3D mode

CIAndrew

Hey,

Sorry I was away and didn't get a chance to reply.

This is easy to reproduce:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script>
<script type="text/javascript">
var map = null;

function GetMap() {
map = new VEMap('myMap');
map.LoadMap();
var pin = new VEPushpin('1',map.GetCenter(),'images/pin.gif', 'what is going on','here');
map.AddPushpin(pin);
}
</script></head>
<body onload="GetMap();">
<div id='myMap' style="position: relative; width: 800px; height: 600px;">
</div>
</body>
</html>

put this in a file and save to your desktop. then create a folder called 'images' on your desktop as well and put a gif there called pin.gif then view the file in IE and switch from 2D to 3D.

It's weird...

TIA

Andrew





Re: Custom pushpin images not showing up in 3D mode

Brian_Flood

FWIW, we are loading pins with custom image files and it works just fine in both 2D (transparent PNG issue in IE aside) and 3D mode. Maybe it's a graphics card issue

samples:

http://www.spatialdatalogic.com/sdl/public/images/TM_VE2D.png

http://www.spatialdatalogic.com/sdl/public/images/TM_VE3D.png






Re: Custom pushpin images not showing up in 3D mode

CIAndrew

Hey Brian,

Does the sample I posted above work for you

Andrew





Re: Custom pushpin images not showing up in 3D mode

Brian_Flood

got a live link to it maybe the 3D client (running in a restricted state) does not have access to the desktop folders...

cheers

brian






Re: Custom pushpin images not showing up in 3D mode

Duncan Lawler

You need to use a full path, not a relative path for your image URI.  The 3D control doesn't know the base URI to add to relative paths.  This should be documented in the SDK.

Also, the 3D control does not have access to any local files (security restriction).





Re: Custom pushpin images not showing up in 3D mode

CIAndrew

Thanks Brian and Duncan.

It looks like it is the security issue like you said.

I placed the files (htm and gif) on a web server and refernced them using http://... and all works well.

Thanks again for your help.

Andrew