[core] Android + old libstdc++ build fix
This commit is contained in:
@@ -15,7 +15,7 @@ OpacityState::OpacityState(bool placed_, bool offscreen)
|
||||
}
|
||||
|
||||
OpacityState::OpacityState(const OpacityState& prevState, float increment, bool placed_) :
|
||||
opacity(std::fmax(0, std::fmin(1, prevState.opacity + (prevState.placed ? increment : -increment)))),
|
||||
opacity(::fmax(0, ::fmin(1, prevState.opacity + (prevState.placed ? increment : -increment)))),
|
||||
placed(placed_) {}
|
||||
|
||||
bool OpacityState::isHidden() const {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user