Ko:Slippy Map

From OpenStreetMap Wiki
Jump to navigation Jump to search

broom

Help (89606) - The Noun Project.svg

미끄러운 지도(Slippy Map)는 일반적으로 확대나 축소 그리고 마우스를 누르고 끌면 미끄러지듯이 움직여 보이도록 한 최신 웹지도를 가리키는 낱말입니다.

{{Slippymap|위도 = 42.0059 |경도 = 128.0565 |줌 정도 = 13 |너비 = 400 |높이 = 300 |레이어 = Leaflet }}

여기서 "미끄러운 지도"(Slippy Map)는 openstreetmap.org 첫 페이지에 표시되는 지도를 뜻합니다. 렌더링된 오픈스트리트맵 데이터를 탐색하기 위한 웹 인터페이스입니다.

기본적으로 미끄러운 지도에는 Standard|표준 오픈스트리트맵 스타일로 렌더링된 타일이 표시되지만, 선택 및 연결할 수 있는 몇 가지 다른 추천 타일을 도면층으로 제공합니다.

  • 미끄러운 지도를 사용하는 방법과 링크에 대한 보다 기본적인 도움말은 탐색 페이지를 보십시오.
  • 웹사이트에 미끄러운 지도를 설정하는 다양한 방법은 나만의 미끄러운 지도 배포하기를 보십시오.
  • "미끄러운 지도"에 사용하는 소프트웨어와 자신의 웹사이트에서 사용하는 방법은 리플렛을 보십시오.
  • 이 위키에 (미끄러운)지도를 끼워넣는 방법은 Wiki:지도를 보십시오.


기술 세부 사항

미끄러지는 지도는 AJAX 성분(component)입니다. 자바스크립트는 브라우저에서 실행되며, 전체 HTML 페이지를 다시 로드하지 않고 백그라운드에서 서버에 지도를 동적으로 요청하여 매끄러운 미끄러운 확대와 축소의 지도 탐색 환경을 제공합니다. 이를 구현하는 것은 자바스크립트 라이브러리인 오픈레이어 또는 리플렛이 제공합니다. 지도 이미지는 '타일'이라고 하는 여러 개의 작은 정사각형 이미지로 구성됩니다. 타일은 "타일 서버"에서 렌더링되고 제공됩니다.

타일 렌더링

벡터에서 래스터 맵 데이터로 이동하고 스타일 선택을 비트맵 이미지로 굽는 렌더링 프로세스는 리소스를 상당히 많이 사용하는 절차입니다. 이 작업은 다양한 렌더링 소프트웨어 옵션으로 수행할 수 있습니다. 타일 서버는 일반적으로 지도를 탐색하는 각 사용자에 대해 실시간으로 타일을 렌더링하지 않습니다. 타일은 미리 렌더링되어 디스크에 저장됩니다.(component 개요를 보십시오.) 그럼에도 불구하고 전 세계 지도를 정기적으로 업데이트하는 트래픽이 많은 서비스를 제공하는 검증된 실적을 보유한 렌더링 프로그램은 상대적으로 적습니다.

오픈스트리트맵 "표준" 타일 서버

Mapnik is the rendering software used for generating the "standard" OpenStreetMap style. Mapnik also powers many third parties renderings including the Cycle Map and Transport Map styles which are Featured tiles shown on the front page slippy map.

The standard tiles are generated on tile.openstreetmap.org. The OpenStreetMap standard tile server database is updated with minute diffs, so that most data changes should get rendered within a few minutes. In the past this server was updated solely based on a weekly Planet.osm dump, which is performed on a Wednesday morning (GMT/BST). Imagine having to wait that long to see your map edits appearing? Those were the days! The full planet dump is still imported occasionally to correct any quirks in the applying of diffs.

The Mapnik rendering for OpenStreetMap is run via an Apache module called mod tile, developed especially for OSM's high-performance needs. This also manages caching and queueing for re-render requests. A commercial Content Delivery Network (CDN) sits between the tile servers and the end users, and provides an extra level of caching, hence some direct links to access a tile's rendering status or force a re-rendering that used to work are now not available any longer.

Mapnik의 타일 렌더링

mapnik 렌더러에 대한 자세한 것은 Mapnik 페이지를 참조해라.

현재는 tile.openstreetmap.org이 Mapnik 타일을 만들어내며, 주간 덤프를 사용해 렌더링된다. 현재는 매주 수요일 아침(GMT/BST)에 덤프가 이루어진다. Mapnik 렌더링은 우리만의 고성능 요구에 맞추어 특별히 개발된 map tile이라는 아파치 모듈로 실행된다.

모든 타일은 렌더링 시간의 타임스탬프를 가지고 있으며, 다시 렌더링해야 하는지 표시하는 오염(dirty) 플랙도 가지고 있다. 렌더러는 다음의 규칙을 따른다.

  • 당신이 타일을 볼 때마다, 타일이 7일 이상 되었는지 확인한다.
    • 만약 타일이 현재 시점에서 7일보다 오래 되었다면, 타일의 오염 플랙에 표기된다(그리고 나서 렌더링된다).
  • 렌더링 배경 프로세스는 모든 오염된 타일의 목록을 만들고 나서, 렌더링하게 된다.
    • 완료되면, 오염된 타일의 목록을 다시 한 번 요구한다.

아무도 찾아보지 않는 지역이라면 굳이 자주 렌더링할 필요는 없다. 타일은 (일종의) 관심도/주시도-우선 방식에 의해 렌더링된다. 어떤 타일을 오염으로 표시한다고 해서 그 하부의 타일을 오염으로 표시하는 것은 아니다. 어떤 타일에 대해서 'More OpenStreetMap coming soon...'라는 메시지가 나타난다면, 해당 타일에 대한 데이터가 없었으며 이제 렌더링할 큐에 들어가 있다는 의미이다. 타일 URL을 얻어오면 타일의 상태를 알아낼 수 있다(오른쪽 버튼 클릭, '이미지의 URL 얻어오기' 등등) :

  • http://tile.openstreetmap.org/7/63/42.png

and then add /status on the end:

which will tell you its creation timestamp and dirty status.

If you want to make a tile render before the seven day expiry then you can mark it as dirty by appending /dirty:

Osmarender tile rendering (Tiles@Home)

See the Osmarender page for details of the osmarender renderer.

Osmarender tile rendering is being done by Tiles@home.

You can view tiles@home tiles on the osm home page or

http://www.informationfreeway.org/ – allows users to enqueue tiles@home re-rendering requests for chosen map tiles by hovering over a tile and either pressing "r" or pressing ctrl and clicking on the tile.

함께 보기

Deploying your own Slippy Map
Putting maps on your own site using various slippy map APIs and other approaches.
Static map images
Embed StaticMaps by using an <img /> tag.
Tiles
Definition of tiles and various related links.
Slippy map tilenames
Calculate a tile name (URL of the .png file) from the known coordinates (zoom, x, y).
URL templates for Mapnik and similar services
Browsing
Basic user guide for the slippy map on the openstreetmap.org homepage
Layer URL parameter
How layers work on the homepage
Standard tile layer
User-centric description of the Standard layer on https://www.openstreetmap.org/ with focus on the key

Note