MapKit JS pointOfInterestFilter not working

I'm currently experimenting with MapKit JS version 5.61.1.

I initialise a map with the option pointOfInterestFilter, but no matter what I set (including, excluding), it has no effect and all the default POIs will always show.

Example (abbreviated):

Code Block js
const map = new mapkit.Map(…, {
region: region,
pointOfInterestFilter: mapkit.PointOfInterestFilter.including([
mapkit.PointOfInterestCategory.ATM
]),
});


I would expect only to see ATMs on the map, but it shows just everything.

Manually inspecting map.pointOfInterestFilter._includes indicates, that the setting was set successfully as it shows an array ["ATM"].

By the way, I also noticed that the documentation says there should be the constants mapkit.PointOfInterestFilter.filterIncludingAllCategories and mapkit.PointOfInterestFilter.filterExcludingAllCategories, but they don't appear to be present.

Thank you for any tips!
These seems to be valid bugs, one with MapKit JS and one with the documentation. Please file two feedbacks with Feedback Assistant. Refer to this thread when you comment — and post Feedback IDs here for cross-referencing.

Thanks for your help!
MapKit JS pointOfInterestFilter not working
 
 
Q