From e9ba7643d34bb21633d62ec95cbe3ac68b79abb2 Mon Sep 17 00:00:00 2001 From: ghybs Date: Fri, 29 Jun 2018 05:35:59 +0400 Subject: [PATCH] docs(GeoJSON): use RFC page in tutorial for consistency. --- docs/examples/geojson/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/geojson/index.md b/docs/examples/geojson/index.md index 04f04e2d..d26ac219 100644 --- a/docs/examples/geojson/index.md +++ b/docs/examples/geojson/index.md @@ -5,17 +5,17 @@ title: Using GeoJSON with Leaflet

Using GeoJSON with Leaflet

-

GeoJSON is becoming a very popular data format among many GIS technologies and services — it's simple, lightweight, straightforward, and Leaflet is quite good at handling it. In this example, you'll learn how to create and interact with map vectors created from GeoJSON objects.

+

GeoJSON is becoming a very popular data format among many GIS technologies and services — it's simple, lightweight, straightforward, and Leaflet is quite good at handling it. In this example, you'll learn how to create and interact with map vectors created from GeoJSON objects.

{% include frame.html url="example.html" %}

About GeoJSON

-

According to http://geojson.org:

+

According to GeoJSON Specification (RFC 7946):

GeoJSON is a format for encoding a variety of geographic data structures. A GeoJSON object may represent a geometry, a feature, or a collection of features. GeoJSON supports the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, and GeometryCollection. Features in GeoJSON contain a geometry object and additional properties, and a feature collection represents a list of features.
-

Leaflet supports all of the GeoJSON types above, but Features and FeatureCollections work best as they allow you to describe features with a set of properties. We can even use these properties to style our Leaflet vectors. Here's an example of a simple GeoJSON feature:

+

Leaflet supports all of the GeoJSON types above, but Features and FeatureCollections work best as they allow you to describe features with a set of properties. We can even use these properties to style our Leaflet vectors. Here's an example of a simple GeoJSON feature:

var geojsonFeature = {
 	"type": "Feature",