diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-02-07 12:27:01 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-02-08 12:39:30 -0800 |
commit | 101b55b0f070ba86c8d5df089dc03393c9abe8da (patch) | |
tree | 46a1ada93c2076871fd1ea6e735847c81f4acfe7 /platform/darwin/src/MGLTileSource.h | |
parent | 4ab07f5be73f802e1f8f9d88eafa7077dbd5cac8 (diff) | |
download | qtlocation-mapboxgl-101b55b0f070ba86c8d5df089dc03393c9abe8da.tar.gz |
[ios, macos] Added option to restrict tile source to bounds
Cherry-picked from c3bf7c55a1f648e57c3853d555ff5f63c989f8c4.
Diffstat (limited to 'platform/darwin/src/MGLTileSource.h')
-rw-r--r-- | platform/darwin/src/MGLTileSource.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLTileSource.h b/platform/darwin/src/MGLTileSource.h index caeafcd2f6..3dc268db60 100644 --- a/platform/darwin/src/MGLTileSource.h +++ b/platform/darwin/src/MGLTileSource.h @@ -41,6 +41,20 @@ extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionMinimumZoomLevel; */ extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionMaximumZoomLevel; +/** + An `NSValue` object containing an `MGLCoordinateBounds` struct that specifies + the geographic extent of the source. + + If this option is specified, the SDK avoids requesting any tile that falls + outside of the coordinate bounds. Otherwise, the SDK requests any tile needed + to cover the viewport, as it does by default. + + This option corresponds to the `bounds` key in the + <a href="https://github.com/mapbox/tilejson-spec/tree/master/2.1.0">TileJSON</a> + specification. + */ +extern MGL_EXPORT const MGLTileSourceOption MGLTileSourceOptionCoordinateBounds; + #if TARGET_OS_IPHONE /** An HTML string defining the buttons to be displayed in an action sheet when the |