• Initialize a MapOptions object that is used when initializing a Map.

    For initializing a MapView please see MapInitOptions, and MapOptions.default for a convenient object that can be used in conjunction.

  • Specifies whether cross-source symbol collision detection should be enabled. Default is true.

  • With terrain on, if true, the map will render for performance priority, which may lead to layer reordering allowing to maximize performance (layers that are draped over terrain will be drawn first, including fill, line, background, hillshade and raster). Any layers that are positioned after symbols are draped last, over symbols. Otherwise, if set to false, the map will always be drawn for layer order priority.

    By default, it is set to true.

  • The size of the map object and renderer backend. For Apple platforms this is specified with points (or device-independent pixel units). Other platforms, such as Android, use screen pixel units.

    For MapView usage, this can be left as nil, since view resizing will ensure the correct size is updated.