summaryrefslogtreecommitdiff
path: root/src/mbgl/map/live_tile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/live_tile.hpp')
-rw-r--r--src/mbgl/map/live_tile.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mbgl/map/live_tile.hpp b/src/mbgl/map/live_tile.hpp
index b13b5a1f66..5b4c2d1c16 100644
--- a/src/mbgl/map/live_tile.hpp
+++ b/src/mbgl/map/live_tile.hpp
@@ -2,6 +2,7 @@
#define MBGL_MAP_LIVE_TILE
#include <map>
+#include <unordered_map>
#include <mbgl/map/geometry_tile.hpp>
@@ -9,7 +10,8 @@ namespace mbgl {
class LiveTileFeature : public GeometryTileFeature {
public:
- LiveTileFeature(FeatureType, GeometryCollection, std::map<std::string, std::string> properties = {{}});
+ LiveTileFeature(FeatureType, GeometryCollection,
+ std::unordered_map<std::string, std::string> properties = {{}});
FeatureType getType() const override { return type; }
mapbox::util::optional<Value> getValue(const std::string&) const override;
@@ -17,7 +19,7 @@ public:
private:
FeatureType type = FeatureType::Unknown;
- std::map<std::string, std::string> properties;
+ std::unordered_map<std::string, std::string> properties;
GeometryCollection geometries;
};
@@ -40,6 +42,7 @@ public:
LiveTile();
void addLayer(const std::string&, util::ptr<LiveTileLayer>);
+ void removeLayer(const std::string&);
util::ptr<GeometryTileLayer> getLayer(const std::string&) const override;
util::ptr<LiveTileLayer> getMutableLayer(const std::string&) const;