You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/06/09 16:04:27 UTC

[GitHub] [incubator-echarts] DaikonX commented on issue #3308: 海南地图json加载后很小,其他省份显示正常。

DaikonX commented on issue #3308:
URL: https://github.com/apache/incubator-echarts/issues/3308#issuecomment-641052805


   我三沙市只留了一个岛;
   `{
         "id": "460300",
         "geometry": {
           "type": "MultiPolygon",
           "coordinates": [["@@HCFCFEBGEKMAMLCHAH"]],
           "encodeOffsets": [[[115046, 17318]]]
         },
         "properties": {
           "cp": [112.34882, 16.831039],
           "name": "三沙市",
           "childNum": 3
         }
       },`
   然后在echarts.registerMap的specialAreas参数加入
   `{
             三沙市: {
               left: 110.63119,
               top: 18.031971,
               width: 0.05
             }
           },`
   
   
   ![image](https://user-images.githubusercontent.com/23475171/84112052-a0d03680-aa5a-11ea-9ace-438479416ccc.png)
   
   具体调整查看https://echarts.apache.org/zh/api.html#echarts.registerMap
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org