Related REST API method
Take a look at getGeometryAttributes.
TileLayer.getGeometryAttributesById(geometryId:Integer, callback?:Function)
Returns the attributes of the geometry with the given ID.
Calls a callback function with the attributes if a callback parameter is given.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
var mapdataLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
mapdataLayer.getGeometryAttributesById(<GEOMETRY_ID>, callback);
}
function callback(attributes){
console.log("Retrieved following attributes for geometry" + attributes);
}
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
);
