NTGeoJSONVectorTileDataSource
@interface NTGeoJSONVectorTileDataSource : NTTileDataSource
A tile data source that builds vector tiles from GeoJSON inputs.
-
Constructs a GeoJSONVectorTileDataSource object. Note: EPSG3857 projection is used.
Declaration
Objective-C
- (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom;Parameters
minZoomThe minimum zoom level supported by this data source.
maxZoomThe maximum zoom level supported by this data source.
-
Creates a new layer with specified name.
Warning
Throws NSException If an error occured during creation of the layer.Declaration
Objective-C
- (int)createLayer:(NSString *)name;Parameters
nameThe name for the layer.
Return Value
The layer index of the created layer.
-
Sets the features of the specified layer.
Warning
Throws NSException If an error occured during updating the layer.Declaration
Objective-C
- (void)setLayerGeoJSON:(int)layerIndex geoJSON:(NTVariant *)geoJSON;Parameters
layerIndexThe index of the layer. A layer with empty name will be created if it does not exist yet.
geoJSONA geojson type variant that MUST contain single FeatureColletion element.
-
Sets the feature collection of the specified layer.
Warning
Throws NSException If an error occured during updating the layer.Declaration
Objective-C
- (void)setLayerFeatureCollection:(int)layerIndex projection:(NTProjection *)projection featureCollection:(NTFeatureCollection *)featureCollection;Parameters
layerIndexThe index of the layer. A layer with empty name will be created if it does not exist yet.
projectionProjection for the features in featureCollection. Can be null if the coordinates are based on WGS84.
featureCollectionThe feature collection for the specified layer.
-
Deletes an existing layer.
Declaration
Objective-C
- (void)deleteLayer:(int)layerIndex;Parameters
layerIndexThe index of layer to delete.
-
Undocumented
Declaration
Objective-C
- (NTMapBounds *)getDataExtent; -
Undocumented
Declaration
Objective-C
-(NTMapBounds*)getDataExtentSwigExplicitNTGeoJSONVectorTileDataSource; -
Undocumented
Declaration
Objective-C
- (NTTileData *)loadTile:(NTMapTile *)mapTile; -
Undocumented
Declaration
Objective-C
-(NTTileData*)loadTileSwigExplicitNTGeoJSONVectorTileDataSource: (NTMapTile*)mapTile; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTGeoJSONVectorTileDataSource Class Reference