Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the hash param to be a string or a boolean. #155

Closed
wants to merge 2 commits into from
Closed
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
4 changes: 2 additions & 2 deletions docs_source/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