YoumapsAPI.getMapdata(mapdataId:Integer)
Retrieves the mapdata associated to 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 in the loaded Mapboard instances.
Prerequisite
The Mapboard instance to which belongs the mapdata must be loaded before you can request it by calling YoumapsAPI.getMapdata.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
youmapsApi.getMapdata(<MAPDATA_ID>);
}
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
);
