APIs
Log In
APIs

Map.setMapOptions

Map.setMapOptions(options:google.maps.MapOptions)

Sets new options for your Map object and applies them to the encapsulated Google Map.

function onYoumapsApiLoaded(){
  console.log("YoumapsAPI loaded!");
  var newMapOptions = {	
    zoom : 5,
    minZoom : 0,
    maxZoom : 21
  };
  youmasApi.map.setMapOptions(newMapOptions);
}

var mapOptions = {	
  center : new google.maps.LatLng(48.858386, 2.343435), // Paris,
  zoom : 11,
  minZoom : 6,
  maxZoom : 17
};

var youmapsApi = new YoumapsAPI(
  {
    techID : <YOUR_TECH_ID>, 
    initMapboards : true,
    mapDivId : "map",
    mapOptions : mapOptions
  },
  onYoumapsApiLoaded
);