Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion zimui/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import "./style.css";

import { Map } from "maplibre-gl";
import { Map, ScaleControl } from "maplibre-gl";
import maplibre from "maplibre-gl";
import axios from "axios";

Expand Down Expand Up @@ -141,6 +141,8 @@ const parseUrlFragment = () => {
},
});

map.addControl(new ScaleControl({ unit: "metric" }), "bottom-right");

const setMapStyle = (styleName) => {
map.setStyle(`./assets/${styleName}`, {
validate: false,
Expand Down