void FillAnnotationImpl::updateStyle(Style& style) const { Layer* layer = style.getLayer(layerID); if (!layer) { auto newLayer = std::make_unique<FillLayer>(layerID, AnnotationManager::SourceID); newLayer->setSourceLayer(layerID); layer = style.addLayer(std::move(newLayer), AnnotationManager::PointLayerID); } FillLayer* fillLayer = layer->as<FillLayer>(); fillLayer->setFillOpacity(annotation.opacity); fillLayer->setFillColor(annotation.color); fillLayer->setFillOutlineColor(annotation.outlineColor); }