ensureChizuMapStyle関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Put the style in the page once: in the document's head, or in the shadow root the host is in.
インポート
import { ensureChizuMapStyle } from "@johnmorrisdotca/chizu/mount";
定義
function ensureChizuMapStyle(host: Element): void
引数
| 名前 | 型 | 説明 |
|---|---|---|
host | Element | The page or shadow-root element that receives the native map and its scoped styles. |
例
import { ensureChizuMapStyle } from "@johnmorrisdotca/chizu/mount";
// Put the mounted map's stylesheet in the page (or the shadow root) once, before drawing into it yourself.
ensureChizuMapStyle(document.body);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。