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

Readd projectedMeters #9766

Merged
merged 1 commit into from
Aug 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.mapbox.mapboxsdk.geometry.LatLng;
import com.mapbox.mapboxsdk.geometry.LatLngBounds;
import com.mapbox.mapboxsdk.geometry.ProjectedMeters;
import com.mapbox.mapboxsdk.geometry.VisibleRegion;

/**
Expand Down Expand Up @@ -44,6 +45,20 @@ public void invalidateContentPadding(int[] userLocationViewPadding) {
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.
Expand Down