Skip to the content

Chizu地図

Draw SVG maps, frame regions, place numbered callouts and build geography quizzes with English and Japanese names.

Chizu is the Japanese word 地図 for map. About the name

Contents

Reference · Map, locator and quiz elements

defineLocatorfunction

Register <chizu-locator> or a host's own tag; an existing definition is preserved.

Import it

import { defineLocator } from "@johnmorrisdotca/chizu/element";

Also exported from: @johnmorrisdotca/chizu/element/define

Definition

function defineLocator(tag?: string): void

Parameters

NameTypeDescription
tag (optional)string

The custom tag name; omitted to use the package default.

Examples

import { defineLocator } from "@johnmorrisdotca/chizu/element";
defineLocator("article-locator");
document.body.append(document.createElement("article-locator"));

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chizu 1.5.0.