Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
#868 - Updating LatLngZoom to match LatLng
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Feb 13, 2015
1 parent 693fa48 commit 6831f8a
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.os.Parcel;
import android.os.Parcelable;

import com.mapbox.mapboxgl.lib.geometry.LatLng;

public class LatLngZoom extends LatLng implements Parcelable {
Expand All @@ -19,13 +18,13 @@ public LatLngZoom[] newArray(int size) {

private double zoom;

public LatLngZoom(double lon, double lat, double zoom) {
super(lon, lat);
public LatLngZoom(double lat, double lon, double zoom) {
super(lat, lon);
this.zoom = zoom;
}

public LatLngZoom(LatLng latLng, double zoom) {
super(latLng.getLon(), latLng.getLat());
super(latLng.getLatitude(), latLng.getLongitude());
this.zoom = zoom;
}

Expand Down Expand Up @@ -69,8 +68,7 @@ public boolean equals(Object obj) {

@Override
public String toString() {
return "LatLngZoom [lon=" + super.getLon() + ", lat=" + super.getLat() + ", zoom=" + zoom
+ "]";
return "LatLngZoom [lat=" + super.getLatitude() + ", lon=" + super.getLongitude() + ", zoom=" + zoom + "]";
}

@Override
Expand Down

0 comments on commit 6831f8a

Please sign in to comment.