仅显示单个州的完整美国县地图中的县 [英] Display only a single state with counties from a full US counties map

查看:43
本文介绍了仅显示单个州的完整美国县地图中的县的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在完整的美国县地图上显示一个州?

Is it possible to display a single state from a full US counties map?

我知道我可以获取每个州的形状文件和县,并创建topojson,但是如果可能的话,我宁愿使用一个文件.

I know I can get each states shape file and counties and create the topojson, but I'd rather work with one file if thats possible.

例如,以迈克·波斯托克(Mike Bostock)的美国全县地图为例.美国县地图这样可以只显示纽约吗?

For example take Mike Bostock's full US county map. US Counties Map Would it be possible to show just NY from this?

我还没有看到任何显示这种功能的示例.

I haven't seen any examples showing that type of functionality.

推荐答案

我最终完成了边界框,并在要显示的状态周围创建了剪切路径.

I ended up working off of project to bounding box and created a clipping path around the state I wanted to display.

有州/县的纽约州-已裁剪

这篇关于仅显示单个州的完整美国县地图中的县的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆