var lat = 51.554061; var lon = 5.096987; function loadMap() { if (GBrowserIsCompatible()) { var latlng = new GLatLng(lat, lon); var map = new GMap2(document.getElementById("map")); map.addControl(new GSmallZoomControl()); map.setCenter(latlng, 11); // Create our "tiny" marker icon var blueIcon = new GIcon(G_DEFAULT_ICON); blueIcon.image = "http://maps.google.com/mapfiles/kml/pal4/icon49.png"; blueIcon.iconSize = new GSize(32,32); blueIcon.iconAnchor = new GPoint(7, 16); blueIcon.shadow = ""; // Set up our GMarkerOptions object map.addOverlay(new GMarker(latlng, blueIcon)); } }