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) -> TTMapGeoJSONSourceParameters
IDNSString that provides a unique id for the 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
urlNSString
-
Sets GeoJSON data for the source.
Declaration
Objective-C
- (void)setGeoJSON:(NSString *_Nonnull)geoJSON;Swift
func setGeoJSON(_ geoJSON: String)Parameters
geoJSONNSString containing GeoJSON data.
-
Sets GeoJSONData for the source.
Declaration
Objective-C
- (void)setGeoJSONObject:(id)geoJsonObject;Swift
func setGeoJSONObject(_ geoJsonObject: Any!)Parameters
geoJsonObjectTTGeoJSONObject representing GeoJSON data.
-
When url is provided calling this method will refresh/redownload geo json data.
Declaration
Objective-C
- (void)refreshUrlContent;Swift
func refreshUrlContent()
TTMapGeoJSONSource Class Reference