Skip to content

Class: Hash

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

Methods

addTo

addTo(map): Hash

Map element to listen for coordinate changes

Parameters

Name Type Description
map Map The map object

Returns

Hash

this

Defined in

src/ui/hash.ts:25


remove

remove(): Hash

Removes hash

Returns

Hash

this

Defined in

src/ui/hash.ts:37

Properties

_updateHash

_updateHash: () => Timeout

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

Type declaration

▸ (): Timeout

Returns

Timeout

Defined in

src/ui/hash.ts:136