diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-11-27 18:41:04 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-11-27 15:54:17 -0200 |
commit | d8bcc943c50b1030f8b090d28b023ff7c40afd9c (patch) | |
tree | ec83b47b85260f2be6a2369322f64aa2e8d80a0d /src/mbgl/tile/custom_geometry_tile.cpp | |
parent | 02166a1802a5c17f5b0cebc5ea57f70aee4172ec (diff) | |
download | qtlocation-mapboxgl-d8bcc943c50b1030f8b090d28b023ff7c40afd9c.tar.gz |
[core] Android + old libstdc++ build fix
Diffstat (limited to 'src/mbgl/tile/custom_geometry_tile.cpp')
-rw-r--r-- | src/mbgl/tile/custom_geometry_tile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/tile/custom_geometry_tile.cpp b/src/mbgl/tile/custom_geometry_tile.cpp index 0d0ff5be61..b608d90d83 100644 --- a/src/mbgl/tile/custom_geometry_tile.cpp +++ b/src/mbgl/tile/custom_geometry_tile.cpp @@ -4,6 +4,7 @@ #include <mbgl/renderer/tile_parameters.hpp> #include <mbgl/actor/scheduler.hpp> #include <mbgl/style/filter_evaluator.hpp> +#include <mbgl/util/string.hpp> #include <mapbox/geojsonvt.hpp> @@ -33,7 +34,7 @@ void CustomGeometryTile::setTileData(const GeoJSON& geoJSON) { mapbox::geojsonvt::TileOptions vtOptions; vtOptions.extent = util::EXTENT; - vtOptions.buffer = std::round(scale * options.buffer); + vtOptions.buffer = ::round(scale * options.buffer); vtOptions.tolerance = scale * options.tolerance; featureData = mapbox::geojsonvt::geoJSONToTile(geoJSON, id.canonical.z, id.canonical.x, id.canonical.y, vtOptions).features; } else { |