Skip to content

Instantly share code, notes, and snippets.

@Alafazam
Last active December 4, 2015 19:36
Show Gist options
  • Save Alafazam/6a4aeb7a3c345dd44521 to your computer and use it in GitHub Desktop.
Save Alafazam/6a4aeb7a3c345dd44521 to your computer and use it in GitHub Desktop.
Sample gIst for styling in GEOJSON
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"stroke-opacity": 1,
"fill-opacity": 0.5,
"stroke": "#d11141",
"stroke-width": 2,
"fill": "#f37735"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
75.849609375,
22.791375149053486
],
[
75.94161987304688,
22.743256140282
],
[
75.8990478515625,
22.63049008057977
],
[
75.8111572265625,
22.62541976596588
],
[
75.78781127929688,
22.74198962160603
],
[
75.849609375,
22.791375149053486
]
]
]
}
},
{
"type": "Feature",
"properties": {
"stroke": "#00aedb",
"stroke-width": 2,
"fill": "#00b159",
"fill-opacity": 0.71
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
75.98831176757812,
22.62415215809041
],
[
75.98831176757812,
22.778713896595676
],
[
76.22039794921874,
22.778713896595676
],
[
76.22039794921874,
22.62415215809041
],
[
75.98831176757812,
22.62415215809041
]
]
]
}
},
{
"type": "Feature",
"properties": {
"stroke-opacity": 1,
"fill-opacity": 0.5,
"stroke": "#0000ff"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
75.65185546874999,
22.776181505086505
],
[
75.72601318359375,
22.612743161323408
],
[
75.82489013671875,
22.549342623651143
],
[
76.01715087890625,
22.54046422124227
],
[
76.26022338867188,
22.582314544433036
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
75.78369140625,
22.85719470096965
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
75.89080810546875,
22.806567100271508
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
76.00204467773438,
22.80909892750663
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
76.06521606445311,
22.80403522599118
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment