Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6910749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:51:17+00:00 2026-05-27T08:51:17+00:00

I got this code which works 100% correctly using the Bing Maps Api V6.1

  • 0

I got this code which works 100% correctly using the Bing Maps Api V6.1
But i wan’t to use it using the newest api version(7.0) I do really need help to convert it. So if anyone have any tips of where im going to start or maybe you got an link with an tutorial. Thanks.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head> <title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
ul, li {margin:0;padding:0;}

ul.pmenu
{
    display: none;
    position:absolute;
    margin: 0;
    padding: 1px;
    list-style: none;
    width: 150px; /* Width of Menu Items */
    border: 1px solid #ccc;
    background: #235087;
    z-index:10;
}

ul.pmenu li { position: relative; }

ul.pmenu li a
{
    display: block;
    text-decoration: none;
    color: White;
    padding: 2px 5px 2px 20px;
}

ul.pmenu li a:hover
{
    background:#335EA8;
    color:white;
}
</style>
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"></script>
<script type="text/javascript">
var map = null;
function GetMap() {
    map = new VEMap('myMap');
    map.LoadMap();
    map.AttachEvent("onclick", ShowPopupMenu);
}
function ShowPopupMenu(e) {
if (!e.rightMouseButton) {
    RemovePopupMenu();
    return;
}

var menu = document.getElementById('popupmenu');

menu.style.display = 'block'; //Showing the menu
menu.style.left = e.clientX + "px"; //Positioning the menu
menu.style.top = e.clientY + "px";
}

function RemovePopupMenu() {
document.getElementById("popupmenu").style.display = 'none';
} 
</script>
</head>
<body onload="GetMap();">
<div id="menu">
    <ul id="popupmenu" class="pmenu">
        <li><a href="#" onclick='RemovePopupMenu(); alert("First");'>First</a></li>
        <li><a href="#" onclick='RemovePopupMenu(); alert("Second");'>Second</a></li>
        <li><a href="#" onclick='RemovePopupMenu();'>Exit</a></li>
    </ul>
</div>
 <div id='myMap' style="position:relative; width:1000px; height:800px;"></div>
 </body>
 </html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T08:51:17+00:00Added an answer on May 27, 2026 at 8:51 am

    You can try look at : http://msdn.microsoft.com/en-us/library/gg427624.aspx

    I made up a little fiddle: http://jsfiddle.net/IrvinDominin/nPPqV/1/

    But now I’ve got a credential error, because I don’t have a dev account on MS.

    EDIT:
    

    new working version http://jsfiddle.net/IrvinDominin/nPPqV/4/

    EDIT:
    

    final fully working version: http://jsfiddle.net/IrvinDominin/nPPqV/5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this code in order to build an url for the link using
I got this code from someone and it works very well, I just want
I've got a piece of code here, but I'm not sure if it works
I have got a drop down menu which works fine but i want to
Normally, this code works completely fine, but I have a single instance on a
I got code which works perfectly for Android 1.6 and higher with BT. The
Got this code for a viewscroller from the apple developers site. @synthesize scrollView1, scrollView2;
I got this code from the wordpress <head profile=http://gmpg.org/xfn/11> What does this means? what
I got this code ` // // prints out Hello World! // hello_world(); //First
i got this code $current_path = str_replace('\', '/', getcwd()); //c://xampp/htdoc Why it fail replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.