mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
inspector app has shared tile type detection
This commit is contained in:
@@ -2,15 +2,13 @@ import { useState, useEffect } from "react";
|
||||
import { styled, globalStyles } from "./stitches.config";
|
||||
|
||||
import Start from "./Start";
|
||||
import Inspector from "./Inspector";
|
||||
import LeafletMap from "./LeafletMap";
|
||||
import MaplibreMap from "./MaplibreMap";
|
||||
import Loader from "./Loader";
|
||||
|
||||
const Header = styled("div", {
|
||||
height: "$4",
|
||||
});
|
||||
|
||||
const GIT_SHA = import.meta.env.VITE_GIT_SHA.substr(0,8)
|
||||
const GIT_SHA = (import.meta.env.VITE_GIT_SHA || "").substr(0,8)
|
||||
|
||||
function App() {
|
||||
globalStyles();
|
||||
@@ -30,7 +28,7 @@ function App() {
|
||||
return (
|
||||
<div>
|
||||
<Header>pmtiles viewer | github | toggle | {GIT_SHA}</Header>
|
||||
{file ? <MaplibreMap file={file} /> : <Start setFile={setFile} />}
|
||||
{file ? <Loader file={file} /> : <Start setFile={setFile} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user