Hi
Not sure where to post this so I'll try here. Is anyone here familiar with using google maps? I'm embedding them into my pages, I can get the map centred to where I need and the controls for zooming in and out, but I keep falling down when it comes to sorting out the location icons. The google help page is superb for everything else but this. Does anyone have any ideas? A sample page can be found at:
(that isn't me in the photo I'm glad to say!)
and I'm using this code:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api...LuegfpJ_Gvwj2g"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(50.9040, -1.3970), 13);
map.addOverlay(new GMarker(new GPoint(50.9040, -1.3970)));
map.addOverlay(new GMarker(new GPoint(50.9038, -1.3961)));
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
Thanks
Nick
Not sure where to post this so I'll try here. Is anyone here familiar with using google maps? I'm embedding them into my pages, I can get the map centred to where I need and the controls for zooming in and out, but I keep falling down when it comes to sorting out the location icons. The google help page is superb for everything else but this. Does anyone have any ideas? A sample page can be found at:
(that isn't me in the photo I'm glad to say!)
and I'm using this code:
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api...LuegfpJ_Gvwj2g"
type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(50.9040, -1.3970), 13);
map.addOverlay(new GMarker(new GPoint(50.9040, -1.3970)));
map.addOverlay(new GMarker(new GPoint(50.9038, -1.3961)));
}
}
//]]>
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 500px; height: 300px"></div>
</body>
</html>
Thanks
Nick
Comment