A map in a few lines
Install it from GitHub:
npm install github:grangedevgroup-code/mapkern-gl-js
Then give it a container. That's the whole world, the same map you see above, with no tile server or API key:
import * as mapkern from "mapkern-gl";
const map = new mapkern.Map({ container: "map" });
Your own data goes on top once the map has loaded:
map.on("load", () => {
map.addSource("places", { type: "geojson", data: "places.geojson" });
map.addLayer({ id: "places", type: "circle", source: "places", paint: { radius: 7, color: "#246a50" } });
});