summaryrefslogtreecommitdiff
path: root/src/style/bucket_description.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style/bucket_description.cpp')
-rw-r--r--src/style/bucket_description.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/style/bucket_description.cpp b/src/style/bucket_description.cpp
new file mode 100644
index 0000000000..94d0b8115c
--- /dev/null
+++ b/src/style/bucket_description.cpp
@@ -0,0 +1,19 @@
+#include <llmr/style/bucket_description.hpp>
+
+#include <iostream>
+
+std::ostream& llmr::operator<<(std::ostream& os, const BucketDescription& bucket) {
+ os << "Bucket:" << std::endl;
+ os << " - type: " << (uint32_t)bucket.type << std::endl;
+ os << " - source_name: " << bucket.source_name << std::endl;
+ os << " - source_layer: " << bucket.source_layer << std::endl;
+ os << " - source_field: " << bucket.source_field << std::endl;
+ for (const Value& value : bucket.source_value) {
+ os << " - source_value: " << value << std::endl;
+ }
+ os << " - cap: " << (uint32_t)bucket.cap << std::endl;
+ os << " - join: " << (uint32_t)bucket.join << std::endl;
+ os << " - font: " << bucket.font << std::endl;
+ os << " - font_size: " << bucket.font_size << std::endl;
+ return os;
+}