YoumapsAPI.getFilteredGeometriesByFilterId(mapdataId:Integer, filterId:Integer, geomIdsToSkip:array, callback?:function)
Gets all the geometry ids filtered by the given filter.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
youmapsApi.getFilteredGeometriesByFilterId(<MAPDATA_ID>, <FILTER_ID>, null, callback);
}
function callback(geometryIds){
youmapsApi.applyFilter(mapdataId, geometryIds);
}
var mapOptions = {
center : new google.maps.LatLng(48.858386, 2.343435), // Paris,
zoom : 11,
minZoom : 6,
maxZoom : 17
};
var mapdataId;
var youmapsApi = new YoumapsAPI(
{
techID : <YOUR_TECH_ID>,
initMapboards : true,
mapDivId : "map",
mapOptions : mapOptions
},
onYoumapsApiLoaded
);
