Mapboard.getMapdataLayer(mapdataId:Integer)
Returns the mapdata layer associated with the given mapdata ID.
The returned object can be a RasterLayer, TileLayer or MarkerLayer instance.
Returns null if no mapdata was found corresponding to the given ID was found.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
youmapsApi.getMapboard(<MAPBOARD_ID>, onMapboardLoaded);
}
function onMapboardLoaded(mapboardInstance){
console.log("Mapboard loaded " + mapboardInstance);
var mapboardMapdataLayer = mapboardInstance.getMapdataLayer(<MAPDATA_ID>);
}
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
);
