MapOptions constructor
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,
- bool? collectResourceTiming,
- num? fadeDuration,
- bool? crossSourceCollisions,
- String? accessToken,
- 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,
));