Dear, I have somme problems to integrate the ads in a good way.(http:// googlegeodevelopers.blogspot.com/2009/05/earn-revenue-from-your-mashup- with-maps_20.html).
Here is the online maps test page : http://www.rodsbot.com/maps2.php?id=1192 The problem : only the map appear, and nothing else. The Gmaps API code : //<![CDATA[ /* Réinitialisation des variables "map" et "geocoder" */ var map = null; var geocoder = null; /* Chargement de la carte */ function load() { if (GBrowserIsCompatible()) { // Publicité -------------------------------------------------------------------- /**/ var publisher_id = "ca-pub-3091073464800366"; // Replace 1234123412341234 with your Google AdSense client id. var adPos = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize (7, 20)); // Set the anchor position and GSize offset to your desired values. adsManagerOptions = { maxAdsOnMap : 2, style: 'adunit', //channel: '12345678', // This field is optional - replace 12345678 with a channel number that you created for Google AdSense tracking position: adPos }; adsManager = new GAdsManager(map, publisher_id, adsManagerOptions); adsManager.enable(); /**/ /* var opts = { googleBarOptions : { experimentalLscStyle : "true", adsParams : { client : "pub-3091073464800366", } } } */ /* Création de la carte */ // var map = new GMap2(document.getElementById("map_canvas"), opts); map = new GMap2(document.getElementById("map")); map.enableGoogleBar(); // Boutons et échelle sur la carte ---------------------------------------------- map.setCenter(new GLatLng(<?php echo "$lat,$lon), $z"; ?>); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setMapType(G_SATELLITE_MAP); new GKeyboardHandler(map); BottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize (7,17)); map.addControl(new GScaleControl(),BottomRight); // Contrôle du Zoom ------------------------------------------------------------- map.enableDoubleClickZoom(); map.enableContinuousZoom(); map.enableScrollWheelZoom(); // Terrain ---------------------------------------------------------------------- map.addMapType(G_PHYSICAL_MAP); // 3D --------------------------------------------------------------------------- map.addMapType(G_SATELLITE_3D_MAP); } /* Message si navigateur non compatible */ else { alert("Sorry, Google Maps will not work with your browser."); } GSearch.setOnLoadCallback(load); } / ************************************************************************************/ //]]> Thanks in advance for your help. Stéphane. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
