iOS SDK

API Reference

On This Page

MGLResourceKind

enum MGLResourceKind {}

The type of resource that is requested.

MGLResourceKindUnknown

Unknown type

Declaration

Objective-C

MGLResourceKindUnknown

Swift

case unknown = 0

MGLResourceKindStyle

Style sheet JSON file

Declaration

Objective-C

MGLResourceKindStyle

Swift

case style = 1

MGLResourceKindSource

TileJSON file as specified in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sources

Declaration

Objective-C

MGLResourceKindSource

Swift

case source = 2

MGLResourceKindTile

A vector or raster tile as described in the style sheet at https://www.mapbox.com/mapbox-gl-js/style-spec/#sources

Declaration

Objective-C

MGLResourceKindTile

Swift

case tile = 3

MGLResourceKindGlyphs

Signed distance field glyphs for text rendering. These are the URLs specified in the style in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-glyphs

Declaration

Objective-C

MGLResourceKindGlyphs

Swift

case glyphs = 4

MGLResourceKindSpriteImage

Image part of a sprite sheet. It is constructed of the prefix in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a PNG file extension.

Declaration

Objective-C

MGLResourceKindSpriteImage

Swift

case spriteImage = 5

MGLResourceKindSpriteJSON

JSON part of a sprite sheet. It is constructed of the prefix in https://www.mapbox.com/mapbox-gl-js/style-spec/#root-sprite and a JSON file extension.

Declaration

Objective-C

MGLResourceKindSpriteJSON

Swift

case spriteJSON = 6

MGLResourceKindImage

Image data for a georeferenced image source. *

Declaration

Objective-C

MGLResourceKindImage

Swift

case image = 7