Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,20 @@
- **Description:** A `fitBounds` object to use only when fitting the initial `bounds` provided above
- **See:** `options.fitBoundsOptions` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map)

### `cooperativeGestures`

- **Type:** `Boolean`
- **Default:** `true`
- **Description:** If true , scroll zoom will require pressing the ctrl or ⌘ key while scrolling to zoom map, and touch pan will require using two fingers while panning to move the map. Touch pitch will require three fingers to activate if enabled.
- **See:** `options.cooperativeGestures` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map)

### `locale`

- **Type:** `Object`
- **Default:** `undefined`
- **Description:** 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.
- **See:** `options.locale` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map)

## Actions

Asynchronous actions exposed via `GlMap.actions`
Expand Down
8 changes: 8 additions & 0 deletions src/components/map/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,13 @@ export default {
crossSourceCollisions: {
type: Boolean,
default: true
},
cooperativeGestures: {
type: Boolean,
default: true
},
locale: {
type: Object,
default: undefined
}
};