Skip to content

Hash

Adds the map's position to its page's location hash. Passed as an option to the map object.

Methods

addTo()

addTo(map: Map): Hash

Map element to listen for coordinate changes

Parameters

Parameter Type Description
map Map The map object

Returns

Hash

Defined in

src/ui/hash.ts:24


remove()

remove(): Hash

Removes hash

Returns

Hash

Defined in

src/ui/hash.ts:34

Properties

_updateHash()

_updateHash: () => Timeout

Mobile Safari doesn't allow updating the hash more than 100 times per 30 seconds.

Returns

Timeout

Defined in

src/ui/hash.ts:152