summaryrefslogtreecommitdiff
path: root/include/mbgl/annotation/point_annotation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/annotation/point_annotation.hpp')
-rw-r--r--include/mbgl/annotation/point_annotation.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mbgl/annotation/point_annotation.hpp b/include/mbgl/annotation/point_annotation.hpp
index e226673997..3dea9a3e3e 100644
--- a/include/mbgl/annotation/point_annotation.hpp
+++ b/include/mbgl/annotation/point_annotation.hpp
@@ -9,9 +9,8 @@ namespace mbgl {
class PointAnnotation {
public:
- inline PointAnnotation(const LatLng& position_, const std::string& icon_ = "")
- : position(position_), icon(icon_) {
- }
+ PointAnnotation(const LatLng& position_, const std::string& icon_ = "")
+ : position(position_.wrapped()), icon(icon_) {}
const LatLng position;
const std::string icon;