xiaohongshu
xiaohongshu
cesium-expert
CesiumJS 3D 지도 전문가. "지도", "Cesium", "3D 맵", "GIS" 관련 질문 시 사용.
Full skill instructions
$ARGUMENTS CesiumJS 관련 질문에 답변하고 구현을 도와드립니다.
packages/map/src/
├── components/
│ ├── MapViewer.tsx # 메인 뷰어 컴포넌트
│ ├── Imagery.tsx # 이미지 레이어
│ ├── Terrain.tsx # 지형
│ └── Tiles3D.tsx # 3D 타일셋
├── stores/
│ ├── useMapStore.ts # 지도 상태
│ ├── useCameraStore.ts # 카메라 상태
│ └── useFeatureStore.ts # Feature 관리
├── hooks/
│ └── useCamera.ts # 카메라 제어
└── types/
└── index.ts
import { MapViewer, Imagery, Terrain } from "@pf-dev/map";
function Map() {
return (
<MapViewer
options={{
baseLayerPicker: false,
geocoder: false,
}}
>
<Imagery provider="vworld" />
<Terrain provider="cesium-world" />
</MapViewer>
);
}
import { useCameraStore } from "@pf-dev/map";
function Controls() {
const { flyTo, lookAt, zoomTo } = useCameraStore();
const handleFlyToSeoul = () => {
flyTo({
destination: Cesium.Cartesian3.fromDegrees(126.9780, 37.5665, 10000),
duration: 2,
});
};
return <button onClick={handleFlyToSeoul}>서울로 이동</button>;
}
import { useFeatureStore } from "@pf-dev/map";
function FeatureManager() {
const { addEntity, removeEntity, findByProperty } = useFeatureStore();
const addMarker = (position: Cesium.Cartesian3) => {
addEntity({
id: `marker-${Date.now()}`,
position,
billboard: {
image: "/marker.png",
scale: 1,
},
properties: {
type: "cctv",
name: "CCTV 1",
},
});
};
const findCCTVs = () => {
return findByProperty("type", "cctv");
};
}
A: 최적화 방법
requestRenderMode: true 설정 (필요할 때만 렌더)show: false로 숨긴 엔티티 정리<MapViewer
options={{
requestRenderMode: true,
maximumRenderTimeChange: Infinity,
}}
/>
A: 토큰 확인
VITE_ION_CESIUM_ACCESS_TOKEN=your-token
VITE_VWORLD_API_KEY=your-key
A: 지형 충돌 설정
viewer.scene.globe.depthTestAgainstTerrain = true;
viewer.scene.screenSpaceCameraController.enableCollisionDetection = true;
import { useMapStore } from "@pf-dev/map";
function ClickHandler() {
const viewer = useMapStore(state => state.viewer);
useEffect(() => {
if (!viewer) return;
const handler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas);
handler.setInputAction((click: { position: Cesium.Cartesian2 }) => {
const picked = viewer.scene.pick(click.position);
if (Cesium.defined(picked)) {
console.log("Picked:", picked.id);
}
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
return () => handler.destroy();
}, [viewer]);
}
// 위경도 → Cartesian3
const position = Cesium.Cartesian3.fromDegrees(126.9780, 37.5665, 100);
// Cartesian3 → 위경도
const cartographic = Cesium.Cartographic.fromCartesian(position);
const lng = Cesium.Math.toDegrees(cartographic.longitude);
const lat = Cesium.Math.toDegrees(cartographic.latitude);
const height = cartographic.height;
// 화면 좌표 → Cartesian3
const cartesian = viewer.camera.pickEllipsoid(
screenPosition,
viewer.scene.globe.ellipsoid
);
import { Tiles3D } from "@pf-dev/map";
<Tiles3D
url="/tiles/building/tileset.json"
onReady={(tileset) => {
viewer.zoomTo(tileset);
}}
style={{
color: {
conditions: [
["${height} > 100", "color('red')"],
["true", "color('white')"],
],
},
}}
/>
CesiumJS 최신 API가 필요하면 Context7로 조회하세요.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience