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.38k stars 1.32k forks source link

Expose more options for downloading offline packs in macosapp #12285

Closed 1ec5 closed 5 years ago

1ec5 commented 6 years ago

macosapp can be used to test offline map functionality or generate offline packs to sideload onto iOS. Currently, it only supports downloading a tile pyramid from z0 up to the current zoom level. With #11447, the iOS and macOS map SDKs are gaining the ability to download packs that cover non-rectangular regions. macosapp should expose a way to download an offline pack whose region is an MGLShapeOfflineRegion.

The most natural UI for selecting a download region would be a drawing UI, which could be ported from a very small amount of old Swift 2 code for iOS in MBDrawingView.swift. Alternatively, macosapp could allow the user to open a GeoJSON file (#5483) defining the offline region.

/cc @asheemmamoowala @julianrex

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.