mapbox / mapbox-gl-style-spec

76 stars 38 forks source link

Add support for more geometry types in feature-filter #644

Closed fuzhenn closed 7 years ago

fuzhenn commented 7 years ago

feature-filter only supports basic geometry types now: https://github.com/mapbox/mapbox-gl-style-spec/blob/mb-pages/lib/feature_filter/index.js#L5

var types = ['Unknown', 'Point', 'LineString', 'Polygon'];

Could you consider to add support for the following types?

['MultiPoint', 'MultiLineString', 'MultiPolygon', 'GeometryCollection']

It would be very useful for third-parties to integrate "feature-filter" into their projects.

Thanks!

tmcw commented 7 years ago

Thanks for the suggestion, Fu! If you need functionality outside of style-spec's goals (specifically, to support the types in vector tiles and the syntax in the style spec), I'd recommend forking the project. This project is focused closely on the goals of Mapbox GL, and functionality that doesn't line up with that aim would likely go unmaintained.