Marker.getFields()
Returns the attributes of this Marker as follows:
{attributeName1: attributeValue1, attributeName2: attributeValue2, attributeName3: attributeValue3}
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
var markerLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
var markers = markerLayer.getMarkers();
var firstMarkerAttributes = markers[0].getFields();
}
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
);
