MSFGeoJSONVectorTileDataSource

Objective-C


@interface MSFGeoJSONVectorTileDataSource : MSFTileDataSource

Swift

class MSFGeoJSONVectorTileDataSource : MSFTileDataSource

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;

    Swift

    init!(minZoom: Int32, maxZoom: Int32)

    Parameters

    minZoom

    The minimum zoom level supported by this data source.

    maxZoom

    The maximum zoom level supported by this data source.

  • Returns the simplification tolerance in tile pixels.

    Declaration

    Objective-C

    - (float)getSimplifyTolerance;

    Swift

    func getSimplifyTolerance() -> Float

    Return Value

    The simplification tolerance in tile pixels.

  • Sets the simplification tolerance in tile pixels.

    Declaration

    Objective-C

    - (void)setSimplifyTolerance:(float)tolerance;

    Swift

    func setSimplifyTolerance(_ tolerance: Float)

    Parameters

    tolerance

    The simplification tolerance in tile pixels. The default is 1.0. Use 0.0 to disable simplification.

  • Returns the default layer buffer in tile pixels.

    Declaration

    Objective-C

    - (float)getDefaultLayerBuffer;

    Swift

    func getDefaultLayerBuffer() -> Float

    Return Value

    The default layer buffer in tile pixels.

  • Sets the default layer buffer in tile pixels. This buffer value will be used for all layers created afterwards.

    Declaration

    Objective-C

    - (void)setDefaultLayerBuffer:(float)tolerance;

    Swift

    func setDefaultLayerBuffer(_ tolerance: Float)
  • Creates a new layer with specified name.

    Declaration

    Objective-C

    - (int)createLayer:(NSString *)name;

    Swift

    func createLayer(_ name: String!) -> Int32

    Parameters

    name

    The name for the layer.

    Return Value

    The layer index of the created layer. @throws NSException If an error occured during creation of the layer.

  • Sets the features of the specified layer.

    Declaration

    Objective-C

    - (void)setLayerGeoJSON:(int)layerIndex geoJSON:(MSFVariant *)geoJSON;

    Swift

    func setLayerGeoJSON(_ layerIndex: Int32, geoJSON: MSFVariant!)

    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. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer.

    Declaration

    Objective-C

    - (void)addGeoJSONFeature:(int)layerIndex geoJSON:(MSFVariant *)geoJSON;

    Swift

    func addGeoJSONFeature(_ layerIndex: Int32, geoJSON: MSFVariant!)

    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 Feature element. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer if it already exists.

    Declaration

    Objective-C

    - (void)updateGeoJSONFeature:(int)layerIndex geoJSON:(MSFVariant *)geoJSON;

    Swift

    func updateGeoJSONFeature(_ layerIndex: Int32, geoJSON: MSFVariant!)

    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 Feature element. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer.

    Declaration

    Objective-C

    - (void)setLayerGeoJSONString:(int)layerIndex geoJSON:(NSString *)geoJSON;

    Swift

    func setLayerGeoJSONString(_ layerIndex: Int32, geoJSON: String!)

    Parameters

    layerIndex

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

    geoJSON

    A geojson string that MUST contain single FeatureColletion element. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer.

    Declaration

    Objective-C

    - (void)addGeoJSONStringFeature:(int)layerIndex geoJSON:(NSString *)geoJSON;

    Swift

    func addGeoJSONStringFeature(_ layerIndex: Int32, geoJSON: String!)

    Parameters

    layerIndex

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

    geoJSON

    A geojson string that MUST contain single Feature element. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer if it already exists.

    Declaration

    Objective-C

    - (void)updateGeoJSONStringFeature:(int)layerIndex geoJSON:(NSString *)geoJSON;

    Swift

    func updateGeoJSONStringFeature(_ layerIndex: Int32, geoJSON: String!)

    Parameters

    layerIndex

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

    geoJSON

    A geojson string that MUST contain single Feature element. @throws NSException If an error occured during updating the layer.

  • Sets the features of the specified layer.

    Declaration

    Objective-C

    - (void)removeGeoJSONFeature:(int)layerIndex arg2:(MSFVariant *)arg2;

    Swift

    func removeGeoJSONFeature(_ layerIndex: Int32, arg2: MSFVariant!)

    Parameters

    layerIndex

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

    id

    id of the feature to remove. @throws NSException If an error occured during updating the layer.

  • Sets the feature collection of the specified layer.

    Declaration

    Objective-C

    - (void)setLayerFeatureCollection:(int)layerIndex
                           projection:(MSFProjection *)projection
                    featureCollection:(MSFFeatureCollection *)featureCollection;

    Swift

    func setLayerFeatureCollection(_ layerIndex: Int32, projection: MSFProjection!, featureCollection: MSFFeatureCollection!)

    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. @throws NSException If an error occured during updating the layer.

  • Deletes an existing layer.

    Declaration

    Objective-C

    - (void)deleteLayer:(int)layerIndex;

    Swift

    func deleteLayer(_ layerIndex: Int32)

    Parameters

    layerIndex

    The index of layer to delete.

  • Undocumented

    Declaration

    Objective-C

    - (MSFMapBounds *)getDataExtent;

    Swift

    func getDataExtent() -> MSFMapBounds!
  • Undocumented

    Declaration

    Objective-C

    -(MSFMapBounds*)getDataExtentSwigExplicitMSFGeoJSONVectorTileDataSource;

    Swift

    func getDataExtentSwigExplicitMSFGeoJSONVectorTileDataSource() -> MSFMapBounds!
  • Undocumented

    Declaration

    Objective-C

    - (MSFTileData *)loadTile:(MSFMapTile *)mapTile;

    Swift

    func load(_ mapTile: MSFMapTile!) -> MSFTileData!
  • Undocumented

    Declaration

    Objective-C

    -(MSFTileData*)loadTileSwigExplicitMSFGeoJSONVectorTileDataSource: (MSFMapTile*)mapTile;

    Swift

    func loadTileSwigExplicitMSFGeoJSONVectorTileDataSource(_ mapTile: MSFMapTile!) -> MSFTileData!
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()