リファレンス
操作できる地図
import { … } from "@johnmorrisdotca/chizu/mount";
最小化と gzip 圧縮をしたサイズは 17.0 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Chizu in a page: mountChizu draws a map into any element and lets a person look around it by touch, mouse and
keyboard: drag to move, the buttons, wheel or a pinch to zoom in ten steps, a press to choose a region. The world pans
round without stopping. A separate entry (@johnmorrisdotca/chizu/mount), so a server never loads any of it.
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
CHIZU_MAP_STYLE | 定数 | THE STYLE a mounted map wears, beside the drawing's own (CHIZU_STYLE): the frame the map sits in, the zoom buttons over its corner and the line a screen reader is told what was chosen on. |
ChizuMount | 型 | The mounted native map’s drawing updates, selected region, framing, loaded features and cleanup handle. |
ChizuMountOptions | 型 | What a mounted map is told. |
ChizuView | 型 | Where a mounted map is looking. |
ensureChizuMapStyle | 関数 | Put the style in the page once: in the document's head, or in the shadow root the host is in. |
mountChizu | 関数 | Puts a map in an element, to look at by touch, mouse and keyboard: drag to move it, the buttons, the wheel or a pinch to zoom in ten steps, a press to choose a region, the arrow keys and plus and minus. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。