| 171 | const L7_WIDTH_MULTIPLE = 0.5; |
| 172 | |
| 173 | export function isL7Layer(layer) { |
| 174 | const layout = layer.layout || {}; |
| 175 | return ( |
| 176 | (layer.type === 'circle' && layout['circle-animate-rings']) || // 动画点 |
| 177 | layer.type === 'radar' || // 雷达图 |
| 178 | layer.type === 'point-extrusion' || // 3D柱状图 |
| 179 | layer.type === 'line-curve' || // OD |
| 180 | layer.type === 'line-curve-extrusion' || // OD-3D |
| 181 | layer.type === 'line-extrusion' || // 3D线 |
| 182 | layer.type === 'chart' || // 统计专题图 |
| 183 | (layer.type === 'heatmap' && layout['heatmap-shape']) || // L7-2D热力图 |
| 184 | layer.type === 'heatmap-extrusion' || // L7-3D热力图 |
| 185 | (layer.type === 'symbol' && layout['text-z-offset'] > 0) |
| 186 | ); |
| 187 | } |
| 188 | |
| 189 | export function getL7Filter(filter, featureFilter) { |
| 190 | if (!filter) { |