<script src="http://adserver.lat49.com/lat49/v0.10/lat49.js" type="text/javascript"></script>
PUBLISHER_ID with your actual Lat49 publisher IDGEvent.addListener(map, "moveend", showLat49Ads);
function showLat49Ads(){
Lat49.initAds(PUBLISHER_ID);
var center = map.getCenter();
var lat = center.lat();
var lng = center.lng();
var zoomlevel = Lat49.Tile.convertGMap2Zoom(map.getZoom());
Lat49.updateAdByLatLon("adcontainer", lat, lng, zoomlevel);
}
lat49adposition attribute, refer to Lat49 API Documentation for more details. Use appropriate height and width for the 'main' DIV container, same as what was used for the map container previously.<div id="map" style="width:700px; height:500px;"></div>
<div id="main" style="position:relative; width:700px; height:500px;"> <div id="adcontainer" lat49adposition="bottom-right" style="position:absolute;right:10px;bottom:20px;width:242;height:133;z-index:99999;"></div> <div id="map" style="width:100%; height:100%"></div> </div>