Making the Map in HTML/JavaScript

HtmlMap
Well it’s time to make the map.  I have been shown how to make a simple list from our data in JavaScript using two arrays so now lets put a default map in the HTML.
So let’s create new HTML called “JavaScriptMap.HTML”. Here s what it should look like:

Map with valid credentials

http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0
var map = null;

function getMap()
{
map = new Microsoft.Maps.Map(document.getElementById(‘myMap’), {credentials: ‘Your credentails’});
}
This requires you get A Bing Maps key to do this you must go to Microsoft and register you will be given a key that you can use for your map.  Once you have it input the credentials where it says “Your Credentials” and bobs your uncle.

HtmlMap

 Remember you’ll have to get you credentials from bing
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s