MaplyMapboxVectorStyleSource

Objective-C

@interface MaplyMapboxVectorStyleSource : NSObject

// Name of the source
@property (nonatomic,nullable) NSString *name;

// Vector and raster sources supported for now
@property (nonatomic) MapboxSourceType type;

// TileJSON URL, if present
@property (nonatomic,nullable) NSString *url;

// If the TileJSON spec is inline, this is it
@property (nonatomic,nullable) NSDictionary *tileSpec;

// Initialize with the entry in the style file
- (id __nullable)initWithName:(NSString *__nonnull)name styleEntry:(NSDictionary * __nonnull)styleEntry styleSet:(MapboxVectorStyleSet * __nonnull)styleSet viewC:(NSObject<MaplyRenderControllerProtocol> * __nonnull)viewC;

@end

Swift

class MaplyMapboxVectorStyleSource : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *name

    Swift

    var name: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) MapboxSourceType type

    Swift

    var type: MapboxSourceType { get set }
  • url

    Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *url

    Swift

    var url: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSDictionary *tileSpec

    Swift

    var tileSpec: [AnyHashable : Any]? { get set }
  • Undocumented

    Declaration

    Objective-C

    - (id __nullable)initWithName:(NSString *__nonnull)name styleEntry:(NSDictionary * __nonnull)styleEntry styleSet:(MapboxVectorStyleSet * __nonnull)styleSet viewC:(NSObject<MaplyRenderControllerProtocol> * __nonnull)viewC;

    Swift

    init?(name: String, styleEntry: [AnyHashable : Any], styleSet: MapboxVectorStyleSet, viewC: NSObjectProtocol & MaplyRenderControllerProtocol)