translate property
The projection's translation offset.
The translation offset is specified as an two-element array [tx, ty], which determines the pixel coordinates of the projection’s center. The default translation offset places ⟨0°,0°⟩ at the center of a 960×500 area.
Implementation
@override
get translate => _lower48.translate;
Implementation
@override
set translate(_) {
var k = _lower48.scale, x = _[0], y = _[1];
_lower48Point = (_lower48
..translate = _
..clipExtent = [
[x - 0.455 * k, y - 0.238 * k],
[x + 0.455 * k, y + 0.238 * k]
])(_pointStream);
_alaskaPoint = (_alaska
..translate = [x - 0.307 * k, y + 0.201 * k]
..clipExtent = [
[x - 0.425 * k + epsilon, y + 0.120 * k + epsilon],
[x - 0.214 * k - epsilon, y + 0.234 * k - epsilon]
])(_pointStream);
_hawaiiPoint = (_hawaii
..translate = [x - 0.205 * k, y + 0.212 * k]
..clipExtent = [
[x - 0.214 * k + epsilon, y + 0.166 * k + epsilon],
[x - 0.115 * k - epsilon, y + 0.234 * k - epsilon]
])(_pointStream);
_reset();
}