Translate

[Leaflet] Using GeoJSON



GeoJSON 정보

GeoJSON 스펙(RFC 7946) 링크

 GeoJSON은 다양한 지리 데이터 구조를 인코딩하기위한 형식이다.

 GeoJSON 객체는 공간영역(Geometry), 공간경계(Feature), 기능리스트(FeattureCollection)을 나타낼 수 있다.

 GeoJSON은 Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection에 대한 geometry 타입을 지원한다.

 GeoJSON의 Feature에는 Geometry객체, 추가속성이 포함되고, FeatureCollection 에는 기능 리스트들이 포함되어 있다.

 * Leaflet은 위의 모든 GeoJSON 타입을 지원하며, properties를 셋팅하고 features를 기술할 시 Features/FeatureCollection를 가장 잘 작동한다.


* 추가 GeoJSON 참고 URL: https://ko.wikipedia.org/wiki/GeoJSON



GeoJSON 레이어


옵션


스타일



pointToLayer


onEachFeature


Filter


종합


참고: https://leafletjs.com/examples/geojson/


댓글