summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-10 12:05:10 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2015-11-11 16:59:49 +0200
commitc78e7696352e73f94500fd94a5eaaafffb971be6 (patch)
treea41e8934d663d91b319bcc047a59282f23c63bc5 /include/mbgl/map
parente2052ea3e46272f5b0eb26643c0d7e70bad46557 (diff)
downloadqtlocation-mapboxgl-c78e7696352e73f94500fd94a5eaaafffb971be6.tar.gz
[core] Use PrecisionPoint in coordinate functions
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 5276427574..99d4fa6e0b 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -101,8 +101,8 @@ public:
// Position
void moveBy(const PrecisionPoint&, const Duration& = Duration::zero());
- void setLatLng(LatLng latLng, vec2<double> point, const Duration& = Duration::zero());
- void setLatLng(LatLng latLng, const Duration& = Duration::zero());
+ void setLatLng(const LatLng&, const PrecisionPoint&, const Duration& = Duration::zero());
+ void setLatLng(const LatLng&, const Duration& = Duration::zero());
LatLng getLatLng() const;
void resetPosition();
@@ -112,7 +112,7 @@ public:
double getScale() const;
void setZoom(double zoom, const Duration& = Duration::zero());
double getZoom() const;
- void setLatLngZoom(LatLng latLng, double zoom, const Duration& = Duration::zero());
+ void setLatLngZoom(const LatLng&, double zoom, const Duration& = Duration::zero());
CameraOptions cameraForLatLngBounds(LatLngBounds bounds, EdgeInsets padding);
CameraOptions cameraForLatLngs(std::vector<LatLng> latLngs, EdgeInsets padding);
void resetZoom();
@@ -138,10 +138,10 @@ public:
void getWorldBoundsMeters(ProjectedMeters &sw, ProjectedMeters &ne) const;
void getWorldBoundsLatLng(LatLng &sw, LatLng &ne) const;
double getMetersPerPixelAtLatitude(const double lat, const double zoom) const;
- const ProjectedMeters projectedMetersForLatLng(const LatLng latLng) const;
- const LatLng latLngForProjectedMeters(const ProjectedMeters projectedMeters) const;
- const vec2<double> pixelForLatLng(const LatLng latLng) const;
- const LatLng latLngForPixel(const vec2<double> pixel) const;
+ ProjectedMeters projectedMetersForLatLng(const LatLng&) const;
+ LatLng latLngForProjectedMeters(const ProjectedMeters&) const;
+ PrecisionPoint pixelForLatLng(const LatLng&) const;
+ LatLng latLngForPixel(const PrecisionPoint&) const;
// Annotations
AnnotationID addPointAnnotation(const PointAnnotation&);