JXJ


I'm trying to display a map on a SharePoint web part page, using VE in conjunction with the Data View Web Part.

I mocked up the HTML/Javascript in a non-SharePoint page and it works fine there.

But when I reproduce it in the web part page, it displays the map with all of the pushpins (shapes), but mousing over the shapes does not display the popup window ("cloud") with the description information.

As I mouseover the shape, I see a small animated line of green dots display under the mouse pointer, but it animates across then leaves one green dot displayed and stops - no popup information.

I attached an event to the shape using OnMouseOverCallback and displayed the event data in the the callback using a Javascript alert() function, and it does display the description data I gave it when the shape was created, so it seems to know there is a description available.

I thought perhaps there was something in SharePoint that was overriding the onmouseover event, but if that is the case I am suprised I also see the animated green dots when I hover - I thought nothing would happen if the default event got lost.

Any ideas about what might be causing it to not display the "cloud"

Since I do get a mouseover event if I attach an event, is there a way to call the default code to pop up the built-in "cloud"




Re: Pushpin popup not displaying on mouseover

Let's Go Outside


Is this in 2D or 3D mode I'm assuming 2D with the green dots and all.




Re: Pushpin popup not displaying on mouseover

Derek Chan

I've been able to throw up VE maps on SharePoint 2007 web parts with no issues, as there's nothing sharepoint generated that interferes with it. Can you rip out the code that displays the VE portion and post it up





Re: Pushpin popup not displaying on mouseover

JXJ

First reply: yes, 2d mode

Second reply: I have found some additional information. This page has three other Data View web parts on it that display above the Data View web part that has the VE map. One of the web parts is fairly long heightwise. Nothing excessive, but requires the browser window to be scrolled down to get to the map.

Using the IE Developer Bar, I discovered that the popup infobox actually *is* displaying - except that it is displaying up near the top of the page! It is displaying in a section of the page that is not visible (not even part of the web part that has the map) unless you scroll up to see it.

I also found that if I delete or even just minimize the long web part so that the map is on the screen without having to scroll the browser window, I then see the infoboxes pop up in the correct positions.

So it appears to be related to where the map is displaying. I will do a few other tests and if I do not come up with a solution, I will post the code to illustrate.

Any idea on why the infobox pop up would display outside of the map div The div I am using is fairly simple:

Code Snippet

<div id='myMap' style="position:relative; width:600px; height:400px;"></div>





Re: Pushpin popup not displaying on mouseover

Derrick

Try putting the following at the top of your page to see if it solves the problem.

Code Snippet

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

</P< A>





Re: Pushpin popup not displaying on mouseover

JXJ

I ended up getting this to work properly, although I am not 100% sure which thing I did made it work.

I put the div for the map inside its own table and moved the script tag to load the mapcontrol.ashx below the div (which shouldn't matter). I wish I could put my finger on exactly what change made it work, but I don't have time now to go back and pull it apart.

BTW, I was not able to put the DOCTYPE tag into the document. This is a page in a SharePoint site and it is using a master page. If I try putting the DOCTYPE tag at the very top of the page using SharePoint Designer, SharePoint then complains with the error "Only Content controls are allowed directly in a content page that contains Content controls.".

I can put it in the HEAD section, but then (I think) it is too late - it has to be before the HTML tag. And I don't think I can do that with this type of page.





Re: Pushpin popup not displaying on mouseover

TB2

Please help!

I got the same problem with the popup that contains the title and description for the pushpin in my MOSS web page as posted by JXJ.

The popup is still displayed out side of the Virtual Earth map even when I put the div for the map inside its own table and moved the script tag to load the mapcontrol.ashx below the div.

I use VE version 6 in MOSS 2007.

Thanks.





Re: Pushpin popup not displaying on mouseover

Derek Chan

Hi,

There has been quite a few threads discussing this bug here:

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

In short, this occurs if there is a huge gap (eg: 800 pixels) inbetween the VE map and the top of the page. I've seen a VE web part able to show pushpin pop-ups properly because it was near the top, it may just be easier to do that.

Regards,






Re: Pushpin popup not displaying on mouseover

TB2

Thank you very much for the info.





Re: Pushpin popup not displaying on mouseover

Derrick (MSFT)

Have you tried adding

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> to your page

This does solves alot of the positioning problems.





Re: Pushpin popup not displaying on mouseover

TB2

I cannot use the <!DOCTYPE... statement because I'm displaying VE map within MOSS 2007 data view web part.

If there is a way to do it, please explain.

Thanks





Re: Pushpin popup not displaying on mouseover

SoulSolutions

I know its not always the best solution but if all else fails you can always host the VE control in an Iframe. It has solved countless issues inside portals for me.

John.