Skip to the content

Hata旗

Load a native country or region flag, choose supported framing and keep each drawing’s source, author and licence.

Hata (旗) is Japanese for a flag. About the name

Contents

Reference · GP--LOCAL flag SVG

svgconstant

Guadeloupe's local flag: one of the flags of Guadeloupe (グアドループ), GP, in real use, as an SVG string: viewBox 600 by 400 (3:2), 17.0 KB. From Wikimedia Commons, "Flag of Guadeloupe (local) variant.svg" (public domain). flag("GP", { variant: "local" }) loads it, and variantsOf("GP") says its status, dates and why it is offered.

Import it

import { svg } from "@johnmorrisdotca/hata/flags/gp--local";

Definition

const svg: string

Examples

Example 1

import flag from "@johnmorrisdotca/hata/flags/gp--local";

const host=document.createElement("div");
host.innerHTML = flag;
console.log(host.querySelector("svg")?.getAttribute("viewBox"));

Example 2

import { svg } from "@johnmorrisdotca/hata/flags/gp--local";
console.log(svg.startsWith("<svg"),svg.length);
true 17437

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hata 1.6.0.