metersToScreenPosition abstract method
Converts metrics coordinates (meters) to screen coordinates (pixels).
point (x,y) coordinates in meters Point.
clipToViewport If true, coordinates outside the viewport are clipped to the viewport edge.
Returns (x,y) coordinates in screen pixels.
Example:
// Convert meters to screen position with clipping
Point metersPoint3 = Point(50.0, 75.0);
Point screenPoint3 = _locationWindow!.metersToScreenPosition(metersPoint3, true);
print("Meters position (${metersPoint3.x}, ${metersPoint3.y}) converted to screen with clipping: (${screenPoint3.x}, ${screenPoint3.y})");
Implementation
math.Point<double> metersToScreenPosition(Point point, bool clipToViewport);