diff options
-rw-r--r-- | src/mbgl/tile/custom_geometry_tile.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/tile/custom_geometry_tile.cpp b/src/mbgl/tile/custom_geometry_tile.cpp index e13b16a4f1..68e120750d 100644 --- a/src/mbgl/tile/custom_geometry_tile.cpp +++ b/src/mbgl/tile/custom_geometry_tile.cpp @@ -8,6 +8,8 @@ #include <mbgl/style/custom_tile_loader.hpp> #include <mapbox/geojsonvt.hpp> + +#include <cassert> #include <utility> namespace mbgl { @@ -32,7 +34,8 @@ void CustomGeometryTile::setTileData(const GeoJSON& geoJSON) { auto featureData = mapbox::feature::feature_collection<int16_t>(); if (geoJSON.is<FeatureCollection>() && !geoJSON.get<FeatureCollection>().empty()) { - const double scale = util::EXTENT / options->tileSize; + auto scale = util::EXTENT / options->tileSize; + assert(util::EXTENT % options->tileSize == 0); mapbox::geojsonvt::TileOptions vtOptions; vtOptions.extent = util::EXTENT; |