#868 - Updating getLatLon() calls in MapView and NativeMapView. Updating Java to C++ bindings to support refactored names.

This commit is contained in:
Brad Leege
2015-02-12 18:45:30 -08:00
parent 6831f8a4cd
commit d5109659b1
3 changed files with 21 additions and 21 deletions

View File

@@ -208,7 +208,7 @@ public class MapView extends SurfaceView {
//
public LatLng getCenterCoordinate() {
return mNativeMapView.getLonLat();
return mNativeMapView.getLatLng();
}
public void setCenterCoordinate(LatLng centerCoordinate) {
@@ -217,7 +217,7 @@ public class MapView extends SurfaceView {
public void setCenterCoordinate(LatLng centerCoordinate, boolean animated) {
long duration = animated ? ANIMATION_DURATION : 0;
mNativeMapView.setLonLat(centerCoordinate, duration);
mNativeMapView.setLatLng(centerCoordinate, duration);
}
public void setCenterCoordinate(LatLngZoom centerCoordinate) {
@@ -227,7 +227,7 @@ public class MapView extends SurfaceView {
public void setCenterCoordinate(LatLngZoom centerCoordinate,
boolean animated) {
long duration = animated ? ANIMATION_DURATION : 0;
mNativeMapView.setLonLatZoom(centerCoordinate, duration);
mNativeMapView.setLatLngZoom(centerCoordinate, duration);
}
public double getDirection() {

View File

@@ -243,15 +243,15 @@ class NativeMapView {
nativeMoveBy(mNativeMapViewPtr, dx, dy, duration);
}
public void setLonLat(LatLng latLng) {
setLonLat(latLng, 0);
public void setLatLng(LatLng latLng) {
setLatLng(latLng, 0);
}
public void setLonLat(LatLng latLng, long duration) {
public void setLatLng(LatLng latLng, long duration) {
nativeSetLonLat(mNativeMapViewPtr, latLng, duration);
}
public LatLng getLonLat() {
public LatLng getLatLng() {
return nativeGetLonLat(mNativeMapViewPtr);
}
@@ -307,15 +307,15 @@ class NativeMapView {
return nativeGetZoom(mNativeMapViewPtr);
}
public void setLonLatZoom(LatLngZoom lonLatZoom) {
setLonLatZoom(lonLatZoom, 0);
public void setLatLngZoom(LatLngZoom lonLatZoom) {
setLatLngZoom(lonLatZoom, 0);
}
public void setLonLatZoom(LatLngZoom lonLatZoom, long duration) {
public void setLatLngZoom(LatLngZoom lonLatZoom, long duration) {
nativeSetLonLatZoom(mNativeMapViewPtr, lonLatZoom, duration);
}
public LatLngZoom getLonLatZoom() {
public LatLngZoom getLatLngZoom() {
return nativeGetLonLatZoom(mNativeMapViewPtr);
}