{
props.setSelectedEntry(props.entry);
}}
>
| {props.entry.tileId} |
{z} |
{x} |
{y} |
{props.entry.offset} |
{props.entry.length} |
{props.entry.runLength === 0
? "directory"
: `tile(${props.entry.runLength})`}
|
);
};
interface Layer {
name: string;
features: Feature[];
}
interface Feature {
layerName: string;
path: string;
type: number;
id: number;
properties: any;
}
const smartCompare = (a: Layer, b: Layer): number => {
if (a.name === "earth") return -4;
if (a.name === "water") return -3;
if (a.name === "natural") return -2;
if (a.name === "landuse") return -1;
if (a.name === "places") return 1;
return 0;
};
const FeatureSvg = (props: {
feature: Feature;
setSelectedFeature: Dispatch