MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / _addStrokeLineForPoly

Method _addStrokeLineForPoly

src/common/mapping/WebMapV2.js:2664–2672  ·  view source on GitHub ↗

* @private * @function WebMapViewModel.prototype._addStrokeLineForPoly * @description 添加面的边框。 * @param {Object} style - mabgl style

({ style, source, layerID, parentLayerId, visible, minzoom, maxzoom })

Source from the content-addressed store, hash-verified

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') {

Callers 3

_createVectorLayerMethod · 0.95
_createMarkerLayerMethod · 0.95
_createRangeLayerMethod · 0.95

Calls 2

_addOverlayToMapMethod · 0.95

Tested by

no test coverage detected