Merge pull request #11215 from ahocevar/flat-multipolygon

Fix MVT multipolygons with featureClass: Feature
This commit is contained in:
Andreas Hocevar
2020-06-24 19:36:38 +02:00
committed by GitHub
7 changed files with 134 additions and 17 deletions

View File

@@ -181,7 +181,7 @@ describe('ol.format.MVT', function () {
flatCoordinates,
ends
) {
flatCoordinates.push(0, 0, 3, 0, 3, 3, 3, 0, 0, 0);
flatCoordinates.push(0, 0, 3, 0, 3, 3, 0, 3, 0, 0);
flatCoordinates.push(1, 1, 1, 2, 2, 2, 2, 1, 1, 1);
ends.push(10, 20);
};
@@ -207,8 +207,8 @@ describe('ol.format.MVT', function () {
flatCoordinates,
ends
) {
flatCoordinates.push(0, 0, 1, 0, 1, 1, 1, 0, 0, 0);
flatCoordinates.push(1, 1, 2, 1, 2, 2, 2, 1, 1, 1);
flatCoordinates.push(0, 0, 1, 0, 1, 1, 0, 1, 0, 0);
flatCoordinates.push(1, 1, 2, 1, 2, 2, 1, 2, 1, 1);
ends.push(10, 20);
};
const feature = format.createFeature_({}, rawFeature);