We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a6f0e0 commit 47cf1f2Copy full SHA for 47cf1f2
src/index.android.ts
@@ -89,6 +89,9 @@ export function nativeImageProperty(...args) {
89
90
export function mapPosVectorFromArgs<T = DefaultLatLonKeys>(positions: MapPosVector<T> | GenericMapPos<T>[], ignoreAltitude = true) {
91
let nativePoses: com.carto.core.MapPosVector;
92
+ if (!positions) {
93
+ return null;
94
+ }
95
if (typeof (positions as any).getNative === 'function') {
96
nativePoses = (positions as MapPosVector<T>).getNative();
97
} else {
0 commit comments