MapboxVectorInterpreter
Objective-C
@interface MapboxVectorInterpreter : NSObject <MaplyLoaderInterpreter>
Swift
class MapboxVectorInterpreter : NSObject, MaplyLoaderInterpreter
An interpreter for Mapbox Vector Tiles.
This will turn vector tiles into images, visual objects, or a combination of the two. Loader interpreters like this one can be used by Loaders that talk to ondevice objects (such as MBTiles files) or remote tile sources.
-
This version of the init takes an image style set, a vector style set, and an offline renderer to build the image tiles.
Image tiles will be used as a background and vectors put on top of them. This is very nice for the globe, but requires specialized style sheets.
Declaration
Objective-C
- (instancetype _Nullable) initWithImageStyle:(NSObject<MaplyVectorStyleDelegate> *_Nonnull)imageStyle offlineRender:(MaplyRenderController *_Nonnull)renderControl vectorStyle:(NSObject<MaplyVectorStyleDelegate> *_Nonnull)vectorStyle viewC:(NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC;
Swift
init?(imageStyle: MaplyVectorStyleDelegate, offlineRender renderControl: MaplyRenderController, vectorStyle: MaplyVectorStyleDelegate, viewC: NSObjectProtocol & MaplyRenderControllerProtocol)
-
This version of the init builds visual features for vector tiles.
This interpreter can be used as overlay data or a full map, depending on how your style is configured.
Declaration
Objective-C
- (instancetype _Nullable) initWithVectorStyle: (NSObject<MaplyVectorStyleDelegate> *_Nonnull)vectorStyle viewC: (NSObject<MaplyRenderControllerProtocol> *_Nonnull)viewC;
Swift
init?(vectorStyle: MaplyVectorStyleDelegate, viewC: NSObjectProtocol & MaplyRenderControllerProtocol)
-
Set an optional list of unique features we’ll filter on. Any feature we want to pass through must have the given attribute name and one of the values.
Declaration
Objective-C
- (void)setUUIDName:(NSString *_Nonnull)uuidName uuidValues:(NSArray<NSString *> *_Nonnull)uuids;
Swift
func setUUIDName(_ uuidName: String, uuidValues uuids: [String])