()
| 29 | } |
| 30 | |
| 31 | render(){ |
| 32 | const { showPanel } = this.state; |
| 33 | |
| 34 | return (<div className={showPanel ? "open" : ""}> |
| 35 | <a href="javascript:void(0);" |
| 36 | onClick={this.handleOpen} |
| 37 | title={_("Object Detection")} |
| 38 | className="leaflet-control-objdetect-button leaflet-bar-part theme-secondary"></a> |
| 39 | <ObjDetectPanel map={this.props.map} isShowed={showPanel} tasks={this.props.tasks} onClose={this.handleClose} /> |
| 40 | </div>); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | export default L.Control.extend({ |