Creates filtering function for vector tile features