본문 바로가기

프로그래밍/개발자 Basic English

[Basic English] Leaflet js 사용기

원문 : https://leafletjs.com/examples/quick-start/

 

Quick Start Guide - Leaflet - a JavaScript library for interactive maps

← Tutorials Leaflet Quick Start Guide This step-by-step guide will quickly get you started on Leaflet basics, including setting up a Leaflet map, working with markers, polylines and popups, and dealing with events. Preparing your page Before writing any

leafletjs.com

 

By default (as we didn’t pass any options when creating the map instance), all mouse and touch interactions on the map are enabled, and it has zoom and attribution controls.

 

기본적으로 (우리가 지도인스턴스를 생성할 때 어떠한 옵션들도 pass하지 않았기 때문에), 모든 마우스 및 터치 상호작용이 활성화되고, 확대/축소 및 속성 제어기능을 가지고 있다.

여기서 pass의 뜻은 전달하다 이다. 지나치다 등으로 해석 시 오해의 소지가 있다.

 

It’s worth / noting / that Leaflet is provider-agnostic.

이것은 가치가 있습니다. / 주목할 / 리플렛이 공급자에 상관없다는 것에

 

noting이 nothing인줄 알고 계속 이상하게 해석이 되었다.

 

Here we use openOn / instead of addTo / because it handles automatic closing / of a previously opened popup / when opening a new one / which is good for usability.

 

여기서는 우리는 openOn 을 사용한다 / addTo 대신에 / 왜냐하면 이것은 자동닫기를 처리하기 때문에 / 과거에 열린 팝업의 / 새로운 것을 열 때 / 그것은 사용성이 좋다.

 

Every time something happens in Leaflet, e.g. user clicks on a marker or map zoom changes, the corresponding object sends an event / which you can subscribe to with a function. It allows you to react to user interaction:

 

매 순간 리플렛에서 어떤 일이 일어날때, 즉 사용자가 마커에 클릭하거나 확대축소하는 경우, 그 해당 객체는 보낸다 / 이벤트를 / 너가 함수로 구독 할수 있는 (한글로 해도 어렵다.) / 이것은 너에게 허락한다 사용자 상호작용에 반응하도록

 

 

정리

pass : 전달하다

It's worth noting that ... : 주목할 가치가 있다.

agnostic : 상관없는

handle : 처리하다

corresponding obejct : 해당(상응하는) 객체