mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
* add README for installing /app [#244]
This commit is contained in:
@@ -70,12 +70,14 @@ const ToolbarLink = StyledLink;
|
||||
const ToolbarToggleGroup = StyledToggleGroup;
|
||||
const ToolbarToggleItem = StyledToggleItem;
|
||||
|
||||
function Loader(props: { file: PMTiles }) {
|
||||
function Loader(props: { file: PMTiles; mapHashPassed: boolean }) {
|
||||
let [tab, setTab] = useState("maplibre");
|
||||
|
||||
let view;
|
||||
if (tab === "maplibre") {
|
||||
view = <MaplibreMap file={props.file} />;
|
||||
view = (
|
||||
<MaplibreMap file={props.file} mapHashPassed={props.mapHashPassed} />
|
||||
);
|
||||
} else if (tab === "inspector") {
|
||||
view = <Inspector file={props.file} />;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user