[android] - re-add projectedMeters
This commit is contained in:
committed by
Tobrun
parent
2802c55bd5
commit
a83c19e954
@@ -6,6 +6,7 @@ import android.support.annotation.NonNull;
|
||||
|
||||
import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.mapbox.mapboxsdk.geometry.LatLngBounds;
|
||||
import com.mapbox.mapboxsdk.geometry.ProjectedMeters;
|
||||
import com.mapbox.mapboxsdk.geometry.VisibleRegion;
|
||||
|
||||
/**
|
||||
@@ -44,6 +45,20 @@ public class Projection {
|
||||
setContentPadding(contentPadding, userLocationViewPadding);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the spherical Mercator projected meters for a LatLng.
|
||||
*/
|
||||
public ProjectedMeters getProjectedMetersForLatLng(LatLng latLng) {
|
||||
return nativeMapView.projectedMetersForLatLng(latLng);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the LatLng for a spherical Mercator projected meters.
|
||||
*/
|
||||
public LatLng getLatLngForProjectedMeters(ProjectedMeters projectedMeters) {
|
||||
return nativeMapView.latLngForProjectedMeters(projectedMeters);
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Returns the distance spanned by one pixel at the specified latitude and current zoom level.
|
||||
|
||||
Reference in New Issue
Block a user