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

    minZoom

    The minimum zoom level supported by this data source.

    maxZoom

    The 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

    name

    The 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

    layerIndex

    The index of the layer. A layer with empty name will be created if it does not exist yet.

    geoJSON

    A 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

    layerIndex

    The index of the layer. A layer with empty name will be created if it does not exist yet.

    projection

    Projection for the features in featureCollection. Can be null if the coordinates are based on WGS84.

    featureCollection

    The feature collection for the specified layer.

  • Deletes an existing layer.

    Declaration

    Objective-C

    - (void)deleteLayer:(int)layerIndex;

    Parameters

    layerIndex

    The 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;