TTMapGeoJSONSource
Objective-C
@interface TTMapGeoJSONSource : TTMapSource
Swift
class TTMapGeoJSONSource : TTMapSource
TTMapGeoJSONSource
-
Creates a GeoJSONSource with default GeoJSON options.
Declaration
Objective-C
+ (TTMapGeoJSONSource *_Nonnull)createWithID:(NSString *_Nonnull)ID;
Swift
class func create(withID ID: String) -> TTMapGeoJSONSource
Parameters
ID
NSString provide unique id for source.
Return Value
TTMapGeoJSONSource
-
Sets URL of GeoJSON data for the source.
Declaration
Objective-C
- (void)setUrl:(NSString *_Nonnull)url;
Swift
func setUrl(_ url: String)
Parameters
url
NSString
-
Sets GeoJSON data for the source.
Declaration
Objective-C
- (void)setGeoJSON:(NSString *_Nonnull)geoJSON;
Swift
func setGeoJSON(_ geoJSON: String)
Parameters
geoJSON
NSString containing GeoJSON data.
-
Sets GeoJSONData for the source.
Declaration
Objective-C
- (void)setGeoJSONObject:(id)geoJsonObject;
Swift
func setGeoJSONObject(_ geoJsonObject: Any!)
Parameters
geoJsonObject
TTGeoJSONObject representing GeoJSON data.
-
When url is provided calling this method will refresh/redownload geo json data.
Declaration
Objective-C
- (void)refreshUrlContent;
Swift
func refreshUrlContent()