TileLayer.getGeometryAttributes(lat:Double, lng:Double, callback?:Function)
Returns the attributes of the geometry which intersects, contains or is the nearest to the given coordinates.
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.getGeometryAttributes(48.858386, 2.343435, callback);
}
function callback(geometry){
console.log("Retrieved following geometry " + geometry);
}
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
);
