OSM 地图上没有门牌号
There are no housenumbers om OSM map
我按照 switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ 中给出的说明成功安装了 tile server。所以我有运行良好的 web 服务器 + tile 服务器。但是地图上没有门牌号。我在我的 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)。但是我不明白这个提示。
嗯,问题解决了。我只是使用 carto.style 将数据重新加载到数据库,使用 swich2osm 指令重建图块服务器,但使用来自 openstreetmap-carto 的样式表。不是 OSMBright
我按照 switch2osm.org/serving-tiles/manually-building-a-tile-server-14-04/ 中给出的说明成功安装了 tile server。所以我有运行良好的 web 服务器 + tile 服务器。但是地图上没有门牌号。我在我的 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)。但是我不明白这个提示。
嗯,问题解决了。我只是使用 carto.style 将数据重新加载到数据库,使用 swich2osm 指令重建图块服务器,但使用来自 openstreetmap-carto 的样式表。不是 OSMBright