-
Notifications
You must be signed in to change notification settings - Fork 1.3k
mbgl::AnnotationManager should use mapbox::geometry types #5158
Comments
In 3f17b63 and 30ec9c6 I sketched out a couple potential redesigns that accomplish this. I think I slightly prefer the latter. Both designs will be significantly easier to implement once mapbox/geojson-vt-cpp#45 lands. Currently a bunch of conversion code would be required. |
I think I’d prefer the latter option too. It wouldn’t feel right to restrict this API to just the three geometry types (point, line, polygon) in core, given that core can actually handle any of the geometry types. |
The above approach expands into much more work than I'm comfortable biting off right now, given the release schedule and certainty of introducing conflicts with #4839. We can switch the interface to geometry.hpp types with less effort: https://github.com/mapbox/mapbox-gl-native/compare/5158-minimal. Note that this approach does not itself fix #1729 or even expand the actual range of supported geometry types. Unsupported types become a runtime error, rather than not being expressible in the API. @1ec5 WDYT? |
Actually, it shouldn't be hard to expand the geometry support to polygon holes, |
Is |
|
We could however, switch |
mbgl::AnnotationManager
should use themapbox::geometry
types that are being used e.g. as return values formbgl::Map::queryRenderedFeatures()
(#5066). This would give us the ability to add any kind of geometry to the annotation layer, unblocking #1729./cc @jfirebaugh
The text was updated successfully, but these errors were encountered: