diff --git a/docs_source/api/README.md b/docs_source/api/README.md index 42eb45e4..36a74c09 100644 --- a/docs_source/api/README.md +++ b/docs_source/api/README.md @@ -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` diff --git a/src/components/map/options.js b/src/components/map/options.js index 60bb2898..8ce369a0 100755 --- a/src/components/map/options.js +++ b/src/components/map/options.js @@ -22,7 +22,7 @@ export default { required: true }, hash: { - type: Boolean, + type: [Boolean, String], default: false }, interactive: {