kkpoon / earth

A WebComponent to display an earth

Home Page:https://kkpoon.github.io/earth/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

earth

A WebComponent to display an earth

Usage

<my-earth center="[114,0]" style="width: 100%; height: 980px;"></my-earth>
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://unpkg.com/topojson"></script>
<script src="https://unpkg.com/@webcomponents/webcomponentsjs"></script>
<script type="module">
    import { EarthWebComponent } from "./main.js";
    window.addEventListener("WebComponentsReady", function(e) {
    window.customElements.define("my-earth", EarthWebComponent);
    });
</script>

About

A WebComponent to display an earth

https://kkpoon.github.io/earth/

License:MIT License


Languages

Language:JavaScript 87.1%Language:HTML 12.9%