94 lines
1.9 KiB
Markdown
94 lines
1.9 KiB
Markdown
---
|
|
layout: post
|
|
title: a post with geojson
|
|
date: 2024-01-26 17:57:00
|
|
description: this is what included geojson code could look like
|
|
tags: formatting charts maps
|
|
categories: sample-posts
|
|
map: true
|
|
---
|
|
|
|
This is an example post with some [geojson](https://geojson.org/) code. The support is provided thanks to [Leaflet](https://leafletjs.com/). To create your own visualization, go to [geojson.io](https://geojson.io/).
|
|
|
|
````markdown
|
|
```geojson
|
|
{
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"properties": {},
|
|
"geometry": {
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-60.11363029935569,
|
|
-2.904625022183211
|
|
],
|
|
[
|
|
-60.11363029935569,
|
|
-3.162613728707967
|
|
],
|
|
[
|
|
-59.820894493858034,
|
|
-3.162613728707967
|
|
],
|
|
[
|
|
-59.820894493858034,
|
|
-2.904625022183211
|
|
],
|
|
[
|
|
-60.11363029935569,
|
|
-2.904625022183211
|
|
]
|
|
]
|
|
],
|
|
"type": "Polygon"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
```
|
|
````
|
|
|
|
Which generates:
|
|
|
|
```geojson
|
|
{
|
|
"type": "FeatureCollection",
|
|
"features": [
|
|
{
|
|
"type": "Feature",
|
|
"properties": {},
|
|
"geometry": {
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-60.11363029935569,
|
|
-2.904625022183211
|
|
],
|
|
[
|
|
-60.11363029935569,
|
|
-3.162613728707967
|
|
],
|
|
[
|
|
-59.820894493858034,
|
|
-3.162613728707967
|
|
],
|
|
[
|
|
-59.820894493858034,
|
|
-2.904625022183211
|
|
],
|
|
[
|
|
-60.11363029935569,
|
|
-2.904625022183211
|
|
]
|
|
]
|
|
],
|
|
"type": "Polygon"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
```
|