diff --git a/src/mbgl/annotation/point_annotation_impl.cpp b/src/mbgl/annotation/point_annotation_impl.cpp index c02b60c74..e073394f7 100644 --- a/src/mbgl/annotation/point_annotation_impl.cpp +++ b/src/mbgl/annotation/point_annotation_impl.cpp @@ -13,7 +13,7 @@ void PointAnnotationImpl::updateLayer(const TileID& tileID, AnnotationTileLayer& featureProperties.emplace("sprite", point.icon.empty() ? std::string("default_marker") : point.icon); mbgl::ScreenCoordinate projected = point.position.project(); - projected *= 1 << tileID.z; + projected *= std::pow(2, tileID.z); projected.x = std::fmod(projected.x, 1); projected.y = std::fmod(projected.y, 1); projected *= GeometryTileFeature::defaultExtent;