[core] Check for NaNs in mbgl::util::{min,max,clamp}
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user