* If no host geo model, return null, which means using a * inner exclusive geo model.
()
| 175 | * inner exclusive geo model. |
| 176 | */ |
| 177 | getHostGeoModel(): GeoModel { |
| 178 | if (decideCoordSysUsageKind(this).kind === COORD_SYS_USAGE_KIND_BOX) { |
| 179 | // Always use an internal geo if specify as `COORD_SYS_USAGE_KIND_BOX`. |
| 180 | // Notice that currently we do not support laying out a geo based on |
| 181 | // another geo, but preserve the possibility. |
| 182 | return; |
| 183 | } |
| 184 | return this.getReferringComponents( |
| 185 | 'geo', {useDefault: false, enableAll: false, enableNone: false} |
| 186 | ).models[0] as GeoModel; |
| 187 | } |
| 188 | |
| 189 | getMapType(): string { |
| 190 | return (this.getHostGeoModel() || this).option.map; |
no test coverage detected