MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / isL7Layer

Function isL7Layer

src/common/mapping/utils/L7LayerUtil.js:173–187  ·  view source on GitHub ↗
(layer)

Source from the content-addressed store, hash-verified

171const L7_WIDTH_MULTIPLE = 0.5;
172
173export 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
189export function getL7Filter(filter, featureFilter) {
190 if (!filter) {

Callers 1

addL7LayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected