YoumapsAPI.hideMapdata(mapdataId:Integer)
Hides the mapdata with the given id on the map.
Prerequisite
The Mapboard instance to which belongs the mapdata must be loaded before you can hide it by calling YoumapsAPI.hideMapdata.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
youmapsApi.displayMapdata(<MAPDATA_ID>);
youmapsApi.hideMapdata(<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
);
