Google Maps GOverviewMapControl() and GAdsManager -
I have a GMap2 object with GOverviewMapControl and a GAdsManager, but they both appear in the lower right hand corner.
How can I see them in different parts of the map?
Here's my overview:
map.addControl (new GLargeMapControl ()); Map.addControl (new GMapTypeControl ()); Map.addControl (new GOverviewMapControl ()); Map.enableDoubleClickZoom ();
My ad here
var adsManagerOptions = {maxAdsOnMap: 2, Style: 'adunit', channel: 'XXXXXXXXX'}; AdsManager = New GAdsManager (Map, Publisher ID, adsManagerOptions); AdsManager.enable ();
will allow you to determine the status of GADSManager. The options are passed in the GAdsManager constructor.
Unfortunately, this is not flexible according to the documentation, "Unlike other controls, you can only keep this control in the bottom right corner of the map (G_ANCHOR_BOTTOM_RIGHT)."
I do not have any way to test at this time, but your options might look like this:
var adsManagerOptions = {maxAdsOnMap: 2, style: 'adunit' , Channel: 'XXXXXXXXX', Status: New GControlPosition (G_ANCHOR_BOTTOM_LEFT)};
Comments
Post a Comment