squash of #1655: shape annotations support for core & iOS

This commit is contained in:
Justin R. Miller
2015-06-15 18:30:39 -07:00
parent e75e538ddb
commit bd0bf294bf
43 changed files with 17079 additions and 267 deletions

View File

@@ -3,7 +3,8 @@
namespace mbgl {
LiveTileFeature::LiveTileFeature(FeatureType type_, GeometryCollection geometries_, std::map<std::string, std::string> properties_)
LiveTileFeature::LiveTileFeature(FeatureType type_, GeometryCollection geometries_,
std::unordered_map<std::string, std::string> properties_)
: type(type_),
properties(properties_),
geometries(geometries_) {}
@@ -41,6 +42,10 @@ void LiveTile::addLayer(const std::string& name, util::ptr<LiveTileLayer> layer)
layers.emplace(name, std::move(layer));
}
void LiveTile::removeLayer(const std::string& name) {
layers.erase(name);
}
util::ptr<GeometryTileLayer> LiveTile::getLayer(const std::string& name) const {
return getMutableLayer(name);
}