You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "helgasoft (via GitHub)" <gi...@apache.org> on 2023/08/17 19:28:50 UTC

[GitHub] [echarts] helgasoft commented on issue #18999: geo纹理贴图怎么制作和区域范围一致的纹理图片呢

helgasoft commented on issue #18999:
URL: https://github.com/apache/echarts/issues/18999#issuecomment-1682842944

   Tough to do, but possible. You need to grab the texture with exact same size/zoom as the _geojson_ map.
   Then eventually you could play the positioning with _width/height_ values in 
   ```<div id="main" style="width: 650px; height: 735px;">```
   [Demo Code](https://codepen.io/helgasoft/pen/abPbOde) + please local-host the **texture file** attached here. Sorry, cannot (or don't know how to) upload to _codepen.io_.
   Good news is, once texture and map are nicely superimposed, roaming works great.
   ### texture file:
   ![hk](https://github.com/apache/echarts/assets/13038071/77959031-d197-45f2-9e79-2118d05a5928)
   ### chart:
   ![image](https://github.com/apache/echarts/assets/13038071/02c211d9-4ecd-46b8-8060-13072be5584e)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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