@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
19 lines • 712 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().fromLatLng(latitude, longitude));
}
toLatLong(x, y) {
return fromNativeMapPos(this.getNative().toLatLongY(x, y));
}
}
export class Projection extends ProjectionClass {
}
//# sourceMappingURL=index.ios.js.map