basic single marker point annotation
Merge branch 'android-annotations-poc' into android-annotations
This commit is contained in:
@@ -205,6 +205,10 @@ public class MapView extends SurfaceView {
|
||||
}
|
||||
}
|
||||
|
||||
public void addAnnotation(LatLng marker) {
|
||||
mNativeMapView.addAnnotation(marker);
|
||||
}
|
||||
|
||||
//
|
||||
// Property methods
|
||||
//
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user