Skip to content

Commit

Permalink
Increased label's buffer size
Browse files Browse the repository at this point in the history
Prevent label clipping by increasing all buffers
for the label layers to the maximum. This increases
the tile size somewhat, and we will need to optimize
the exact size at a later time.
  • Loading branch information
Yuri Astrakhan committed May 19, 2015
1 parent cffd0f9 commit 3ad0203
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file modified .thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ SELECT osm_id, way, admin_level, 0 AS maritime /* TODO */
</Layer>

<Layer name="country_label"
buffer-size="8"
buffer-size="64"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">

<Datasource>
Expand Down Expand Up @@ -634,7 +634,7 @@ SELECT osm_id, way, name AS name_en, CASE
</Layer>

<Layer name="place_label"
buffer-size="8"
buffer-size="64"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">

<Datasource>
Expand Down Expand Up @@ -688,7 +688,7 @@ SELECT osm_id, way, name AS name_en, place AS "type",
</Layer>

<Layer name="road_label"
buffer-size="8"
buffer-size="64"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">

<Datasource>
Expand Down
6 changes: 3 additions & 3 deletions data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ Layer:
osm_id: Number
scalerank: Number
properties:
"buffer-size": 8
"buffer-size": 64
srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
- id: place_label
Datasource:
Expand Down Expand Up @@ -712,7 +712,7 @@ Layer:
osm_id: Number
type: String
properties:
"buffer-size": 8
"buffer-size": 64
srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
- id: road_label
Datasource:
Expand Down Expand Up @@ -836,7 +836,7 @@ Layer:
reflen: Number
shield: String
properties:
"buffer-size": 8
"buffer-size": 64
srs: +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over
maxzoom: 16
minzoom: 0
Expand Down

0 comments on commit 3ad0203

Please sign in to comment.