@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
24 lines (23 loc) • 1.3 kB
TypeScript
import { BaseNative } from '../BaseNative';
import { GeoJSONGeometryReaderOptions, WKBGeometryReaderOptions, WKTGeometryReaderOptions } from './reader';
import { FeatureCollection } from './feature';
import { Projection } from '../projections';
import { PolygonGeometry } from '.';
import { LineGeometry, PointGeometry } from './index.ios';
export declare class GeoJSONGeometryReader extends BaseNative<NTGeoJSONGeometryReader, GeoJSONGeometryReaderOptions> {
createNative(): NTGeoJSONGeometryReader;
readFeatureCollection(str: string | Object): FeatureCollection<DefaultLatLonKeys>;
readGeometry(value: string | Object): NTGeometry | PointGeometry | LineGeometry | PolygonGeometry<import("../core").DefaultLatLonKeys>;
set targetProjection(value: Projection);
get targetProjection(): Projection;
}
export declare class WKBGeometryReader extends BaseNative<NTWKBGeometryReader, WKBGeometryReaderOptions> {
z: boolean;
createNative(): NTWKBGeometryReader;
readGeometry(value: NSData | ArrayBuffer | NTBinaryData): PointGeometry | LineGeometry;
}
export declare class WKTGeometryReader extends BaseNative<NTWKTGeometryReader, WKTGeometryReaderOptions> {
z: boolean;
createNative(): NTWKTGeometryReader;
readGeometry(value: any): PointGeometry | LineGeometry;
}