mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Simplify and consolidate Shape sources #10410

Open asheemmamoowala opened 6 years ago

asheemmamoowala commented 6 years ago

In #9983 and previous tickets, there has been much discussion over the naming and convention around MGLComputedShapeSource and its related classes.

Previous conversations have centered around:

cc @1ec5

1ec5 commented 6 years ago

iOS SDK v4.0.0 may be our last opportunity to implement any of these options for awhile, since v5.0.0 would presumably be further down the road.

/cc @lilykaiser

1ec5 commented 6 years ago

10853 may be a way to pare back this work to something manageable in the v4.0.0 timeframe.

1ec5 commented 6 years ago

11568 removed MGLAbstractShapeSource, but it left separate MGLShapeSource and MGLComputedShapeSource classes. A future unification – or at least making one a subclass of the other – would be desirable, but any changes along these lines would require refactoring the underlying mbgl classes as well.