Skip to content

Commit

Permalink
feat: Allow the hash param to be a string or a boolean.
Browse files Browse the repository at this point in the history
  • Loading branch information
francois2metz committed Jun 22, 2020
1 parent fb9e070 commit 15c81ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@

### `hash`

- **Type:** `Boolean`
- **Type:** `Boolean`, `String`
- **Default:** `false`
- **Synced**
- **Description:** If true, the map's position (zoom, center latitude, center longitude, bearing, and pitch) will be synced with the hash fragment of the page's URL
- **Description:** If true, the map's position (zoom, center latitude, center longitude, bearing, and pitch) will be synced with the hash fragment of the page's URL. If it's a string, it will be the name of the param in a parameter-styled hash.
- **See:** `options.hash` in [Map](https://docs.mapbox.com/mapbox-gl-js/api/#map)

### `interactive`
Expand Down
2 changes: 1 addition & 1 deletion src/components/map/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
required: true,
},
hash: {
type: Boolean,
type: [Boolean, String],
default: false,
},
interactive: {
Expand Down

0 comments on commit 15c81ff

Please sign in to comment.