summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2015-05-21 10:16:35 +1000
committerLeith Bade <leith@mapbox.com>2015-05-21 10:16:35 +1000
commit8a83c31e05b47c910d5862cb2ed34828fc491e40 (patch)
treeb3c19c2a9b987735db5a89834443ae0f28d1b5ff /android
parenta89a75f5c7479067cab1c2f3b6a3f25b9d14ef36 (diff)
parentcea926c62e46619e71306a578be45eac59d3fc58 (diff)
downloadqtlocation-mapboxgl-8a83c31e05b47c910d5862cb2ed34828fc491e40.tar.gz
Merge pull request #1610 from mapbox/android-latlng-swap
Fix swapped lat/lng
Diffstat (limited to 'android')
-rw-r--r--android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
index da4b40c4c6..e482c0be5a 100644
--- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
+++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java
@@ -149,9 +149,9 @@ public class MapView extends SurfaceView {
// Load the attributes
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.MapView, 0, 0);
try {
- double centerLongitude = typedArray.getFloat(R.styleable.MapView_centerLongitude, 0.0f);
double centerLatitude = typedArray.getFloat(R.styleable.MapView_centerLatitude, 0.0f);
- LatLng centerCoordinate = new LatLng(centerLongitude, centerLatitude);
+ double centerLongitude = typedArray.getFloat(R.styleable.MapView_centerLongitude, 0.0f);
+ LatLng centerCoordinate = new LatLng(centerLatitude, centerLongitude);
setCenterCoordinate(centerCoordinate);
setZoomLevel(typedArray.getFloat(R.styleable.MapView_zoomLevel, 0.0f)); // need to set zoom level first because of limitation on rotating when zoomed out
setDirection(typedArray.getFloat(R.styleable.MapView_direction, 0.0f));