MarkerLayer.getMarkerListFromJson(callback?:Function)
Get all the markers (of type Marker) of this marker layer and update the markerLayer object. It also returns them in the callback function, even if the mapdata has never been displayed.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
var mapdataLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
mapdataLayer.getMarkerList(callback);
}
function callback(markerList){
console.log("Retrieved markers: " + markerList);
}
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
);
