Skip to content

Commit

Permalink
Merge pull request #10 from dabeeo/feat/03080853-judy-multiMap
Browse files Browse the repository at this point in the history
fix: georeferencing을 사용하지 않을 때 changeFloor 에 대한 설명추가
  • Loading branch information
juyeong-baek authored Apr 1, 2024
2 parents 411dd02 + 0497c83 commit b32b0a6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
11 changes: 8 additions & 3 deletions src/components/pages/multiMap/multiMapText.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ map.context.removeBuilding(buildingId); // 4. 그렸던 빌딩 제거
<br />
1.2. floor 를 입력하지 않으면 실외지도가 가장 먼저 그려지게 됩니다.
<br />
2. 빌딩 혹은 실외지도를 switching하기 위해 addBuilding 을 통해 원하는 빌딩, 층으로 이동할 수 있습니다.
2. 빌딩 혹은 실외지도를 switching하기 위해 addBuilding <b>혹은</b> changeFloor 을 통해 원하는 빌딩, 층으로 이동할 수 있습니다.
<br />
2.1. 빌딩 혹은 실외지도로 이동하게 되면 기존에 그려져있던 빌딩 혹은 실외지도는 지워집니다.
2.1. addBuilding(buildingId, floorId) 으로 이동하는 경우는 특정 빌딩의 특정 층으로 이동할 수 있습니다.
<br />
2.2. addBuilding() 을 사용하지 않고 changeFloor() 를 통해 다른 빌딩의 층으로도 이동할 수 있습니다.
<br />
2.3. 빌딩 혹은 실외지도로 이동하게 되면 기존에 그려져있던 빌딩 혹은 실외지도는 지워집니다.
</p>
<pre>
<code className={styles.code}>{`
Expand All @@ -66,7 +70,8 @@ const mapOption = {
}
// 실외지도가 있는 지도에서 floor 를 입력하지 않으면 기본층은 실외지도로 가장 먼저 실외지도가 그려지게 됩니다.
const map = await dabeeoMaps.showMap(mapContainer, mapOption, mapData); // 1. 1번 빌딩 1층 표출
await map.context.addBuilding(buildingId, floorId); // 2. 다른 층 표출 (1번 빌딩 제거)
await map.context.addBuilding(buildingId, floorId); // 2.1. 다른 빌딩의 다른 층 표출 (1번 빌딩 제거)
await map.context.changeFloor(floorId) // 2.2. 다른 층으로 이동 (다른 빌딩의 층으로도 가능)
`}</code>
</pre>
<p>
Expand Down
16 changes: 10 additions & 6 deletions src/components/pages/multiMap/multiMapTextEn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,23 @@ map.context.removeBuilding(buildingId); // 4. Remove the drawn building
<br />
1.2. If no floor is specified, the outdoor map will be drawn first.
<br />
2. Use addBuilding to switch between buildings or outdoor maps.
2. To switch between buildings or outdoor maps, you can move to the desired building or floor using addBuilding <b>or</b> changeFloor.
<br />
2.1. When moving to a building or outdoor map, the previously drawn building or outdoor map will be removed.
2.1. When using addBuilding(buildingId, floorId), you can move to a specific floor of a specific building.
<br />
2.2. Without using addBuilding(), you can also move to floors of different buildings using changeFloor().
<br />
2.3. When moving to a building or outdoor map, the previously drawn building or outdoor map will be cleared.
</p>
<pre>
<code className={styles.code}>{`
const mapOption = {
floor: building1_floor1_id,
};
// When "floor" is not entered, the default floor is the outdoor map, which is drawn first.
}
// If you do not specify the floor when there is an outdoor map, the default floor will be the outdoor map, which will be drawn first.
const map = await dabeeoMaps.showMap(mapContainer, mapOption, mapData); // 1. Displaying Building 1, Floor 1
await map.context.addBuilding(buildingId, floorId); // 2. Displaying another floor (Removing Building 1)
await map.context.addBuilding(buildingId, floorId); // 2. Displaying a Different Floor of a Different Building (Removing Building 1)
await map.context.changeFloor(floorId) // 3. Moving to a Different Floor (Also Possible to Move to a Floor of a Different Building)
`}</code>
</pre>
<p>
Expand Down

0 comments on commit b32b0a6

Please sign in to comment.