* @private * @function WebMapViewModel.prototype._addStrokeLineForPoly * @description 添加面的边框。 * @param {Object} style - mabgl style
({ style, source, layerID, parentLayerId, visible, minzoom, maxzoom })
| 2662 | * @param {Object} style - mabgl style |
| 2663 | */ |
| 2664 | _addStrokeLineForPoly({ style, source, layerID, parentLayerId, visible, minzoom, maxzoom }) { |
| 2665 | const lineStyle = { |
| 2666 | style: this._transformStyleToMapBoxGl(style, 'LINE'), |
| 2667 | layout: { |
| 2668 | visibility: visible |
| 2669 | } |
| 2670 | }; |
| 2671 | this._addOverlayToMap({ type: 'LINE', source, layerID, parentLayerId, layerStyle: lineStyle, minzoom, maxzoom }); |
| 2672 | } |
| 2673 | |
| 2674 | _getThemeField(layerInfo) { |
| 2675 | if (layerInfo.layerType === 'VECTOR') { |
no test coverage detected