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 17:43:37 +0200 |
commit | 9ff1435aaa8856b776091c8cdae1666299818ab2 (patch) | |
tree | d8720b0c864a3557324966bafed03c88d578de9f | |
parent | f5b9716030209327c8fd2a232c01d0f3b4ae0755 (diff) | |
download | qtlocation-mapboxgl-9ff1435aaa8856b776091c8cdae1666299818ab2.tar.gz |
[core] Change GeoJSONOptions.clusterProperties to std::map
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(); |