pointToOrientation method

  1. @override
Future<StreetViewPanoramaOrientation> pointToOrientation(
  1. int viewId, {
  2. Point<num>? point,
})
override

Return the orientationStreetViewPanoramaOrientation that corresponds to a screen location.

Implementation

@override
Future<StreetViewPanoramaOrientation> pointToOrientation(int viewId,
    {Point? point}) async {
  return StreetViewPanoramaOrientation.fromMap(await channel(viewId)!
      .invokeMethod("streetView#pointToOrientation", [point!.x, point.y]));
}