[core] Eliminate use of ClassProperties for layout
This commit is contained in:
@@ -120,8 +120,8 @@ void AnnotationManager::updateStyle(Style& style) {
|
||||
|
||||
layer->source = SourceID;
|
||||
layer->sourceLayer = PointLayerID;
|
||||
layer->layout.set(PropertyKey::IconImage, Function<std::string>("{sprite}"));
|
||||
layer->layout.set(PropertyKey::IconAllowOverlap, Function<bool>(true));
|
||||
layer->layout.icon.image = std::string("{sprite}");
|
||||
layer->layout.icon.allowOverlap = true;
|
||||
|
||||
style.addLayer(std::move(layer));
|
||||
}
|
||||
|
||||
@@ -31,8 +31,7 @@ void ShapeAnnotationImpl::updateStyle(Style& style) {
|
||||
|
||||
std::unique_ptr<LineLayer> layer = std::make_unique<LineLayer>();
|
||||
layer->type = StyleLayerType::Line;
|
||||
|
||||
layer->layout.set(PropertyKey::LineJoin, Function<JoinType>(JoinType::Round));
|
||||
layer->layout.join = JoinType::Round;
|
||||
|
||||
const LinePaintProperties& properties = shape.properties.get<LinePaintProperties>();
|
||||
ClassProperties paintProperties;
|
||||
|
||||
Reference in New Issue
Block a user