Revision: 46250
Updated Code
at May 27, 2011 00:45 by marzsman
Updated Code
var map; function initialize() { var myLatlng = new google.maps.LatLng(51.05866,3.713379); var myOptions = { zoom: 8, center: myLatlng, streetViewControl: false, mapTypeId: "terrain", scrollwheel:false } map = new google.maps.Map(document.getElementById("'.$id.'"), myOptions); mapReady(); } function mapReady() { //Go wild } function loadScript() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize"; document.body.appendChild(script); } window.onload = loadScript;
Revision: 46249
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 14, 2011 22:06 by marzsman
Initial Code
var map; function initialize() { var myLatlng = new google.maps.LatLng('.$latlng.'); var myOptions = { zoom: '.$zoom.', center: myLatlng, streetViewControl: false, mapTypeId: "terrain", scrollwheel:false } map = new google.maps.Map(document.getElementById("'.$id.'"), myOptions); mapReady(); } function mapReady() { //Go wild } function loadScript() { var script = document.createElement("script"); script.type = "text/javascript"; script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize"; document.body.appendChild(script); } window.onload = loadScript;
Initial URL
Initial Description
Basic Google Maps initialize code
Initial Title
Initialize Google maps V3
Initial Tags
javascript, google
Initial Language
JavaScript