Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sangrimshin committed Oct 22, 2024
1 parent 10e7651 commit 730fd2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Examples/findClosestPois/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@
console.log('화장실 카테고리에 해당하는 pois', pois);

////event listener initialization
initCameraMenu(map);
initMenu(map);
// default value is defined in DabeeoMap Editor
initFloorMenu();
initFloorEvent();

function initCameraMenu(map) {
function initMenu(map) {
document.querySelector("[name='getDistance']").addEventListener('click', async function (e) {
// 현재 위치 마커로 표출
map.markers.set({ marker: [{ x: 400, y: 1500, floorId, iconOption: { iconUrl: './img_marker_blue-3x.png' } }] });
Expand Down

0 comments on commit 730fd2a

Please sign in to comment.