orientationToPoint method

  1. @override
Future<Point<num>> orientationToPoint(
  1. int viewId, {
  2. required StreetViewPanoramaOrientation orientation,
})
override

Returns a screen location that corresponds to an orientationStreetViewPanoramaOrientation.

Implementation

@override
Future<Point> orientationToPoint(int viewId,
    {required StreetViewPanoramaOrientation orientation}) async {
  final point = await channel(viewId)!
      .invokeMethod("streetView#orientationToPoint", orientation.toMap());
  return Point(point["x"], point["y"]);
}