In Feburary 2016 26,
Get a Google API developer key. Go to http://code.google.com/apis/maps/signup.html and sign up for an account. Google will send you an API key that you can use to access its services.
Add the Google AJAX API to your webpage by including the following code in your page's
element:
http://www.google.com/jsapi?key=ABCDEFG"></script>
Make an element to contain the map on your webpage, somewhere in the
section:
Use the AJAX API to load the Maps API and create a Map2 object by adding this JavaScript to your page:google.load('maps', '2');
var myMap;
google.setOnLoadCallback(function()
{
myMap = new google.maps.Map2(document.getElementById('myMap'));
});
Use the Google Maps API to add the features you want to your Map2 object, myMap. See http://code.google.com/apis/maps/documentation.
In Feburary 2016 26,
No comments:
Post a Comment