APIs
Log In
APIs

MarkerLayer.display

MarkerLayer.display(callback?:Function)

Displays the layer on the map.
Calls the callback function once the data is loaded and the mapdata displayed.

function onYoumapsApiLoaded(){
  console.log("YoumapsAPI loaded!");
  var mapdataLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
  mapdataLayer.display(callback);
}

function callback(){
	console.log("Mapdata layer displayed");
}

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
);