[ios, android] Add methods to remove a custom layer

This commit is contained in:
John Firebaugh
2015-12-17 14:39:19 -08:00
parent d3c92a8b5c
commit 110f1ec796
11 changed files with 68 additions and 3 deletions

View File

@@ -449,6 +449,10 @@ void Map::addCustomLayer(const std::string& id,
before ? std::string(before) : mapbox::util::optional<std::string>());
}
void Map::removeCustomLayer(const std::string& id) {
context->invoke(&MapContext::removeLayer, id);
}
#pragma mark - Toggles
void Map::setDebug(MapDebugOptions mode) {