英文:
How to filter out nodes and only show ways and relations on Overpass Turbo
问题
当我尝试以下代码时,它显示了所有公交车站和火车站的方式、关系和节点
[out:json][timeout:25];
(
relation"operator"="Toronto Transit Commission";
);
out geom;
有没有办法过滤掉节点,只保留路径(方式和关系)?
英文:
I am trying to learn how to use Overpass Turbo, and as I was exploring, I thought it would be fun to map out my public transportation system to show the paths the busses cover. I only want to see the paths to show the extent the transportation system.
When I tried the following, It showed ways and relations as well as nodes covering all of the bus stops and train stations
[out:json][timeout:25];
(
relation["operator"="Toronto Transit Commission"]({{bbox}});
);
out geom;
Is there any way to filter out the nodes and only keep the paths (ways and relations)?
答案1
得分: 1
你可以通过MapCSS来隐藏所有节点。
在你的查询末尾添加以下的MapCSS样式:
{{style:
node {
opacity:0.0;
fill-opacity:0.0;
}
}}
英文:
You can hide all nodes with the help of MapCSS.
Add the following MapCSS styling to the end of your query:
{{style:
node {
opacity:0.0;
fill-opacity:0.0;
}
}}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论