Avoid unnecessary transform in MVT format
When using ol.render.Feature there was a mandatory geometry transform. With this change it is now easy to read features directly in the native tile projection. Since there is no needed transform, there is no need either to define an extent and a world extent, for that use-case.
This commit is contained in:
@@ -194,7 +194,7 @@ class MVT extends FeatureFormat {
|
||||
values,
|
||||
id
|
||||
);
|
||||
feature.transform(options.dataProjection, options.featureProjection);
|
||||
feature.transform(options.dataProjection);
|
||||
} else {
|
||||
let geom;
|
||||
if (geometryType == GeometryType.POLYGON) {
|
||||
|
||||
Reference in New Issue
Block a user