fix labels
This commit is contained in:
26
bin/style.js
26
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"
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#define LLMR_UTIL_IMAGE
|
||||
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace llmr {
|
||||
namespace util {
|
||||
|
||||
@@ -152,6 +152,7 @@ std::unique_ptr<Bucket> TileParser::createIconBucket(const VectorTileLayer& laye
|
||||
}
|
||||
|
||||
std::unique_ptr<Bucket> TileParser::createTextBucket(const VectorTileLayer& layer, const BucketDescription& bucket_desc) {
|
||||
|
||||
// Determine the correct text stack.
|
||||
if (!layer.shaping.size()) {
|
||||
return nullptr;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user