[core] Immutable Impls

This commit is contained in:
John Firebaugh
2017-04-25 18:20:26 -07:00
parent d3f23b83d4
commit c2a5894f2d
124 changed files with 2592 additions and 1487 deletions

View File

@@ -402,7 +402,7 @@ void Map::Impl::loadStyleJSON(const std::string& json) {
map.setPitch(map.getDefaultPitch());
}
onUpdate(Update::Classes | Update::AnnotationStyle);
onUpdate(Update::AnnotationStyle);
}
std::string Map::getStyleURL() const {
@@ -919,7 +919,7 @@ void Map::addLayer(std::unique_ptr<Layer> layer, const optional<std::string>& be
BackendScope guard(impl->backend);
impl->style->addLayer(std::move(layer), before);
impl->onUpdate(Update::Classes);
impl->onUpdate(Update::Repaint);
}
std::unique_ptr<Layer> Map::removeLayer(const std::string& id) {