(
geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload
)
| 46 | } |
| 47 | |
| 48 | render( |
| 49 | geoModel: GeoModel, ecModel: GlobalModel, api: ExtensionAPI, payload: Payload |
| 50 | ): void { |
| 51 | this._model = geoModel; |
| 52 | |
| 53 | if (!geoModel.get('show')) { |
| 54 | this._mapDraw && this._mapDraw.remove(); |
| 55 | this._mapDraw = null; |
| 56 | return; |
| 57 | } |
| 58 | |
| 59 | if (!this._mapDraw) { |
| 60 | this._mapDraw = new MapDraw(api); |
| 61 | } |
| 62 | const mapDraw = this._mapDraw; |
| 63 | mapDraw.draw(geoModel, ecModel, api, this, payload); |
| 64 | mapDraw.group.on('click', this._handleRegionClick, this); |
| 65 | mapDraw.group.silent = geoModel.get('silent'); |
| 66 | this.group.add(mapDraw.group); |
| 67 | this.updateSelectStatus(geoModel, ecModel, api); |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * @implements RoamHostView['__updateOnOwnRoam'] |
nothing calls this directly
no test coverage detected