APIs
Log In
APIs

Mapboard.getMapboardMapdataList

📘

Related REST API method

Take a look at getMapboardMapdataList.

📘

Static method

Mapboard.getMapboardMapdataList is static.
You can call it without actually instantiating the Mapboard class.

Mapboard.getMapboardMapdataList(mapboardId:Integer, callback?:Function)

Returns through a callback function a hash containing all the mapdata of the given mapboard.

function onYoumapsApiLoaded(){
  console.log("YoumapsAPI loaded!");
  Mapboard.getMapboardMapdataList(<MAPBOARD_ID>, onMapdataListLoaded);
}

function onMapdataListLoaded(mapdataHash){
  console.log("Mapdata hash retrieved " + mapdataHash);
}

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

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