[core] Remove non-Map-dependent projection methods from Map
This commit is contained in:
committed by
Bruno de Oliveira Abinader
parent
8eb23cbac8
commit
092da9c956
@@ -17,7 +17,6 @@
|
||||
#include <mbgl/storage/resource.hpp>
|
||||
#include <mbgl/storage/response.hpp>
|
||||
#include <mbgl/util/exception.hpp>
|
||||
#include <mbgl/util/projection.hpp>
|
||||
#include <mbgl/util/math.hpp>
|
||||
#include <mbgl/util/exception.hpp>
|
||||
#include <mbgl/util/async_task.hpp>
|
||||
@@ -798,18 +797,6 @@ ViewportMode Map::getViewportMode() const {
|
||||
|
||||
#pragma mark - Projection
|
||||
|
||||
double Map::getMetersPerPixelAtLatitude(double lat, double zoom) const {
|
||||
return Projection::getMetersPerPixelAtLatitude(lat, zoom);
|
||||
}
|
||||
|
||||
ProjectedMeters Map::projectedMetersForLatLng(const LatLng& latLng) const {
|
||||
return Projection::projectedMetersForLatLng(latLng);
|
||||
}
|
||||
|
||||
LatLng Map::latLngForProjectedMeters(const ProjectedMeters& projectedMeters) const {
|
||||
return Projection::latLngForProjectedMeters(projectedMeters);
|
||||
}
|
||||
|
||||
ScreenCoordinate Map::pixelForLatLng(const LatLng& latLng) const {
|
||||
// If the center and point longitudes are not in the same side of the
|
||||
// antimeridian, we unwrap the point longitude so it would be seen if
|
||||
|
||||
Reference in New Issue
Block a user