Files
MapLibreParticleLab/platform/darwin/src/MGLSource.h
2016-10-06 15:19:38 -07:00

35 lines
976 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#import <Foundation/Foundation.h>
/**
A source supplies data to be shown on the map. Sources don't contain styling
details like color or width. Use subclasses of `MGLStyleLayer` to give visual
representation to sources.
You should use the concrete subclasses of `MGLSource` to create vector,
raster, GeoJSON, and other source types.
*/
@interface MGLSource : NSObject
#pragma mark Initializing a Source
/**
Returns a source initialized with an identifier.
After initializing and configuring the source, add it to a map view’s style
using the `-[MGLStyle addSource:]` method.
@param identifier A string that uniquely identifies the source in the style to
which it is added.
@return An initialized source.
*/
- (instancetype)initWithIdentifier:(NSString *)identifier;
#pragma mark Identifying a Source
/**
A string that uniquely identifies the source in the style to which it is added.
*/
@property (nonatomic, copy) NSString *identifier;
@end