Skip to content

Instantly share code, notes, and snippets.

@jmsktm
Last active December 26, 2015 07:09
Show Gist options
  • Save jmsktm/7113006 to your computer and use it in GitHub Desktop.
Save jmsktm/7113006 to your computer and use it in GitHub Desktop.
Test for geojson map on github
Display the source blob
Display the rendered blob
Raw
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
85.32418,
27.69784
]
},
"properties": {
"Candidate A": "111",
"style": {
"icon": "https://1.gravatar.com/avatar/a71a10fbb548d01bf59e00d5c15d5c6d?d=https%3A%2F%2Fidenticons.github.com%2Fcee144dedbd23fe771c208cfd56f609e.png&s=140"
}
},
"crs": {
"type": "link",
"properties": {
"href": "http://example.com/crs/42",
"type": "proj4"
}
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
85.3254,
27.69776
]
},
"properties": {
"CandidateB": "222"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
85.32424,
27.69675
]
},
"properties": {
"CandidateC": "333"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
85.32283,
27.70564
],
[
85.32751,
27.70538
],
[
85.34004,
27.70154
],
[
85.33957,
27.70055
],
[
85.33866,
27.69994
],
[
85.33686,
27.69348
],
[
85.33613,
27.6925
],
[
85.33545,
27.6882
],
[
85.33038,
27.68938
],
[
85.32068,
27.69413
],
[
85.32283,
27.70564
]
]
]
},
"properties": {
"Zone": "Bagmati",
"District": "Kathmandu",
"AreaNo.": "4",
"Candidates": "4"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment