You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ui/map.ts
+41-7Lines changed: 41 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -399,6 +399,11 @@ const defaultOptions = {
399
399
* @param {Object} [options.locale=null] A patch to apply to the default localization table for UI strings such as control tooltips. The `locale` object maps namespaced UI string IDs to translated strings in the target language;
400
400
* see [`src/ui/default_locale.js`](https://github.com/mapbox/mapbox-gl-js/blob/main/src/ui/default_locale.js) for an example with all supported string IDs. The object may specify all UI strings (thereby adding support for a new translation) or only a subset of strings (thereby patching the default translation table).
401
401
* @param {boolean} [options.testMode=false] Silences errors and warnings generated due to an invalid accessToken, useful when using the library to write unit tests.
402
+
* @param {number} [options.scaleFactor=1] The scale factor for text and icon sizes in symbol layers.
403
+
* A value greater than `1` increases label sizes, useful for improving accessibility or adjusting
404
+
* for high-density displays. The scale factor is clamped per-layer by `text-size-scale-range`
405
+
* and `icon-size-scale-range` style properties.
406
+
* This option is experimental and may change in future releases.
402
407
* @param {'raster' | 'icon_set' | 'auto'} [options.spriteFormat='auto'] The format of the image sprite to use. If set to `'auto'`, vector iconset will be used for all mapbox-hosted sprites and raster sprite for all custom URLs.
403
408
* @param {ProjectionSpecification} [options.projection='mercator'] The [projection](https://docs.mapbox.com/mapbox-gl-js/style-spec/projection/) the map should be rendered in.
404
409
* Supported projections are:
@@ -1209,28 +1214,57 @@ export class Map extends Camera {
0 commit comments