pinWidget abstract method
- Widget widget,
- GeoCoordinates coordinates, {
- Anchor2D? anchor,
Pins a Widget to the MapView and returns a proxy object that can be used to
control the pinning.
The altitude component of the coordinates, if set, is interpreted as above sea level. When not set, the coordinates are interpreted as at ground level.
widget Widget to pin
coordinates GeoCoordinates to pin the widget at
anchor The anchor point for the widget which specifies the position offset relative to the widget's coordinates.
Returns WidgetPin a pin proxy object
Implementation
WidgetPin? pinWidget(Widget widget, GeoCoordinates coordinates, {Anchor2D? anchor});