Bing’s got something they call “an AJAX control” that can dynamically embed generated maps into any webpage. There’s an online interactive demo for the control.
How can I use this control?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
See the demonstration.
There’s a Javascript class library available at
http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0
You need to include it into your page like this:
And then call it from within javascript like this:
To get a bing maps key, go to this page.
You need a div with that id in your HTML page, and it should be sized and styled position:relative:
You can then add information boxes and pushpins to that map.
I also built a javascript helper that can extract custom attributes form the div element, and generate the map for you, complete with pushpins and infoboxes. like this:
And then the javascript:
The js module containing the helper class is available on the jsfiddle link.