Fix lints
This commit is contained in:
parent
b544c315b0
commit
b07af96673
2 changed files with 11 additions and 15 deletions
|
@ -259,9 +259,9 @@ export function Form() {
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
{sceneView?.model.children.map((child) => {
|
{sceneView?.model.children.map((child) => {
|
||||||
const key = `toggle-visibility-${child.name}`;
|
const key = `toggle-visibility-${child.name}`;
|
||||||
//const color = `#${(
|
const color = `#${(
|
||||||
// (child as Mesh).material as MeshStandardMaterial
|
(child as Mesh).material as MeshStandardMaterial
|
||||||
//).color.getHexString()}`;
|
).color.getHexString()}`;
|
||||||
const visible = (child as Mesh).visible;
|
const visible = (child as Mesh).visible;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -272,7 +272,7 @@ export function Form() {
|
||||||
<span
|
<span
|
||||||
className="inline-block w-5 h-5 flex-none rounded"
|
className="inline-block w-5 h-5 flex-none rounded"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "white",
|
backgroundColor: color,
|
||||||
}}
|
}}
|
||||||
></span>
|
></span>
|
||||||
<input
|
<input
|
||||||
|
|
|
@ -5,7 +5,6 @@ import {
|
||||||
MeshBasicMaterial,
|
MeshBasicMaterial,
|
||||||
MeshPhongMaterial,
|
MeshPhongMaterial,
|
||||||
MeshStandardMaterial,
|
MeshStandardMaterial,
|
||||||
Object3D,
|
|
||||||
PerspectiveCamera,
|
PerspectiveCamera,
|
||||||
Plane,
|
Plane,
|
||||||
Raycaster,
|
Raycaster,
|
||||||
|
@ -18,7 +17,7 @@ import {
|
||||||
import { buildMeshes } from "./utils/build-meshes";
|
import { buildMeshes } from "./utils/build-meshes";
|
||||||
import { Extent, buildScene } from "./utils/build-scene";
|
import { Extent, buildScene } from "./utils/build-scene";
|
||||||
import { getMetadata, transform } from "./utils/utils";
|
import { getMetadata, transform } from "./utils/utils";
|
||||||
import { MAPTILER_API_KEY, MODEL_ID, SERVICE_URL } from "./config";
|
import { MODEL_ID, SERVICE_URL } from "./config";
|
||||||
import {
|
import {
|
||||||
Orientation,
|
Orientation,
|
||||||
buildClippingplanes,
|
buildClippingplanes,
|
||||||
|
@ -33,15 +32,12 @@ import {
|
||||||
OrbitControls,
|
OrbitControls,
|
||||||
} from "three/examples/jsm/Addons.js";
|
} from "three/examples/jsm/Addons.js";
|
||||||
import {
|
import {
|
||||||
LODFrustum,
|
|
||||||
LODRaycast,
|
LODRaycast,
|
||||||
MapPlaneNode,
|
MapPlaneNode,
|
||||||
MapTilerProvider,
|
|
||||||
MapView,
|
MapView,
|
||||||
OpenStreetMapsProvider,
|
OpenStreetMapsProvider,
|
||||||
UnitsUtils,
|
UnitsUtils,
|
||||||
} from "geo-three";
|
} from "geo-three";
|
||||||
import { CustomMapHeightNodeShader } from "./CustomMapHeightNodeShader";
|
|
||||||
import { Data, createSVG } from "./utils/create-borehole-svg";
|
import { Data, createSVG } from "./utils/create-borehole-svg";
|
||||||
import { TileData, updateTiles } from "./ShaderMaterial";
|
import { TileData, updateTiles } from "./ShaderMaterial";
|
||||||
|
|
||||||
|
@ -487,12 +483,12 @@ async function init(container: HTMLElement, modelId = MODEL_ID) {
|
||||||
|
|
||||||
// Create a map tiles provider object
|
// Create a map tiles provider object
|
||||||
const provider = new OpenStreetMapsProvider();
|
const provider = new OpenStreetMapsProvider();
|
||||||
const heightProvider = new MapTilerProvider(
|
//const heightProvider = new MapTilerProvider(
|
||||||
MAPTILER_API_KEY,
|
// MAPTILER_API_KEY,
|
||||||
"tiles",
|
// "tiles",
|
||||||
"terrain-rgb",
|
// "terrain-rgb",
|
||||||
"png"
|
// "png"
|
||||||
);
|
//);
|
||||||
|
|
||||||
// Create the map view for OSM topography
|
// Create the map view for OSM topography
|
||||||
const lod = new LODRaycast();
|
const lod = new LODRaycast();
|
||||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue