mapbox / mapbox/mapbox-plugins-ios

MBTiles

Open
#19 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

plugin request
Dominant language
Objective-C
Stars
7
Forks
7
PR merge metrics
No merged PRs in 30d

Description

An MBTiles source could be implemented as a plugin to the map SDK.

Although MBTiles is a Mapbox-supported tile container format, the Mapbox Maps SDK doesn’t support it out of the box as a way to sideload offline maps. https://github.com/mapbox/mapbox-gl-native/issues/6862#issuecomment-287484550 explains the situation in more detail.

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).

/ref mapbox/mapbox-gl-native#9983
/cc @mapbox/maps-ios

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the MBTiles specification, the Mapbox Maps SDK documentation for MGLComputedShapeSource, and the referenced mapbox/mbxmapkit#3 implementation notes. Review mapbox/mapbox-gl-native#9983 for related context. Done means an iOS plugin can use an MBTiles source to provide sideloaded offline maps through the map SDK.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.