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

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -