using echarts-4.1.0,echarts-gl-1.1.1, in globe I used scatter3D to draw a scatter chart. The tooltip configured in option can be displayed normally, but it is normal to use dispatchAction to exhale tooltip, in the same way that I put it in the 2D diagram.
var globel = echarts.init(document.getElementById("globe"));
const option = {
// backgroundColor: "-sharp000",
visualMap: {
show: false,
min: 0,
max: 60,
inRange: {
symbolSize: [1.0, 10.0],
opacity:[1,0.5]
}
},
tooltip: {
trigger: "item",
alwaysShowContent:true,
formatter: function(prams,d,callback){
return prams.value
},
},
globe: {
baseTexture: require("../assets/world.png"),
globeOuterRadius: 100,
displacementScale: 0.1,
viewControl:{
autoRotate:false
},
postEffect:{
bloom:true,
screenSpaceAmbientOcclusion:true
},
shading: "color",
z: 9
},
series: {
type: "scatter3D",
coordinateSystem: "globe",
blendMode: "source-over",
symbolSize: 2,
itemStyle: {
// color: "rgb(148, 148, 148)",
color:"-sharpb4b4b4",
opacity: 1
},
data: data
}
}
*******************************
globel.dispatchAction({
type:"showTip",
seriesIndex:0,
dataIndex:1
})