12
bin/style.js
12
bin/style.js
@@ -917,7 +917,7 @@ module.exports = {
|
||||
"poi": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"field": "scalerank",
|
||||
"value": [1, 2],
|
||||
"size": 12,
|
||||
@@ -926,7 +926,7 @@ module.exports = {
|
||||
"poi_3": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"field": "scalerank",
|
||||
"value": 3,
|
||||
"size": 12,
|
||||
@@ -935,7 +935,7 @@ module.exports = {
|
||||
"poi_4_4": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"filter": [
|
||||
"and",
|
||||
{ "field": "scalerank", "value": 4 },
|
||||
@@ -947,7 +947,7 @@ module.exports = {
|
||||
"poi_4_16": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"filter": [
|
||||
"and",
|
||||
{ "field": "scalerank", "value": 4 },
|
||||
@@ -960,7 +960,7 @@ module.exports = {
|
||||
"poi_4_all": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"field": "scalerank",
|
||||
"value": 4,
|
||||
"size": 12,
|
||||
@@ -969,7 +969,7 @@ module.exports = {
|
||||
"poi_aerodrome": {
|
||||
"source": "outdoors",
|
||||
"layer": "poi_label",
|
||||
"icon": "maki",
|
||||
"icon": "{{maki}}",
|
||||
"field": "maki",
|
||||
"value": "airport",
|
||||
"size": 24,
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <llmr/platform/gl.hpp>
|
||||
#include <llmr/util/constants.hpp>
|
||||
#include <llmr/util/token.hpp>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
@@ -28,16 +29,10 @@ void IconBucket::addFeature(const VectorTileFeature &feature, SpriteAtlas &sprit
|
||||
std::string field;
|
||||
|
||||
if (geometry.field.size()) {
|
||||
auto field_it = feature.properties.find(geometry.field);
|
||||
if (field_it == feature.properties.end()) {
|
||||
if (debug::tileParseWarnings) {
|
||||
fprintf(stderr, "[WARNING] feature doesn't contain field '%s'\n", geometry.field.c_str());
|
||||
}
|
||||
return;
|
||||
}
|
||||
field = util::replaceTokens(geometry.field, feature.properties);
|
||||
}
|
||||
|
||||
field = toString(field_it->second);
|
||||
} else {
|
||||
if (!field.size()) {
|
||||
field = "<circle>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user