summaryrefslogtreecommitdiff
path: root/test/style/conversion
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-08-07 14:45:48 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-08-08 12:53:32 +0300
commit15a26231474d08e3884e424601b609c53d7ef086 (patch)
treed71c8c3edd53aadbbe2f29b4d8109055b6c62e1b /test/style/conversion
parentfd73dea05e645041cf27a28ba67ce37eb6d4c6bc (diff)
downloadqtlocation-mapboxgl-15a26231474d08e3884e424601b609c53d7ef086.tar.gz
[core] Add lineMetrics to GeoJSONOptions
This patch also bumps geojson-vt-cpp version to 6.6.0, which enables the `lineMetrics` option.
Diffstat (limited to 'test/style/conversion')
-rw-r--r--test/style/conversion/geojson_options.test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/style/conversion/geojson_options.test.cpp b/test/style/conversion/geojson_options.test.cpp
index 4c5a0c9aa4..181189775b 100644
--- a/test/style/conversion/geojson_options.test.cpp
+++ b/test/style/conversion/geojson_options.test.cpp
@@ -32,6 +32,7 @@ TEST(GeoJSONOptions, RetainsDefaults) {
ASSERT_EQ(converted.maxzoom, defaults.maxzoom);
ASSERT_EQ(converted.buffer, defaults.buffer);
ASSERT_EQ(converted.tolerance, defaults.tolerance);
+ ASSERT_EQ(converted.lineMetrics, defaults.lineMetrics);
// Supercluster
ASSERT_EQ(converted.cluster, defaults.cluster);
@@ -47,7 +48,8 @@ TEST(GeoJSONOptions, FullConversion) {
"tolerance": 3,
"cluster": true,
"clusterRadius": 4,
- "clusterMaxZoom": 5
+ "clusterMaxZoom": 5,
+ "lineMetrics": true
})JSON", error);
// GeoJSON-VT
@@ -55,6 +57,7 @@ TEST(GeoJSONOptions, FullConversion) {
ASSERT_EQ(converted.maxzoom, 1);
ASSERT_EQ(converted.buffer, 2);
ASSERT_EQ(converted.tolerance, 3);
+ ASSERT_TRUE(converted.lineMetrics);
// Supercluster
ASSERT_EQ(converted.cluster, true);