{{ target: component-globe }}
Globe component. The component provides the drawing of the Earth and the coordinate system. The developer can display 3D Scatter, 3D Bubble, 3D Bar, 3D Lines on it.
Whether to show the globe component.
{{ use: partial-zlevel }}
{{ use: partial-viewport }}
The radius of the globe. The unit is relative to the three-dimensional space, related to viewControl.distance.
The outer radius of the globe. This area between globeRadius
and globeOuterRadius
will be used to display 3D histograms, scatter plots, etc.
{{ use: partial-environment( componentType=“globe”, componentName=“地球” ) }}
{{ use: partial-environment }}
The texture of the globe. Support for the string of image paths, images object or Canvas objects.
It also supports to use an echarts example as a texture directly, in which case mouse actions on Earth will be linked to the echarts instance used on the texture.
Example:
// Use the globe's texture image baseTexture: 'asset/earth.jpg' // Use the world map example of echarts as a texture. var canvas = document.createElement('canvas'); var mapChart = echarts.init(canvas, null, { width: 4096, height: 2048 }); mapChart.setOption({ series : [ { type: 'map', map: 'world', // Draw full size echarts example top: 0, left: 0, right: 0, bottom: 0, boundingCoords: [[-180, 90], [180, -90]] } ] }); ... baseTexture: mapChart
The high texture of the globe. High textures can be used to match Bump Map to show the light and dark details of the Earth's surface. The following two images show the difference between using heightTexture
and not using heightTexuture
.
The displacement texture of the vertices of the globe, the default is the same as a heightTexture
Compared to bump maps, The displacement of the vertex is to directly shift the vertices according to the texture. Valid when displaymentScale is greater than 0.
The displacement map of the globe's vertex. The default is 0, which means no displacement. The following two images show the effects of setting different displacementScale
.
The quality of the globe's vertex displacement. Support for 'low'
, 'medium'
, 'high'
, 'ultra'
settings.Higher quality can show more ground height detail. The following two images show the effects of different displacementQuality
.
{{ use: partial-shading-globe( componentType=“globe”, componentName=“地球” ) }}
{{ use: partial-light-globe( componentType=“globe”, componentName=“地球” ) }}
{{ use: partial-post-effect( componentType=“globe”, componentName=“地球” ) }}
{{ use: partial-temporal-super-sampling( componentType=“globe”, componentName=“地球” ) }}
{{ use: partial-view-control( componentType=“globe”, componentName=“地球”, defaultPanSensitivity=0 ) }}
Position the longitudes and latitudes. Ignore alpha 和 beta after the setting.
viewControl: { // locate in BeiJing targetCoord: [116.46, 39.92] }
Configuration of the Earth's Surface Layer. You can use this configuration item to add clouds, or to supplement [baseTexture](~globe. baseTexture) to draw the outline of the country, and so on.
Whether to show this layer.
Layper type, Optional:
'overlay'
The overlay on the ground surface can be used to display clouds and the like.
'blend'
Mix with baseTexture.
The name of the layer. When setting the properties of the layer with setOption, you can use the name to identify the layer that needs to be updated.
chart.setOption({ globe: { layer: [{ // Update the texture of the layer named 'cloud' name: 'cloud', texture: 'cloud.png' }] } });
When type is 'blend'
is valid .
Optional:
albedo
is mixed to albedo, affected by lighting.
emission
is mixed to self-illuminating, unaffected by light.
The intensity of the mixture.
The coloring effect of the overlay is the same as globe.shading, which supports 'color'
, 'lambert'
, 'realistic'
Valid when type is 'overlay'
.
The distance from the overlay to the surface of the globe.
Valid when type is 'overlay'
.
The texture of the globe. Support for the string of image paths, images object or Canvas objects.
It also supports to use an echarts example as a texture directly, in which case mouse actions on Earth will be linked to the echarts instance used on the texture.
{{ use: partial-zlevel }}
{{ use: partial-viewport }}
{{ target: partial-shading-globe(master=partial-shading) }}
{{ block: shading-compare }} Here are the differences between different coloring effects.
{{ /block }}
{{ target: partial-light-globe(master=partial-light) }}
{{ block: light-extend }} ###${prefix|default(“#”)} time(Date)
The time of sunshine. The current system time is used by default.
{{ /block }}