Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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