Filters.getFilteredGeometriesByFilterId(mapdataLayer : TileLayer | MarkerLayer, filterId:Integer, geomIdsToSkip:array, callback?:Function)
Returns an array of geometry ids filtered by the given filter.
function onYoumapsApiLoaded(){
console.log("YoumapsAPI loaded!");
var mapdataLayer = youmapsApi.getMapdata(<MAPDATA_ID>);
mapdataId = mapdataLayer.id;
Filters.getFilteredGeometriesByFilterId(mapdataLayer, <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
);
