newpop1


Hello, I migrated from v3 to v5 and when the map loads, there is a pop up that says "See this location in Virtual Earth", floats for about 3 seconds and then goes away. It is annoying so I would like to know how to get rid of. Is it a special call when the map loads or where

Thanks




Re: How do I get rid of: See this location in Virtual Earth popup?

Derek Chan


The only way I see of doing this is to make a call to map.HideDashboard because that notification is linked up to the dashboard whenever a map.load call is made. If you do this then you'll need to create your own dashboard.

From what I can tell this is being generated in a method called Msn.VE.NavAction which generates all the controls (and is quite massive) so you'd likely have to override this entire method to prevent that notification from being generated in the first place. Hopefully this is something we can ask Microsoft to allow us to remove in the next VE release.

Hope that helps,







Re: How do I get rid of: See this location in Virtual Earth popup?

newpop1

I guess 1 question, does this appear to anyone using the v5 and v4 of the mapping control or just me Just making sure it is not just meSmile

I added 2 buttons, 1 to show the dashboard and 1 to hide the dashboard, it will load hidden and then user can click on show to see it I guess. But I do not like that pop up thing appearing to the right of the dashboard and we can't get rid of it.

Thanks







Re: How do I get rid of: See this location in Virtual Earth popup?

Jared H

One option is to set the showSwitch (map mode) param to false when you call the LoadMap constructor. That will dump the popup. I agree it's not optimal to have to provide your own swtich control implementation for the 3D mode, but I've found this addresses that if your end user group doesn't need the immediate invitation to swtich into 3D

VEMap.LoadMap(VELatLong, zoom, style, fixed, mode, showSwitch);





Re: How do I get rid of: See this location in Virtual Earth popup?

newpop1

Hello, I tried the example you sent and it does get rid of the top part 2D,3D, but it still shows the baloon to switch to 3D.....Sad





Re: How do I get rid of: See this location in Virtual Earth popup?

Jared H

That is strange then -- I am using the first constructor example, and no special css overrides, and I do not get the "see this in virtual earth 3D" balloon:

Code Snippet

map.LoadMap(startLatLong,startZoom,'r',false,VEMapMode.Mode2D,false);

The following two methods do produce the balloon, however...

Code Snippet

map.LoadMap(null,null,null,null,null,null);

or

map.LoadMap();