summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2019-11-07 18:16:31 +0200
committerGitHub <noreply@github.com>2019-11-07 18:16:31 +0200
commit2e8a350d68be75d9505fab9dc897c4abbcae05aa (patch)
treee73bd5c629b3357326e663a8405c35c227b36ff2 /include
parent1d49c23b8558e8c24a51e7ba84525ddd06f231be (diff)
downloadqtlocation-mapboxgl-2e8a350d68be75d9505fab9dc897c4abbcae05aa.tar.gz
[core] Add batch conversion of latLngs to/from screenCoords (#15891)
* [core] Add batch conversion of latLng vs screenCoord * [core] Take the simple approach
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index ac0a398d25..4757bb398c 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -97,6 +97,8 @@ public:
// Projection
ScreenCoordinate pixelForLatLng(const LatLng&) const;
LatLng latLngForPixel(const ScreenCoordinate&) const;
+ std::vector<ScreenCoordinate> pixelsForLatLngs(const std::vector<LatLng>&) const;
+ std::vector<LatLng> latLngsForPixels(const std::vector<ScreenCoordinate>&) const;
// Annotations
void addAnnotationImage(std::unique_ptr<style::Image>);