0
下面你可以看到,我的代碼顯示在地圖和標記(從JSON):Adsense的使用jQuery UI的地圖
$('#map_canvas').gmap().bind('init', function() {
$.getJSON('../js/locate.php', function(data) {
$.each(data.markers, function(i, marker) {
var mapvalue=new google.maps.LatLng(marker.latitude, marker.longitude);
$('#map_canvas').gmap('addMarker', {
'tags': [''+marker.category+''],
'position': mapvalue,
'bounds': true,
'icon':'../images/'+marker.category+'.png',
'animation':google.maps.Animation.DROP
}).click(function() {
$('#map_canvas').gmap('openInfoWindow', { 'content': ''+marker.category+'<BR><div id="cust_content"></div>' }, this);
setTimeout("opencust(\'" +marker.id+"\');",100);
});
});
});
});
我怎麼能在我的地圖,新的AdSense腳本:https://developers.google.com/maps/documentation/javascript/advertising#AdvertisingAdUnit
感謝您的幫助!
什麼是你想在這裏做什麼? – insomiac 2012-07-17 02:22:52
我只是想在我的地圖上添加AdSense廣告。谷歌腳本很容易,但我找不到與jquery-ui-map庫一起使用它的方法。 – user1522790 2012-07-17 06:24:36