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",