maps

 

 

function myMap() {
var mapCanvas = document.getElementById(“map”);
var myCenter = new google.maps.LatLng(51.508742,-0.120850);
var mapOptions = {center: myCenter, zoom: 7};
var map = new google.maps.Map(mapCanvas,mapOptions);
var marker = new google.maps.Marker({
position: myCenter,
});
marker.setMap(map);
}

https://maps.googleapis.com/maps/api/js?key=AIzaSyAQiDZm9YWLfMtcnk2UgbRAxTJBKi6hlAI&callback=myMap

 

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