Skip to content

Instantly share code, notes, and snippets.

@stuartlynn
Created August 26, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartlynn/191ec08b2d2fd9e34696 to your computer and use it in GitHub Desktop.
Save stuartlynn/191ec08b2d2fd9e34696 to your computer and use it in GitHub Desktop.
GeoJSON example for GDI
var geojson = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-87.63047218322754,
41.88266210339971
],
[
-87.63442039489746,
41.88074501119368
],
[
-87.63450622558592,
41.87614375523096
],
[
-87.63304710388184,
41.87250085930771
],
[
-87.6258373260498,
41.87250085930771
],
[
-87.62017250061035,
41.87262868373214
],
[
-87.6200008392334,
41.877933171916546
],
[
-87.62042999267578,
41.88093672300255
],
[
-87.62626647949217,
41.88387623204765
],
[
-87.63047218322754,
41.88266210339971
]
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-87.63665199279785,
41.88464303825411
]
}
},
{
"type": "Feature",
"properties": {
"stroke": "#555555",
"stroke-width": 2,
"stroke-opacity": 1
},
"geometry": {
"type": "LineString",
"coordinates": [
[
-87.63673782348633,
41.87901957903126
],
[
-87.63236045837402,
41.888093552297626
],
[
-87.62592315673828,
41.88566543221384
]
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment