Как переделать эту карту от Google в карту Яндекса?
<html id="html">
<head id="head"> | |
<title>olpcMAP Mobile</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<meta name="viewport" content="width=device-width, user-scalable=no"/> | |
<script src="http://maps.googleapis.co | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script type="text/javascript"> | |
var map,kml; | |
function load(){ | |
var latlng; | |
if(!map){ | |
latlng = new google.maps.LatLng(36.020985,22.951267); | |
var myOptions = { | |
zoom: 2, | |
center: latlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
mapTypeControl: true, | |
navigationControlOptions: {position:google.maps.ControlPosition.TOP_RIGHT} | |
}; | |
map = new google.maps.Map(document.getElementById("map"), myOptions); | |
google.maps.event.addList | |
kml = new google.maps.KmlLayer("http://mapmeld.appspot.co | |
}); | |
} | |
} | |
function toLatLng(x,y){ | |
x+=".000000"; | |
y+=".000000"; | |
var factor=0.01; | |
var zoom=map.getZoom(); | |
return new google.maps.LatLng(mapLat,mapLng); | |
} | |
</script> | |
<style type="text/css"> | |
#map{width:100%;height:100%;z-index:1} | |
</style> | |
</head> | |
<body id="body" onload="load();"> | |
<div id="map"> | |
</div> | |
</body> | |
</html> |