attempting to put one annotation on the map - gets to the native call and then nothing happens
This commit is contained in:
@@ -204,6 +204,10 @@ public class MapView extends SurfaceView {
|
||||
}
|
||||
}
|
||||
|
||||
public void addAnnotation(LatLng marker) {
|
||||
mNativeMapView.addAnnotation(marker);
|
||||
}
|
||||
|
||||
//
|
||||
// Property methods
|
||||
//
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user