| | |
| | | position = new global.DC.Position(Number(position[0]), Number(position[1])) |
| | | let label = new global.DC.Label(position, item.name) |
| | | label.attrParams = { 'id': item.id, item } |
| | | console.log(item, `${item.width}px`, 123) |
| | | label.setStyle({ |
| | | 'fillColor': color, |
| | | "font": `${item.width}px sans-serif`, |
| | |
| | | overlay.attrParams.linePositionStr = linePosition |
| | | overlay.attrParams.polygonPositionStr = positionStr |
| | | overlay.attrParams.color = params.color |
| | | overlay.attrParams.width = params.width |
| | | |
| | | let areaPolygon = new global.DC.Polygon(positionStr) |
| | | drawLayers.addOverlay(areaPolygon) |