Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] Change GeoJSONOptions.clusterProperties to std::map
Browse files Browse the repository at this point in the history
The clusterProperties contain only few elements at most.
  • Loading branch information
alexshalamov committed Mar 5, 2020
1 parent f5b9716 commit 9ff1435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/mbgl/style/sources/geojson_source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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();
Expand Down

0 comments on commit 9ff1435

Please sign in to comment.