Hi
First ever post - be gentle!
Embedding a map into a web page. Works great -
http://www.3esmultimedia.com/gm/map.html.
The code is:
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="
http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(36.356334,-5.238075);
var myOptions = {
zoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById
("map_canvas"), myOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title:"Hello World!"
});
}
</script>
</head>
<body onload="initialize()">
<div id="map_canvas" style="width:500; height:400"></div>
</body>
</html>
However, the site I'm working on requires:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
at the top of the html page else it throws out all the spacing.
This seems to make my map invisible -
http://www.3esmultimedia.com/gm/map2.html.
The rest of the code on map2 page is identical to map page.
Any ideas how to get round this? Any comments will be greatly
received.
Mark