APIs
Log In
APIs

Marker.getLabel

Marker.getLabel()

Returns the marker label, which is a google.maps.MarkerLabel.

function onYoumapsApiLoaded(){
  console.log("YoumapsAPI loaded!");
  var markerLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
  markerLayer.display();
  var markers = markerLayer.getMarkers();
  var firstMarkerLabel = markers[0].getLabel();
}

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