Outdoor tile source: vector MVT or raster imagery. More...
#include <com/navigine/idl/objc/NCTileProvider.h>
Inherits NSObject.
Instance Methods | |
| (nonnull instancetype) | - initWithSchema:http:mbtiles:minZoom:maxZoom:attribution:kind: |
| Default constructor for class NCTileProvider. | |
| (nonnull instancetype) | - initWithSchema:http:mbtiles:attribution: |
| Default constructor for class NCTileProvider. | |
Class Methods | |
| (nonnull instancetype) | + tileProviderWithSchema:http:mbtiles:minZoom:maxZoom:attribution:kind: |
| Factory method for class NCTileProvider. | |
| (nonnull instancetype) | + tileProviderWithSchema:http:mbtiles:attribution: |
| Factory method for class NCTileProvider. | |
Properties | |
| NCTileSchema | schema |
Tile schema TileSchema. Used when kind is vector. | |
| NCHttpTileSource * | http |
| Remote XYZ source HttpTileSource. Ignored when mbtiles is set. | |
| NCMbtilesTileSource * | mbtiles |
| Local MBTiles pack MbtilesTileSource. | |
| int32_t | minZoom |
| Minimum source zoom. Default: 0. | |
| int32_t | maxZoom |
| Maximum source zoom (camera overzooms above this). Default: 14. | |
| NSString * | attribution |
Attribution overlay text. Null on a vector source: © OpenStreetMap contributors. | |
| NCTileKind | kind |
| Vector MVT or raster imagery TileKind. Default: vector. | |
Outdoor tile source: vector MVT or raster imagery.
Set either http or mbtiles. When mbtiles is set, tiles are read only from that file — no network. kind selects the payload. For vector, schema must match the tiles. For raster, schema is ignored. Null LocationWindow.tileProvider keeps the default OSM Shortbread endpoint.
Referenced from LocationWindow tileProvider.
Definition at line 27 of file NCTileProvider.h.
| - (nonnull instancetype) initWithSchema: | (NCTileSchema) | schema | |
| http: | (nullable NCHttpTileSource *) | http | |
| mbtiles: | (nullable NCMbtilesTileSource *) | mbtiles | |
| attribution: | (nullable NSString *) | attribution |
Default constructor for class NCTileProvider.
| - (nonnull instancetype) initWithSchema: | (NCTileSchema) | schema | |
| http: | (nullable NCHttpTileSource *) | http | |
| mbtiles: | (nullable NCMbtilesTileSource *) | mbtiles | |
| minZoom: | (int32_t) | minZoom | |
| maxZoom: | (int32_t) | maxZoom | |
| attribution: | (nullable NSString *) | attribution | |
| kind: | (NCTileKind) | kind |
Default constructor for class NCTileProvider.
| + (nonnull instancetype) tileProviderWithSchema: | (NCTileSchema) | schema | |
| http: | (nullable NCHttpTileSource *) | http | |
| mbtiles: | (nullable NCMbtilesTileSource *) | mbtiles | |
| attribution: | (nullable NSString *) | attribution |
Factory method for class NCTileProvider.
| + (nonnull instancetype) tileProviderWithSchema: | (NCTileSchema) | schema | |
| http: | (nullable NCHttpTileSource *) | http | |
| mbtiles: | (nullable NCMbtilesTileSource *) | mbtiles | |
| minZoom: | (int32_t) | minZoom | |
| maxZoom: | (int32_t) | maxZoom | |
| attribution: | (nullable NSString *) | attribution | |
| kind: | (NCTileKind) | kind |
Factory method for class NCTileProvider.
|
readnonatomicassign |
Attribution overlay text. Null on a vector source: © OpenStreetMap contributors.
Definition at line 104 of file NCTileProvider.h.
|
readnonatomicassign |
Remote XYZ source HttpTileSource. Ignored when mbtiles is set.
Definition at line 84 of file NCTileProvider.h.
|
readnonatomicassign |
Vector MVT or raster imagery TileKind. Default: vector.
Definition at line 109 of file NCTileProvider.h.
|
readnonatomicassign |
Maximum source zoom (camera overzooms above this). Default: 14.
Definition at line 99 of file NCTileProvider.h.
|
readnonatomicassign |
Local MBTiles pack MbtilesTileSource.
Definition at line 89 of file NCTileProvider.h.
|
readnonatomicassign |
Minimum source zoom. Default: 0.
Definition at line 94 of file NCTileProvider.h.
|
readnonatomicassign |
Tile schema TileSchema. Used when kind is vector.
Swift code snippet:
Objective C code snippet:
Definition at line 79 of file NCTileProvider.h.