diff --git a/bin/style.js b/bin/style.js index 348bf7dc5..5ab534377 100644 --- a/bin/style.js +++ b/bin/style.js @@ -3526,7 +3526,8 @@ module.exports = { {"z": 9, "val": 10}, {"z": 12, "val": 13}, {"z": 14, "val": 17}, - {"z": 16, "val": 22} + {"z": 16, "val": 22}, + {"z": 22, "val": 22} ] }, "place_label_village": { @@ -3563,18 +3564,10 @@ module.exports = { "strokeBlur": 2, "size": [ "stops", - { - "z": 0, - "val": 12 - }, - { - "z": 14, - "val": 12 - }, - { - "z": 15, - "val": 13 - } + {"z": 0, "val": 12}, + {"z": 14, "val": 12}, + {"z": 15, "val": 13}, + {"z": 22, "val": 13} ] }, "water_label": { @@ -3590,6 +3583,11 @@ module.exports = { "color": "rgba(50,50,50,0.9)", "antialias": false }, + "poi_label": { + "color": "#444", + "size": 11, + "translate": [0, 26] + }, "poi_aerodrome": { "antialias": false }, @@ -3615,4 +3613,4 @@ module.exports = { } ], "sprite": "/img/maki-sprite" -}; \ No newline at end of file +}; diff --git a/include/llmr/util/image.hpp b/include/llmr/util/image.hpp index d38567041..dccc18589 100644 --- a/include/llmr/util/image.hpp +++ b/include/llmr/util/image.hpp @@ -2,6 +2,8 @@ #define LLMR_UTIL_IMAGE #include +#include +#include namespace llmr { namespace util { diff --git a/src/map/tile_parser.cpp b/src/map/tile_parser.cpp index bb7a77dfa..d06ced268 100644 --- a/src/map/tile_parser.cpp +++ b/src/map/tile_parser.cpp @@ -152,6 +152,7 @@ std::unique_ptr TileParser::createIconBucket(const VectorTileLayer& laye } std::unique_ptr TileParser::createTextBucket(const VectorTileLayer& layer, const BucketDescription& bucket_desc) { + // Determine the correct text stack. if (!layer.shaping.size()) { return nullptr; diff --git a/src/shader/text.vertex.glsl b/src/shader/text.vertex.glsl index 72981fded..86cbec98e 100644 --- a/src/shader/text.vertex.glsl +++ b/src/shader/text.vertex.glsl @@ -62,7 +62,7 @@ void main() { // all the angles are 0..256 representing 0..2PI // hide if (angle >= a_rangeend && angle < rangestart) - z += (1.0 - step(a_range[0], u_angle)) * step(a_range[1], u_angle); + z += step(a_range[0], u_angle) * (1.0 - step(a_range[1], u_angle)); gl_Position = u_matrix * vec4(a_pos, 0, 1) + u_exmatrix * vec4(a_offset / 64.0, z, 0); v_tex = a_tex * 4.0 / u_texsize;