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):
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!
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!