#include #include #include #include #include namespace mbgl { const style::LayerTypeInfo* SymbolLayerFactory::getTypeInfo() const noexcept { return style::SymbolLayer::Impl::staticTypeInfo(); } std::unique_ptr SymbolLayerFactory::createLayer(const std::string& id, const style::conversion::Convertible& value) noexcept { optional source = getSource(value); if (!source) { return nullptr; } return std::unique_ptr(new style::SymbolLayer(id, *source)); } std::unique_ptr SymbolLayerFactory::createLayout(const LayoutParameters& parameters, std::unique_ptr tileLayer, const std::vector>& group) noexcept { return std::make_unique(parameters.bucketParameters, group, std::move(tileLayer), parameters); } std::unique_ptr SymbolLayerFactory::createRenderLayer(Immutable impl) noexcept { assert(impl->getTypeInfo() == getTypeInfo()); return std::make_unique(staticImmutableCast(impl)); } } // namespace mbgl