MCPcopy
hub / github.com/apache/echarts / getHostGeoModel

Method getHostGeoModel

src/chart/map/MapSeries.ts:177–187  ·  view source on GitHub ↗

* If no host geo model, return null, which means using a * inner exclusive geo model.

()

Source from the content-addressed store, hash-verified

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;

Callers 6

getMapTypeMethod · 0.95
renderMethod · 0.80
mapSeriesNeedsDrawMapFunction · 0.80
buildAllMapSeriesGroupsFunction · 0.80
drawMethod · 0.80
coordSysProviderMethod · 0.80

Calls 2

decideCoordSysUsageKindFunction · 0.90

Tested by

no test coverage detected