basic single marker point annotation

Merge branch 'android-annotations-poc' into android-annotations
This commit is contained in:
Nicholas Hallahan
2015-07-13 16:32:16 -07:00
6 changed files with 76 additions and 4 deletions

View File

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

View File

@@ -214,6 +214,10 @@ class NativeMapView {
nativeSetLatLng(mNativeMapViewPtr, latLng, duration);
}
public void addAnnotation(LatLng latLng) {
nativeAddAnnotation(mNativeMapViewPtr, latLng);
}
public LatLng getLatLng() {
return nativeGetLatLng(mNativeMapViewPtr);
}
@@ -446,6 +450,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);