diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-03-05 12:04:24 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-03-05 14:00:05 +0200 |
commit | 341ce4b2a1157cd6c9d35a551260d2f15de7fe29 (patch) | |
tree | 4101a2c6636c6c65ba125eb77954dce8b55b5368 | |
parent | ecc5376aaf0aca0b10bde9b26a180a0e37c185e8 (diff) | |
download | qtlocation-mapboxgl-upstream/alexshalamov_styleable_snapshotter.tar.gz |
[core] Change GeoJSONOptions.clusterProperties to std::mapupstream/alexshalamov_styleable_snapshotter
The clusterProperties contain only few elements at most.
-rw-r--r-- | include/mbgl/style/sources/geojson_source.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/style/sources/geojson_source.hpp b/include/mbgl/style/sources/geojson_source.hpp index 4bd250b895..7c75433c6a 100644 --- a/include/mbgl/style/sources/geojson_source.hpp +++ b/include/mbgl/style/sources/geojson_source.hpp @@ -7,8 +7,8 @@ #include <mbgl/util/geojson.hpp> #include <mbgl/util/optional.hpp> +#include <map> #include <memory> -#include <unordered_map> #include <utility> namespace mbgl { @@ -32,7 +32,7 @@ struct GeoJSONOptions { uint8_t clusterMaxZoom = 17; using ClusterExpression = std::pair<std::shared_ptr<mbgl::style::expression::Expression>, std::shared_ptr<mbgl::style::expression::Expression>>; - using ClusterProperties = std::unordered_map<std::string, ClusterExpression>; + using ClusterProperties = std::map<std::string, ClusterExpression>; ClusterProperties clusterProperties; static Immutable<GeoJSONOptions> defaultOptions(); |