Map Options

May 8, 2009 at 6:48 PM

Love what you've done with the control, very nice & JS-free.

That said, was wondering how one might incorporate map "options"? Specifically, see http://code.google.com/apis/maps/documentation/services.html#Advertising ...

var map;
if (GBrowserIsCompatible()) {
 
var mapOptions = {
    googleBarOptions
: {
      style
: "new",
      adsOptions
: {
        client
: "partner-google-maps-api",
        channel
: "AdSense for Search channel",
        adsafe
: "high",
        language
: "en"
}}}
  map
= new GMap2(document.getElementById("map_canvas"), mapOptions);
  map
.setCenter(new GLatLng(33.956461,-118.396225), 13);
  map
.setUIToDefault();
  map
.enableGoogleBar();
}

Your control allows me to enable the GoogleBar through the EnableGoogleBar property, but I don't see any way to provide options, and it appears that these need to be defined when the map is created. Ideas? Thx

Coordinator
May 9, 2009 at 12:42 PM

Hi,

Thanks for the tip. I will add those options in next release.

Regards

Coordinator
May 9, 2009 at 12:43 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.