attempting to put one annotation on the map - gets to the native call and then nothing happens

This commit is contained in:
Nicholas Hallahan
2015-06-20 16:21:41 -07:00
parent 1779dd870d
commit ef31fc5aed
6 changed files with 75 additions and 4 deletions

View File

@@ -204,6 +204,10 @@ public class MapView extends SurfaceView {
}
}
public void addAnnotation(LatLng marker) {
mNativeMapView.addAnnotation(marker);
}
//
// Property methods
//

View File

@@ -197,6 +197,10 @@ class NativeMapView {
nativeSetLatLng(mNativeMapViewPtr, latLng, duration);
}
public void addAnnotation(LatLng latLng) {
nativeAddAnnotation(mNativeMapViewPtr, latLng);
}
public LatLng getLatLng() {
return nativeGetLatLng(mNativeMapViewPtr);
}
@@ -422,6 +426,8 @@ class NativeMapView {
private native void nativeSetLatLng(long nativeMapViewPtr, LatLng latLng,
long duration);
private native void nativeAddAnnotation(long nativeMapViewPtr, LatLng latLng);
private native LatLng nativeGetLatLng(long nativeMapViewPtr);
private native void nativeResetPosition(long nativeMapViewPtr);