Echarts South China Sea Islands schematic display position adjustment

Source: Internet
Author: User

???? Recently need echart at the same time show Hainan Island and the South China Sea Islands, began to look for data on the South China Sea Islands, after the search, this schematic data is not (China.js map data one by one searched), is echarts some examples, not meet our requirements

???? The key code was later found in the echarts.min.js by the keyword ' South Sea Islands ', which echarts the data of the South China Sea Islands when the map was named China, and then through the coordinate transformations (setting the zoom ratio and then panning to the specified point) to show the Echart map.

???? It is not complicated to see the map of Hainan Island and the South China Sea Islands diagram. All you need to do is change the four parameters.
First of all to modify the upper-left position point, the original source settings [126, 25], to be modified near Hainan Island need to change these two values smaller points [110.5, 18.5]. Then, modify Ha[ca][da][0]/=, ha[ca][da][1]/=-300, where the parameters are set to the zoom ratio.

???? Echarts.js and echarts.min.js are slightly different, the reason is not clear
Attached: Https://

Echarts South China Sea Islands schematic display position adjustment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.