Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

Hash ​

Defined in: src/ui/hash.ts:12

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

Defined in: src/ui/hash.ts:25

Map element to listen for coordinate changes

Parameters ​

ParameterTypeDescription
mapMapThe map object

Returns ​

Hash


remove() ​

remove(): Hash

Defined in: src/ui/hash.ts:35

Removes hash

Returns ​

Hash

Properties ​

_updateHash() ​

_updateHash: () => Timeout

Defined in: src/ui/hash.ts:156

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

Returns ​

Timeout