oneoo commented on issue #3899:
URL: 
https://github.com/apache/incubator-echarts/issues/3899#issuecomment-617087981


   > //格林兰岛表现怪异我把它单独进行了处理 就正常了
   > 
   > 
![SZ{4973`FH@V6L@IUT2}@AJ](https://user-images.githubusercontent.com/31274475/64394933-0f770280-d08b-11e9-9ed2-9526c1cc6895.png)
   > 
   > // 对世界地图的json文件中的经纬度坐标进行处理
   > const processLng = lng => {
   > if (lng > -30) {
   > lng = lng - 180
   > } else {
   > lng = lng + 180
   > }
   > return lng
   > }
   > //格林兰岛表现怪异
   > const processLngGe = lng => {
   > return lng + 180
   > }
   > WORLDJSON.features.map((district, index) => {
   > if (district.properties.name == 'Greenland') {
   > // WORLDJSON.features.splice(index, 1)
   > if (district.geometry.type == 'Polygon') {
   > district.geometry.coordinates.map(border => {
   > border.map(coord => {
   > coord[0] = processLngGe(coord[0])
   > 
   > ```
   >                 })
   >             })
   >         } else {
   >             district.geometry.coordinates.map(border => {
   >                 border.map(coordinates => {
   >                     coordinates.map(coord => {
   >                         coord[0] = processLngGe(coord[0])
   >                     })
   >                 })
   >             })
   >         }
   >     } else {
   >         if (district.geometry.type == 'Polygon') {
   >             district.geometry.coordinates.map(border => {
   >                 border.map(coord => {
   >                     coord[0] = processLng(coord[0])
   > 
   >                 })
   >             })
   >         } else {
   >             district.geometry.coordinates.map(border => {
   >                 border.map(coordinates => {
   >                     coordinates.map(coord => {
   >                         coord[0] = processLng(coord[0])
   >                     })
   >                 })
   >             })
   >         }
   >     }
   > 
   > })
   > ```
   
   请问可以提供个 demo 页吗?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to