transform property
GeoTransform?
get
transform
A transform applied to any input geometry before it is rendered.
final path = GeoPath()..transform = geoAlbers();
path.projection() // a geoAlbers instance
The null
transform represents the identity transformation: the
input geometry is not transformed and is instead rendered directly in raw
coordinates. This can be useful for fast rendering of
pre-projected geometry, or for
fast rendering of the equirectangular projection.
The given transform is typically one of D4’s built-in geographic projections; however, any object that implements GeoTransform can be used, enabling the use of custom projections. See GeoTransform.new for more examples of arbitrary geometric transformations.
Implementation
GeoTransform? get transform => _transform;
set
transform
(GeoTransform? transform)
Implementation
set transform(GeoTransform? transform) {
if (transform == null) {
_transform = null;
_transformStream = identity;
} else {
_transformStream = (_transform = transform).stream;
}
}