@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
19 lines • 716 B
JavaScript
import { fromNativeMapPos, toNativeMapPos } from '../core';
import { BaseProjection } from './index.common';
export class ProjectionClass extends BaseProjection {
fromWgs84(position) {
return fromNativeMapPos(this.getNative().fromWgs84(toNativeMapPos(position)));
}
toWgs84(position) {
return fromNativeMapPos(this.getNative().toWgs84(toNativeMapPos(position)));
}
fromLatLong(latitude, longitude) {
return fromNativeMapPos(this.getNative().fromLatLong(latitude, longitude));
}
toLatLong(x, y) {
return fromNativeMapPos(this.getNative().toLatLong(x, y));
}
}
export class Projection extends ProjectionClass {
}
//# sourceMappingURL=index.android.js.map