简体   繁体   English

数据图 - 消除顶部/底部的空白

[英]Datamaps - eliminating white space at top/bottom

Several datamaps templates have a lot of whitespace above and below the actual outline of the continents (for example, the "basic" and US maps have this; chloropleth does not have much whitespace. See: http://datamaps.github.io/ )几个数据地图模板在大陆的实际轮廓上方和下方有很多空白(例如,“基本”地图和美国地图有这个;叶绿素没有太多空白。参见: http://datamaps.github.io/ )

Is there a way to shrink that empty space?有没有办法缩小那个空的空间?

I don't see any such option in the documentation, but would it be possible to go into the map source code itself and simply edit out this whitespace?我在文档中没有看到任何这样的选项,但是是否可以将 go 放入 map 源代码本身并简单地编辑掉这个空格? Any tips on how that might be done?关于如何做到这一点的任何提示?

Thank you!谢谢!

The fix I used for this issue was to fiddle with the CSS properties of the div that holds the map.我用于此问题的修复是摆弄包含 map 的 div 的 CSS 属性。 This also allows you to better position the elements based on what you have around it.这也使您可以根据周围的元素更好地 position 元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM