环境
我试过禁用
MGLSymbolStyleLayer
具有
MGLShapeSource
是的。
之后
MGLMapView
装了我做的
MGL符号样式层
private func makeSymbolLayer(withId identifier: String, style: MGLStyle) {
let options = [MGLShapeSourceOption.clustered: false as NSNumber]
let source = MGLShapeSource(identifier: identifier, features: [], options: options)
let layer = MGLSymbolStyleLayer(identifier: identifier, source: source)
style.addSource(source)
style.addLayer(layer)
}
然后,当我从服务器获取数据时,我填充一个形状。我用不同的图标创建功能。
source.shape = MGLShapeCollectionFeature(shapes: loadedFeatures)
但不管怎样,团簇反应总是开着的。
是否可以禁用
MGL符号样式层
是吗?