Пример 1


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Пример №1</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type='text/javascript' src='http://www.google.com/jsapi?key={КЛЮЧ_GOOGLE}'></script>
<script type="text/javascript">google.load("maps", "2");</script>
<script type="text/javascript" src="http://adgeo.ru/jsapi/1.1/?{}"></script>
<script type="text/javascript">
var map;

function init(){
map = new google.maps.Map2( document.getElementById("map_container") );
var customUI = map.getDefaultUI();
customUI.zoom.scrollwheel = true;
customUI.zoom.doubleclick = true;
customUI.controls.maptypecontrol = false;
customUI.controls.smallzoomcontrol3d = false;
map.setUI(customUI);
map.setCenter(new GLatLng( 56.329917, 44.009192 ), 15 );
var options = { min_zoom: 13, number: 20, nozoomcontrol: 1 };

if(typeof AdGeo != 'undefined' ) adgeo_obj = new AdGeo(map, options);
}

</script>
</head>
<body onload="init();">
<div id="map_container" style="width:600px;height: 500px;"></div>
</body>
</html>

где {KEY} ваш идентификатор сайта
{КЛЮЧ_GOOGLE} – ваш ключ для API Google Maps

Post a Comment

Your email is never published nor shared. Required fields are marked *

  • Новости: