import { BaseNative } from '..'; import { Projection } from 'nativescript-carto/projections'; import { FeatureCollection } from 'nativescript-carto/geometry/feature'; export interface DataSourceOptions { minZoom?: number; maxZoom?: number; } export interface TileDataSourceOptions extends DataSourceOptions {} export abstract class DataSource extends BaseNative {} export class TileDataSource extends DataSource {} export interface OrderedTileDataSourceOptions extends DataSourceOptions { dataSources: Array>; } export class OrderedTileDataSource extends TileDataSource {} export interface MergedMBVTTileDataSourceOptions extends DataSourceOptions { dataSources: Array>; } export class MergedMBVTTileDataSource extends TileDataSource {} export interface GeoJSONVectorTileDataSourceOptions extends TileDataSourceOptions { } export class GeoJSONVectorTileDataSource extends TileDataSource { createLayer(name: string): number deleteLayer(index: number) setLayerFeatureCollection(layerIndex: number, projection: Projection, featureCollection: FeatureCollection) setLayerGeoJSON(layerIndex: number, geoJSON: Object) }