fwcetus


Is LoadMap() showSwitch working properly in VE6 (Or am I just dumb... )
I tried setting showSwitch to false and also to 0, and the "3D" option on the dashboard still seems to show (and to function).
Since I was finding this in one of my own VE5-to-VE6 conversions, I tried out the copy-and-paste sample given on the LoadMap() page ( http://msdn2.microsoft.com/en-us/library/bb412546.aspx ), which uses checkboxes to test out a lot of the parameters interactively, but I found that unchecking the "Show Switch" checkbox (and reloading the map) seemed to have no effect on hiding the "3D" option on the dashboard.
That's a pretty spiffy dashboard in VE6, by the way... (<g>)
Fred




Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

SoulSolutions


No your spot on Fred it looks like a bug. Here is a snippet that should have disabled 3D but does not:

Code Block

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html'>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
'>http://www.w3.org/1999/xhtml">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/mapcontrol.ashx v=6"></script>
<script type="text/javascript">
var map = null;

function GetMap()
{
map = new VEMap('myMap');
map.LoadMap(new VELatLong(0,0), 10, VEMapStyle.Road, false, VEMapMode.Mode2D, false, 1);
}
</script>
</head>
<body onload="GetMap();">
<div id='myMap' style="position:relative; width:500px; height:400px;"></div>
</body>
</html>

One thing to note that all it ever did in V5 was to hide the 3D button, the user could still press the "3" key on their keyboard and play with 3D mode.

John.







Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

> No your spot on Fred it looks like a bug. Here is a snippet that should have disabled 3D but does not:
Thanks for that confirmation. So, it's ~not~ me, then. (I may still be a code klutz, but at least it's not "just me" - <g>.)
> One thing to note that all it ever did in V5 was to hide the 3D button,
> the user could still press the "3" key on their keyboard and play with 3D mode.
That's interesting - I didn't know that. It's still useful (for me, anyways) to be able to hide the "3D" button, though.
Thanks again.
Fred






Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

How does one "officially" submit a bug report, then Is just mention of a bug here in this forum enough Or... (Please excuse my ignorance.)
Thanks.
Fred





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

Richard_Brundritt

There are couple of different ways to report bugs.

1) Paying customers have a support email that they can use to get technical support and submit bugs.

2) There are several Microsoft people and developers who can report the bug for you who view these forms regularly.

3) On the maps.live.com and local.live.com site there is a feedback button that takes you to a form. You can submit a bug through there.

If this bug is not submitted by Monday I'll submit from work.





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

> If this bug is not submitted by Monday I'll submit from work.
Thank you, Richard.
Fred





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

Richard_Brundritt

This bug has been reported.





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

Great! Thanks, Richard. :-)





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

I see that this is mentioned (along with graphics to demonstrate the problem) at http://pietschsoft.com/Blog/Post.aspx PostID=1412





Re: VE6 LoadMap() showSwitch Bug, or is it just me...?

fwcetus

Good news !!! - this has been fixed in the latest V6 update. :-)