You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fortunately, iOS map SDK v4.0.0 will introduce MGLComputedShapeSource for supplying tiles to the rendering engine on demand. It should therefore be possible to implement MBTiles support in a plugin that adds a computed shape source to the map.
See mapbox/mbxmapkit#3 for tips on how this feature was implemented in the legacy Mapbox iOS SDK (source code no longer publicly accessible).
Note that this plugin request pertains only to the use of MBTiles as a container for vector tiles. Using MBTiles as a container for static tiles would be blocked by mapbox/mapbox-gl-native#7471.
mapbox/mapbox-gl-native#10494 (comment) discusses the challenges involved in implementing MBTiles support atop mbgl. On iOS, we aren’t normally quite as concerned about overhead converting between C++ and platform-specific data types, but converting vector data from MVT to MGLShape to mbgl’s representation is a pretty roundabout approach. Leaving this issue open for now, because we could still use a plugin to prototype MBTiles support for non-performance-critical use cases.
Activity
1ec5 commentedon Jan 10, 2018
Note that this plugin request pertains only to the use of MBTiles as a container for vector tiles. Using MBTiles as a container for static tiles would be blocked by mapbox/mapbox-gl-native#7471.
1ec5 commentedon Jan 23, 2018
mapbox/mapbox-gl-native#10494 (comment) discusses the challenges involved in implementing MBTiles support atop mbgl. On iOS, we aren’t normally quite as concerned about overhead converting between C++ and platform-specific data types, but converting vector data from MVT to MGLShape to mbgl’s representation is a pretty roundabout approach. Leaving this issue open for now, because we could still use a plugin to prototype MBTiles support for non-performance-critical use cases.