MapOptions constructor

MapOptions({
  1. dynamic hash,
  2. bool? interactive,
  3. dynamic container,
  4. num? bearingSnap,
  5. bool? pitchWithRotate,
  6. bool? clickTolerance,
  7. bool? attributionControl,
  8. dynamic customAttribution,
  9. String? logoPosition,
  10. bool? failIfMajorPerformanceCaveat,
  11. bool? preserveDrawingBuffer,
  12. bool? antialias,
  13. bool? refreshExpiredTiles,
  14. LngLatBounds? maxBounds,
  15. bool? scrollZoom,
  16. num? minZoom,
  17. num? maxZoom,
  18. num? minPitch,
  19. num? maxPitch,
  20. dynamic style,
  21. bool? boxZoom,
  22. bool? dragRotate,
  23. dynamic dragPan,
  24. bool? keyboard,
  25. bool? doubleClickZoom,
  26. bool? touchZoomRotate,
  27. bool? trackResize,
  28. LngLat? center,
  29. num? zoom,
  30. num? bearing,
  31. num? pitch,
  32. LngLatBounds? bounds,
  33. dynamic fitBoundsOptions,
  34. bool? renderWorldCopies,
  35. num? maxTileCacheSize,
  36. String? localIdeographFontFamily,
  37. RequestTransformFunctionJsImpl? transformRequest,
  38. bool? collectResourceTiming,
  39. num? fadeDuration,
  40. bool? crossSourceCollisions,
  41. String? accessToken,
  42. dynamic locale,
})

Implementation

factory MapOptions({
  dynamic hash,
  bool? interactive,
  dynamic container,
  num? bearingSnap,
  bool? pitchWithRotate,
  bool? clickTolerance,
  bool? attributionControl,
  dynamic customAttribution,
  String? logoPosition,
  bool? failIfMajorPerformanceCaveat,
  bool? preserveDrawingBuffer,
  bool? antialias,
  bool? refreshExpiredTiles,
  LngLatBounds? maxBounds,
  bool? scrollZoom,
  num? minZoom,
  num? maxZoom,
  num? minPitch,
  num? maxPitch,
  dynamic style,
  bool? boxZoom,
  bool? dragRotate,
  dynamic dragPan,
  bool? keyboard,
  bool? doubleClickZoom,
  bool? touchZoomRotate,
  bool? trackResize,
  LngLat? center,
  num? zoom,
  num? bearing,
  num? pitch,
  LngLatBounds? bounds,
  dynamic fitBoundsOptions,
  bool? renderWorldCopies,
  num? maxTileCacheSize,
  String? localIdeographFontFamily,
  RequestTransformFunctionJsImpl? transformRequest, //TODO: Remove JsImpl
  bool? collectResourceTiming,
  num? fadeDuration,
  bool? crossSourceCollisions,
  String? accessToken,
  dynamic locale,
}) =>
    MapOptions.fromJsObject(MapOptionsJsImpl(
      //hash: hash,
      interactive: interactive ?? true,
      container: container,
      bearingSnap: bearingSnap,
      pitchWithRotate: pitchWithRotate ?? true,
      clickTolerance: clickTolerance ?? true,
      attributionControl: attributionControl ?? true,
      customAttribution: customAttribution,
      logoPosition: logoPosition ?? 'bottom-left',
      failIfMajorPerformanceCaveat: failIfMajorPerformanceCaveat,
      preserveDrawingBuffer: preserveDrawingBuffer,
      antialias: antialias,
      refreshExpiredTiles: refreshExpiredTiles,
      maxBounds: maxBounds?.jsObject,
      scrollZoom: scrollZoom ?? true,
      minZoom: minZoom,
      maxZoom: maxZoom,
      minPitch: minPitch,
      maxPitch: maxPitch,
      style: style,
      boxZoom: boxZoom,
      dragRotate: dragRotate,
      dragPan: dragPan ?? true,
      keyboard: keyboard ?? true,
      doubleClickZoom: doubleClickZoom ?? true,
      touchZoomRotate: touchZoomRotate ?? true,
      trackResize: trackResize ?? true,
      center: center?.jsObject,
      zoom: zoom,
      bearing: bearing,
      pitch: pitch,
      bounds: bounds?.jsObject,
      fitBoundsOptions: fitBoundsOptions,
      renderWorldCopies: renderWorldCopies,
      maxTileCacheSize: maxTileCacheSize,
      localIdeographFontFamily: localIdeographFontFamily,
      transformRequest: transformRequest,
      collectResourceTiming: collectResourceTiming,
      fadeDuration: fadeDuration,
      crossSourceCollisions: crossSourceCollisions,
      accessToken: accessToken,
      locale: locale,
    ));