Skip to content

Commit

Permalink
fix: Typo in MeshSymbol3D
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Sep 11, 2023
1 parent 3cf5dd8 commit b0aa415
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/MapRenderer/useEffects.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FillSymbol3DLayer from '@arcgis/core/symbols/FillSymbol3DLayer';
import MeshSymbol3D from '@arcgis/core/symbols/MeshSymbol3d';
import MeshSymbol3D from '@arcgis/core/symbols/MeshSymbol3D';
import SketchEdges3D from '@arcgis/core/symbols/edges/SketchEdges3D';
import type SceneLayer from '@arcgis/core/layers/SceneLayer';
import SceneView from '@arcgis/core/views/SceneView';
Expand Down Expand Up @@ -32,8 +32,8 @@ function updateEnvironment(view: SceneView) {
}

function updateRenderer(view: SceneView): void {
const layer = view.map.allLayers.find(({title})=>title === 'Buildings');
if(layer !== undefined) (layer as SceneLayer).renderer = getRenderer();
const layer = view.map.allLayers.find(({ title }) => title === 'Buildings');
if (layer !== undefined) (layer as SceneLayer).renderer = getRenderer();
}

const getRenderer = (hue = Math.floor(Math.random() * 365)): SimpleRenderer =>
Expand Down
4 changes: 2 additions & 2 deletions src/components/MapRendererUtils/box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type GraphicsLayer from '@arcgis/core/layers/GraphicsLayer';
import SketchEdges3D from '@arcgis/core/symbols/edges/SketchEdges3D';
import SolidEdges3D from '@arcgis/core/symbols/edges/SolidEdges3D';
import FillSymbol3DLayer from '@arcgis/core/symbols/FillSymbol3DLayer';
import MeshSymbol3d from '@arcgis/core/symbols/MeshSymbol3d';
import MeshSymbol3D from '@arcgis/core/symbols/MeshSymbol3D';

import { Camera } from './camera';
import { blockSize } from './config';
Expand Down Expand Up @@ -78,7 +78,7 @@ function getSymbol(
shape: Shape,
sketchEdges: boolean,
): GraphicWithType['symbol'] {
const symbol = new MeshSymbol3d({
const symbol = new MeshSymbol3D({
symbolLayers: [
new FillSymbol3DLayer({
material: {
Expand Down

0 comments on commit b0aa415

Please sign in to comment.