Skip to content

Commit

Permalink
iterating through list of lat legs mapbox#1716
Browse files Browse the repository at this point in the history
  • Loading branch information
hallahan committed Jul 16, 2015
1 parent 61cfcdb commit 7954c7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/cpp/jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,16 @@ jlong JNICALL nativeAddPolyline(JNIEnv *env, jobject obj, jlong nativeMapViewPtr
return -1;
}

for (jsize i = 0; i < len; i++) {
jobject jobj = reinterpret_cast<jobject>(env->GetObjectArrayElement(array, i));
if (jobj == nullptr) {
env->ExceptionDescribe();
return -1;
}

// vector.push_back(std_string_from_jstring(env, jstr));
}

return (jlong)width;
}

Expand Down

0 comments on commit 7954c7d

Please sign in to comment.