Skip to content

Commit

Permalink
chore: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jul 3, 2024
1 parent d1afc52 commit 64effe3
Show file tree
Hide file tree
Showing 3 changed files with 178 additions and 177 deletions.
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"dependencies": {
"cesium": "1.103.0",
"cesium-mvt-imagery-provider": "^1.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"resium": "^1.16.0"
Expand Down
4 changes: 2 additions & 2 deletions example/src/Imagery.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { MVTImageryProvider } from "cesium-mvt-imagery-provider";
import { CesiumMVTImageryProvider } from "cesium-mvt-imagery-provider";
import { FC, useEffect, useState } from "react";
import { useCesium } from "resium";

export const Imagery: FC = () => {
const { viewer } = useCesium();
const [isFeatureSelected, setIsFeatureSelected] = useState<boolean>(false);
useEffect(() => {
const imageryProvider = new MVTImageryProvider({
const imageryProvider = new CesiumMVTImageryProvider({
urlTemplate: "/sample_mvt/{z}/{x}/{y}.mvt",
layerName: "layerName",
onRenderFeature: () => {
Expand Down
Loading

0 comments on commit 64effe3

Please sign in to comment.