Map won't show building numbers (tileMill + OSM)

前端 未结 3 425
萌比男神i
萌比男神i 2021-01-07 12:44

i\'m using tileMill for creating offline map for my iPhone app, long story short - i\'ve downloaded OSM data for Ukraine region from here. I\'ve checked that online map(from

3条回答
  •  滥情空心
    2021-01-07 13:15

    Layer

    Source: PostGIS

    Table or subquery

    ( SELECT way, "addr:housenumber" 
      FROM planet_osm_polygon
      WHERE  "addr:housenumber"  IS NOT NULL
    ) AS data
    

    Styling

    label.mss

    #housenumbers[zoom >= 17] {
      ::label {
        text-name: '[addr:housenumber]';
        text-face-name:@sans;
        text-size: 9;   
        text-placement:interior;
        text-min-distance: 1;
        text-wrap-width: 0;
        text-fill: #444;
      }    
    }
    

    "::label" is needed for prevent red points on the map.

    p.s. for russians, I wrote about it in my blog.

提交回复
热议问题