我根据switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/.中给出的指令成功地安装了平铺服务器所以我有一个运行良好的网络服务器+瓷砖服务器。但地图上没有寄宿者。我在imposm-mapping.py中添加了我的下一段代码
buildings = Polygons (
name = 'buildings',
fields = (
('area', PseudoArea()),
('addr:housenumber', String()),
),
mapping = {
'building': (
'__any__',
),
'railway': (
'station',
)
'aeroway': (
'terminal',
),
}
)在我的labels.mss中有:
#housenumber [zoom>=17]{
::label {
text-name: '[addr:housenumber]';
text-face-name:@sans;
text-size: 9;
text-placement: interior;
text-min-dostance: 1;
text-wrap-width: 0;
text-fill: #444;
}
}在default.style,我有node,way addr:housenumber text linear。我看到了Map won't show building numbers (tileMill + OSM)问题。但我不明白这些窍门。
发布于 2015-10-09 15:05:27
问题解决了。我只是用carto.style将数据重新加载到数据库,用swich2osm指令重建平铺服务器,但使用openstreetmap的样式表重建。不是OSMBright
https://stackoverflow.com/questions/32972808
复制相似问题