Home > front end >  After echarts import GEOMAP, mobile/click of the mouse after get the corresponding GPS point informa
After echarts import GEOMAP, mobile/click of the mouse after get the corresponding GPS point informa

Time:09-23

In baidu ECHARTS import geomap later, when the mouse move or click on the geomap layer to get the corresponding GPS point information?

Requirements: import in echarts geomap primitives, hoping for the newly added points in primitive information, click the GPS location information, after or in the geomap click on add a dot (icon) and can move icon and get GPS point information


Idea at present: now you can think of more LOW, the method is: when the geomap figure can yuan is small in the screen shows all the cases, according to the four corners of the GPS points, then calculate the location of the mouse on the screen, converted to GPS point information,

But when geomap figure yuan magnified beyond the screen, this method can be applicable, and this method on accuracy or some lack,

To ask you is there a better way to get the mouse to click geomap GPS point after the primitive information,

CodePudding user response:

Or from another Angle, I in the VUE, import GEOMAP, on the GEOMAP figure yuan mobile GPS point, what is the better components
  • Related