Skip to content

Commit

Permalink
Unify min/max-zoom type
Browse files Browse the repository at this point in the history
  • Loading branch information
maurhofer-ubique committed Jan 22, 2024
1 parent 955d9dc commit 6146851
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ Tiled2dMapVectorLayerParserResult Tiled2dMapVectorLayerParserHelper::parseStyleJ
Options options;

if (val["minzoom"].is_number_integer()) {
options.minZoom = val["minzoom"].get<u_int8_t>();
options.minZoom = val["minzoom"].get<uint8_t>();
}
if (val["maxzoom"].is_number_integer()) {
options.maxZoom = val["maxzoom"].get<int>();
options.maxZoom = val["maxzoom"].get<uint8_t>();
}
if (val["data"].is_string()) {
geojsonSources[key] = GeoJsonVTFactory::getGeoJsonVt(key, replaceUrlParams(val["data"].get<std::string>(), sourceUrlParams), loaders, localDataProvider, options);
Expand Down

0 comments on commit 6146851

Please sign in to comment.