About how echart obtains the longitude and latitude of the selected Baidu map

echart how to get the longitude and latitude of the selected Baidu map, which god knows to help, Baidu can"t get this problem.

Apr.09,2021

find the following method to get the bmap object
var ecModel = myChart._model;
var bmap = null;
ecModel.eachComponent ('bmap', function (bmapModel) {

)
if(bmap == null){
     bmap = bmapModel.__bmap;
}

});
/ / map latitude and longitude
var pix = bmap.pointToPixel ({

)
lng: 114.31,
lat: 30.52

});
Source https://www.cnblogs.com/strin.

Menu