Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiPolygon passes Polygon filter unexpectedly #5326

Open
exe-dealer opened this issue Jan 10, 2025 · 1 comment
Open

MultiPolygon passes Polygon filter unexpectedly #5326

exe-dealer opened this issue Jan 10, 2025 · 1 comment

Comments

@exe-dealer
Copy link

maplibre-gl-js version: 5.0.0

browser: firefox 135.0b1

Steps to Trigger Behavior

  • create source with geojson multipolygon
  • create fill layer with filter ['==', ['geometry-type'], 'Polygon']
  • zoom map to layer

Link to Demonstration

https://jsfiddle.net/exedealer/6sea7mut/14/

Screen.Recording.2025-01-10.at.18.22.46.mov

Expected Behavior

I expect MultiPolygon never or always pass filter ['==', ['geometry-type'], 'Polygon']

Actual Behavior

MultiPolygon feature passes filter somehow on random tiles and random zoom levels.

Is there any discussion about why geometry-type behavior was changed? Why do we need distinguish Polygon and MultiPolygon in styles?

@HarelM
Copy link
Collaborator

HarelM commented Jan 10, 2025

This is tracked here:
maplibre/maplibre-style-spec#965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants