StreetViewPanoramaOptions.fromMap constructor

StreetViewPanoramaOptions.fromMap(
  1. Map<String, dynamic> map
)

Create StreetViewPanoramaOptions and put data by map.

Implementation

factory StreetViewPanoramaOptions.fromMap(Map<String, dynamic> map) {
  return new StreetViewPanoramaOptions(
    panoId: map['panoId'] as String?,
    position: map['position'] as LatLng?,
    radius: map['radius'] as double?,
    source: map['source'] as StreetViewSource?,
    panningGesturesEnabled: map['panningGesturesEnabled'] as bool?,
    streetNamesEnabled: map['streetNamesEnabled'] as bool?,
    userNavigationEnabled: map['userNavigationEnabled'] as bool?,
    zoomGesturesEnabled: map['zoomGesturesEnabled'] as bool?,
    panoramaCamera: map['panoramaCamera'] as StreetViewPanoramaCamera?,
  );
}