| 138 | } |
| 139 | |
| 140 | openMap () { |
| 141 | // can't really get the bounds from this data, so will have to hack this solution |
| 142 | const options = { world: this.settings.world, dataType: 'ratio-region' } |
| 143 | const data = this.getData() |
| 144 | if (__guard__(data != null ? data.target : undefined, x => x.x) != null) { options.defaultFromZoom = data } |
| 145 | options.supermodel = this.settings.supermodel |
| 146 | const modal = new WorldSelectModal(options) |
| 147 | modal.callback = this.callback |
| 148 | return this.settings.view.openModalView(modal) |
| 149 | } |
| 150 | |
| 151 | callback (e) { |
| 152 | if (!e) { return } |