Skip to content

Instantly share code, notes, and snippets.

@korczis
Created November 11, 2015 08:06
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 korczis/75f1378cd6a0c18a515c to your computer and use it in GitHub Desktop.
Save korczis/75f1378cd6a0c18a515c to your computer and use it in GitHub Desktop.
Example file with serialized map - mapoffacts.com
{
"_version": 1,
"_timestamp": "2015-11-11T07:54:43.441Z",
"props": {
"layers": [
{
"name": "Layer (0)",
"id": 0,
"data": null,
"dirty": false,
"sourceId": 0,
"visualizationId": 0,
"visualizationParams": {
"longitudeId": "_source.center_point.0",
"latitudeId": "_source.center_point.1",
"blending": 2,
"color": "#3e537a",
"opacity": 0.8,
"radius": 64
}
}
],
"sources": [
{
"id": 0,
"sourceId": 2,
"params": {
"availableSets": [
{
"id": "tags.amenity",
"name": "Amenity"
},
{
"id": "tags.atm",
"name": "ATM"
},
{
"id": "tags.beer_brand",
"name": "Beer Brand"
},
{
"id": "tags.brewery",
"name": "Brewery"
},
{
"id": "tags.bridge_ref",
"name": "Bridge"
},
{
"id": "tags.causeway",
"name": "Causeway"
},
{
"id": "tags.cusine",
"name": "Cusine"
},
{
"id": "tags.cycleway",
"name": "Cycleway"
},
{
"id": "tags.emergency",
"name": "Emergency"
},
{
"id": "tags.gauge",
"name": "Gauge"
},
{
"id": "tags.junction",
"name": "Junction"
},
{
"id": "tags.location",
"name": "Location"
},
{
"id": "tags.lottery",
"name": "Lottery"
},
{
"id": "tags.massif",
"name": "Massif"
},
{
"id": "tags.microbrewery",
"name": "Microbrewery"
},
{
"id": "tags.park_ride",
"name": "Park Ride"
},
{
"id": "tags.parking",
"name": "Parking"
},
{
"id": "tags.ramp",
"name": "Ramp"
},
{
"id": "tags.religion",
"name": "Religion"
},
{
"id": "tags.repair",
"name": "Repair"
},
{
"id": "tags.shelter",
"name": "Shelter"
},
{
"id": "tags.snowmobile",
"name": "Snowmobile"
},
{
"id": "tags.smoking",
"name": "Smoking"
},
{
"id": "tags.tourism",
"name": "Tourism"
},
{
"id": "tags.trade",
"name": "Trade"
},
{
"id": "tags.train",
"name": "Train"
},
{
"id": "tags.wifi",
"name": "Wi-Fi"
}
],
"setId": "tags.wifi"
},
"data": null
}
]
},
"state": {
"layerCounter": 1,
"sourceCounter": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment