topical media & game development
mashup-amazon-11-11-01-YahooMaps-01-simpleMap.htm / htm
<html>
<head>
<script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=[YOUR ID HERE]"></script>
<link href="styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#mySimpleMap {
height: 600px;
width: 600px;
}
</style>
</head>
<body onload="InitMap()">
<div class="siteHeading">
Yahoo Maps</div>
<table>
<tr>
<td>
<div id="mySimpleMap">
</div>
</td>
<td valign="top">
<a href="javascript:void(0)" onclick="myMap.addTypeControl();">Add Map Type Control</a>
<br />
<a href="javascript:void(0)" onclick="myMap.addZoomLong();">Add Zoom Control</a>
</td>
</tr>
</table>
<script type="text/javascript">
var myMap ;
function InitMap() {
myMap = new YMap(document.getElementById('mySimpleMap'));
myMap.drawZoomAndCenter("New York", 4);
}
</script>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.