This is an interactive version of a map of foodborne illness reported in Chicago, created by Cory Nissen. I used the dataset compiled by Cory and used rCharts and its bindings to Leaflet to create this map. The code is self-explanatory.
xxxxxxxxxx
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='https://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.5.1/leaflet.min.js' type='text/javascript'></script>
<script src='https://rawgithub.com/leaflet-extras/leaflet-providers/gh-pages/leaflet-providers.js' type='text/javascript'></script>
<script src='https://harrywood.co.uk/maps/examples/leaflet/leaflet-plugins/layer/vector/kml.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 1600px;
height: 800px;
}
</style>
</head>
<body>
<div id='chart23b1478b52d9' class='rChart leaflet'></div>
<script>
var spec = {
"dom": "chart23b1478b52d9",
"width": 1600,
"height": 800,
"urlTemplate": "https://{s}.tile.osm.org/{z}/{x}/{y}.png",
"layerOpts": {
"attribution": "Map data<a href=\"https://openstreetmap.org\">OpenStreetMap</a>\n contributors, Imagery<a href=\"https://mapbox.com\">MapBox</a>"
},
"center": [ 41.89, -87.38 ],
"zoom": 10,
"provider": "Stamen.TonerLite",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6327458, 41.8816293 ]
},
"properties": {
"id": 132,
"restaurant": "10 S. LaSalle, Chicago, IL",
"created": "2013-11-04 11:35:42 -0600",
"month": 11,
"fillColor": "#91003F"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7365801, 41.9317523 ]
},
"properties": {
"id": 131,
"restaurant": "4356 West Diversey Avenue, Chicago, IL, United States",
"created": "2013-11-02 11:30:56 -0500",
"month": 11,
"fillColor": "#91003F"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.657268, 41.947631 ]
},
"properties": {
"id": 130,
"restaurant": "3620 N Clark St, Chicago, IL",
"created": "2013-10-29 16:43:30 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.668037, 41.981292 ]
},
"properties": {
"id": 129,
"restaurant": "5449 North Clark Street, Chicago, IL, United States",
"created": "2013-10-27 13:22:42 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.634925, 41.8894019 ]
},
"properties": {
"id": 128,
"restaurant": "218 West Kinzie Street, Chicago, IL, United States",
"created": "2013-10-25 16:18:08 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7989859, 41.8465321 ]
},
"properties": {
"id": 127,
"restaurant": "2400 S. Home Ave. Berwyn, IL 60402",
"created": "2013-10-24 18:19:18 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.8163499, 42.0029304 ]
},
"properties": {
"id": 126,
"restaurant": "6705 N Northwest Hwy, Chicago, IL 60631",
"created": "2013-10-23 11:47:55 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.902313, 41.98032 ]
},
"properties": {
"id": 125,
"restaurant": "Terminal 2, Concourse F, O'Hare International Airport, Chicago, IL, United States",
"created": "2013-10-21 11:40:44 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6493388, 41.9431051 ]
},
"properties": {
"id": 124,
"restaurant": "3343 North Halsted Street, Chicago, IL, United States",
"created": "2013-10-17 03:54:02 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.697586, 41.922615 ]
},
"properties": {
"id": 123,
"restaurant": "2230 North California Avenue, Chicago, IL, United States",
"created": "2013-10-13 15:33:30 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.2073673, 41.7122695 ]
},
"properties": {
"id": 122,
"restaurant": "2860 Show Place Drive, Naperville, IL, United States",
"created": "2013-10-08 20:04:54 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.0795777, 41.9027789 ]
},
"properties": {
"id": 121,
"restaurant": "235 East North Avenue, Glendale Heights, IL, United States",
"created": "2013-10-07 10:45:28 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 55.140448, 25.08112 ]
},
"properties": {
"id": 120,
"restaurant": "Ritz Carlton Hotel",
"created": "2013-10-03 15:59:24 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6484209, 41.8846411 ]
},
"properties": {
"id": 119,
"restaurant": "820 West Randolph Street, Chicago, IL, United States",
"created": "2013-10-03 14:11:33 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -86.232516, 43.064106 ]
},
"properties": {
"id": 118,
"restaurant": "100 Washington Avenue, Grand Haven, MI, United States",
"created": "2013-10-01 21:48:54 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6649656, 41.9359776 ]
},
"properties": {
"id": 117,
"restaurant": "1429 W Wellington Ave, Chicago, IL",
"created": "2013-10-01 04:03:52 -0500",
"month": 10,
"fillColor": "#CE1256"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6695137, 41.9418753 ]
},
"properties": {
"id": 116,
"restaurant": "3300 North Ashland Avenue, Chicago, IL, United States",
"created": "2013-09-30 18:24:58 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.670844, 41.943586 ]
},
"properties": {
"id": 115,
"restaurant": "3407 North Paulina Street, Chicago, IL, United States",
"created": "2013-09-25 08:58:10 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6640922, 41.944161 ]
},
"properties": {
"id": 114,
"restaurant": "3424 N Southport Ave, Chicago, IL",
"created": "2013-09-23 09:26:51 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6210865, 41.8933676 ]
},
"properties": {
"id": 113,
"restaurant": "247 East Ontario Street, Chicago, IL, United States",
"created": "2013-09-21 14:03:44 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6260586, 41.8806852 ]
},
"properties": {
"id": 112,
"restaurant": "35 East Monroe Street, Chicago, IL",
"created": "2013-09-21 13:19:39 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6219964, 41.8849306 ]
},
"properties": {
"id": 111,
"restaurant": "200 East Randolph Street, Chicago, IL",
"created": "2013-09-18 09:16:30 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7085003, 41.9706924 ]
},
"properties": {
"id": 110,
"restaurant": "4911 North Kedzie Avenue, Chicago, IL, United States",
"created": "2013-09-17 20:57:39 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7670459, 41.967471 ]
},
"properties": {
"id": 109,
"restaurant": "4729 North Central Avenue Chicago, IL 60630",
"created": "2013-09-16 20:28:36 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6357793, 41.5331112 ]
},
"properties": {
"id": 108,
"restaurant": "3760 N Halsted St",
"created": "2013-09-16 13:15:56 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.627639, 41.901779 ]
},
"properties": {
"id": 107,
"restaurant": "18 East Bellevue Place, Chicago, IL, United States",
"created": "2013-09-14 16:27:37 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6548369, 41.9696141 ]
},
"properties": {
"id": 106,
"restaurant": "4818 North Sheridan Road, Chicago, IL",
"created": "2013-09-10 15:42:59 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.640426, 41.926006 ]
},
"properties": {
"id": 105,
"restaurant": "2413 N Clark St, Chicago IL",
"created": "2013-09-10 11:31:34 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.668402, 42.0160199 ]
},
"properties": {
"id": 104,
"restaurant": "1505 W Jarvis Ave, Chicago, IL 60626",
"created": "2013-09-09 22:37:20 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6872086, 41.9176883 ]
},
"properties": {
"id": 103,
"restaurant": "2001 North Western Avenue, Chicago, IL, United States",
"created": "2013-09-04 13:23:18 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6464892, 41.8810989 ]
},
"properties": {
"id": 102,
"restaurant": "733 West Madison Street, Chicago, IL",
"created": "2013-09-03 19:38:12 -0500",
"month": 9,
"fillColor": "#E7298A"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.8374202, 41.9811303 ]
},
"properties": {
"id": 101,
"restaurant": "8420 W Bryn Mawr Ave, Chicago, IL",
"created": "2013-08-30 23:21:14 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.626358, 41.868779 ]
},
"properties": {
"id": 100,
"restaurant": "1112 South Wabash Avenue, Chicago, IL, United States",
"created": "2013-08-30 08:51:00 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.9447846, 41.9289846 ]
},
"properties": {
"id": 99,
"restaurant": "200 W Diversey Ave, Chicago, IL",
"created": "2013-08-29 13:20:51 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7490567, 42.06175 ]
},
"properties": {
"id": 98,
"restaurant": "4937 Old Orchard Shopping Center, Skokie, IL",
"created": "2013-08-29 10:39:49 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6304755, 41.9038958 ]
},
"properties": {
"id": 97,
"restaurant": "51 West Division Street, Chicago, IL, United States",
"created": "2013-08-28 17:09:04 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7142258, 41.6913701 ]
},
"properties": {
"id": 96,
"restaurant": "3752 West 111th Street, Chicago, IL",
"created": "2013-08-27 18:12:31 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6346714, 41.8817605 ]
},
"properties": {
"id": 95,
"restaurant": "201 W Madison St, Chicago, IL",
"created": "2013-08-27 17:07:57 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7222565, 41.9026897 ]
},
"properties": {
"id": 94,
"restaurant": "3819 W Division St, Chicago, IL",
"created": "2013-08-26 18:55:32 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7222565, 41.9026897 ]
},
"properties": {
"id": 93,
"restaurant": "3819 W Division St, Chicago, IL",
"created": "2013-08-26 18:54:39 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6584389, 41.9175398 ]
},
"properties": {
"id": 92,
"restaurant": "1983 North Clybourn Avenue, Chicago, IL, United States",
"created": "2013-08-25 19:51:51 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -71.042551, 42.1619739 ]
},
"properties": {
"id": 91,
"restaurant": "Randolph & Michigan Ave.",
"created": "2013-08-25 14:40:46 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6315324, 41.8313433 ]
},
"properties": {
"id": 90,
"restaurant": "333 West 35th Street, Chicago, IL, United States",
"created": "2013-08-23 15:39:03 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.655593, 41.86918 ]
},
"properties": {
"id": 89,
"restaurant": "1133 West Taylor Street, Chicago, IL, United States",
"created": "2013-08-22 12:28:48 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ 23.9944889, 58.3345346 ]
},
"properties": {
"id": 88,
"restaurant": "test",
"created": "2013-08-20 12:04:18 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6867895, 41.998022 ]
},
"properties": {
"id": 87,
"restaurant": "2244 West Devon Avenue, Chicago, IL, United States",
"created": "2013-08-19 22:21:28 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.661236, 42.002707 ]
},
"properties": {
"id": 86,
"restaurant": "6600 North Sheridan Road, Chicago, IL, United States",
"created": "2013-08-19 10:04:53 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.652962, 41.9433773 ]
},
"properties": {
"id": 85,
"restaurant": "3369 North Clark Street, Chicago, IL, United States",
"created": "2013-08-18 12:04:37 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.9505461, 41.8507773 ]
},
"properties": {
"id": 84,
"restaurant": "105 Oakbrook Center, Oak Brook, IL, United States",
"created": "2013-08-17 17:33:55 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.710108, 41.917079 ]
},
"properties": {
"id": 83,
"restaurant": "3281 W Armitage Ave, Chicago, IL",
"created": "2013-08-16 06:56:52 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6867895, 41.998022 ]
},
"properties": {
"id": 82,
"restaurant": "2244 West Devon Avenue, Chicago, IL, United States",
"created": "2013-08-15 12:31:32 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7266371, 41.9316568 ]
},
"properties": {
"id": 81,
"restaurant": "3953 West Diversey Avenue, Chicago, IL, United States",
"created": "2013-08-13 22:34:05 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6273681, 41.8746584 ]
},
"properties": {
"id": 80,
"restaurant": "555 South State Street, Chicago, IL, United States",
"created": "2013-08-13 20:45:42 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.637522, 41.8812179 ]
},
"properties": {
"id": 79,
"restaurant": "30 S Wacker Drive",
"created": "2013-08-13 13:11:34 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6390879, 41.8947268 ]
},
"properties": {
"id": 78,
"restaurant": "410 West Huron Street, Chicago, IL, United States",
"created": "2013-08-13 12:00:51 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.5190206, 41.5626339 ]
},
"properties": {
"id": 77,
"restaurant": "330 Ridge Road, Munster, IN 46321",
"created": "2013-08-13 11:11:57 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.0040257, 42.0036422 ]
},
"properties": {
"id": 76,
"restaurant": "20 Biesterfield Rd Elk Grove Village, IL ",
"created": "2013-08-13 10:31:12 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.640164, 41.876296 ]
},
"properties": {
"id": 75,
"restaurant": "525 W Van Buren St Chicago, IL 60607",
"created": "2013-08-13 09:53:45 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6597228, 41.9945371 ]
},
"properties": {
"id": 74,
"restaurant": "1139 W Granville Ave, Chicago, IL",
"created": "2013-08-12 21:31:33 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.634796, 41.853366 ]
},
"properties": {
"id": 73,
"restaurant": "2168 South Archer Avenue, Chicago, IL, United States",
"created": "2013-08-12 15:53:13 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.714861, 42.040293 ]
},
"properties": {
"id": 72,
"restaurant": "3445 Dempster Street, Skokie, IL, United States",
"created": "2013-08-11 19:18:39 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.626366, 41.8758037 ]
},
"properties": {
"id": 71,
"restaurant": "26 East Congress Parkway, Chicago, IL, United States",
"created": "2013-08-11 14:46:46 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.9145975, 41.7553737 ]
},
"properties": {
"id": 70,
"restaurant": "201 Bridewell Drive, Burr Ridge, IL, United States",
"created": "2013-08-09 17:24:30 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.633934, 41.8962101 ]
},
"properties": {
"id": 69,
"restaurant": "747 North Wells Street, Chicago, IL, United States",
"created": "2013-08-09 15:49:26 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -3.7070179, 40.447337 ]
},
"properties": {
"id": 68,
"restaurant": "No address",
"created": "2013-08-09 13:16:35 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.8068569, 41.951237 ]
},
"properties": {
"id": 67,
"restaurant": "3917 North Harlem Avenue, Chicago, IL, United States",
"created": "2013-08-07 08:43:24 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.1024369, 41.894965 ]
},
"properties": {
"id": 66,
"restaurant": "317 South Schmale Road, Carol Stream, IL, United States",
"created": "2013-08-05 22:31:33 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6225017, 41.8925463 ]
},
"properties": {
"id": 65,
"restaurant": "203 East Ohio Street, Chicago, IL, United States",
"created": "2013-08-05 20:49:13 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.677542, 41.931093 ]
},
"properties": {
"id": 64,
"restaurant": "2746 N Clybourn Ave, Chicago (773) 360-2053",
"created": "2013-08-04 16:43:47 -0500",
"month": 8,
"fillColor": "#DF65B0"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.8400867, 41.9871226 ]
},
"properties": {
"id": 63,
"restaurant": "1036 West Higgins Road, Park Ridge, IL, United States",
"created": "2013-07-31 13:04:34 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6167867, 41.8621253 ]
},
"properties": {
"id": 62,
"restaurant": "1410 Museum Campus Drive, Chicago, IL, United States",
"created": "2013-07-31 09:00:53 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6203001, 41.8932232 ]
},
"properties": {
"id": 61,
"restaurant": "622 North Fairbanks Court, Chicago, IL, United States",
"created": "2013-07-31 03:51:26 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6391992, 41.865384 ]
},
"properties": {
"id": 60,
"restaurant": "1234 South Canal Street, Chicago, IL, United States",
"created": "2013-07-26 12:02:17 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6750669, 41.9615203 ]
},
"properties": {
"id": 58,
"restaurant": "1820 West Montrose Avenue, Chicago, IL, United States",
"created": "2013-07-23 15:06:26 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.686088, 41.895468 ]
},
"properties": {
"id": 57,
"restaurant": "2343 West Chicago Avenue, Chicago, IL, United States",
"created": "2013-07-23 11:17:37 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.686088, 41.895468 ]
},
"properties": {
"id": 56,
"restaurant": "2343 West Chicago Avenue, Chicago, IL, United States",
"created": "2013-07-23 11:14:52 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6215208, 41.757372 ]
},
"properties": {
"id": 55,
"restaurant": "South Michigan Avenue, Chicago, IL",
"created": "2013-07-21 12:24:21 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6272901, 41.89899 ]
},
"properties": {
"id": 54,
"restaurant": "25 East Delaware Place, Chicago, IL, United States",
"created": "2013-07-19 07:27:59 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.663968, 41.940004 ]
},
"properties": {
"id": 53,
"restaurant": "3200 N Southport Ave, Chicago, IL",
"created": "2013-07-17 13:48:59 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7010202, 41.9174639 ]
},
"properties": {
"id": 52,
"restaurant": "2952 W Armitage Ave, Chicago, IL",
"created": "2013-07-17 09:44:48 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6323754, 41.8681812 ]
},
"properties": {
"id": 50,
"restaurant": "1011 South Delano Court East, Chicago, IL, United States",
"created": "2013-07-15 15:47:44 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -109.5197297, 40.4553394 ]
},
"properties": {
"id": 49,
"restaurant": "Field Museum of Natural History",
"created": "2013-07-15 15:07:32 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6225266, 41.8876145 ]
},
"properties": {
"id": 48,
"restaurant": "151 E Wacker Dr, Chicago, IL",
"created": "2013-07-15 13:52:44 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6982868, 41.9320228 ]
},
"properties": {
"id": 47,
"restaurant": "2815 W Diversey",
"created": "2013-07-08 15:51:39 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6790824, 41.9029956 ]
},
"properties": {
"id": 46,
"restaurant": "2047 West Division Street, Chicago, IL, United States",
"created": "2013-07-07 15:14:02 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.674598, 42.0144329 ]
},
"properties": {
"id": 45,
"restaurant": "7357 N Clark St, Chicago, IL 60626",
"created": "2013-07-02 11:14:58 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6248438, 41.8792621 ]
},
"properties": {
"id": 44,
"restaurant": "200 South Michigan Avenue, Chicago, IL",
"created": "2013-07-02 01:43:32 -0500",
"month": 7,
"fillColor": "#C994C7"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6650052, 41.9251105 ]
},
"properties": {
"id": 43,
"restaurant": "1443 West Fullerton Avenue, Chicago, IL, United States",
"created": "2013-06-30 19:15:10 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.1261982, 41.8028273 ]
},
"properties": {
"id": 42,
"restaurant": "1739 Freedom Drive #129, Naperville, IL, United States",
"created": "2013-06-28 22:15:32 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7399153, 41.9316339 ]
},
"properties": {
"id": 41,
"restaurant": "4514 w diversity Chicago il",
"created": "2013-06-23 09:17:29 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7399153, 41.9316339 ]
},
"properties": {
"id": 40,
"restaurant": "4514 w diversity",
"created": "2013-06-23 09:15:55 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6332837, 41.893344 ]
},
"properties": {
"id": 39,
"restaurant": "158 W Ontario, Chicago IL",
"created": "2013-06-21 13:41:53 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6275715, 41.9006568 ]
},
"properties": {
"id": 38,
"restaurant": "15 E Oak St, Chicago IL60611 41.900788 -87.62783 ",
"created": "2013-06-18 13:05:59 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6283439, 41.8986158 ]
},
"properties": {
"id": 37,
"restaurant": "864 North State Street, Chicago, IL, United States",
"created": "2013-06-14 10:01:39 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6670125, 41.8741404 ]
},
"properties": {
"id": 36,
"restaurant": "1611 W Harrison St, Chicago, IL",
"created": "2013-06-10 17:13:19 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7124845, 41.9392852 ]
},
"properties": {
"id": 35,
"restaurant": "3200 N Kimball Ave, Chicago, IL",
"created": "2013-06-10 14:39:37 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.588724, 41.799304 ]
},
"properties": {
"id": 34,
"restaurant": "1501 East 53rd Street, Chicago, IL, United States",
"created": "2013-06-09 12:52:51 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6297982, 41.8781136 ]
},
"properties": {
"id": 33,
"restaurant": "1250 South Michigan Ave.•, Chicago, IL, United States",
"created": "2013-06-07 17:02:51 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6833879, 41.8476519 ]
},
"properties": {
"id": 32,
"restaurant": "2424 South Oakley Avenue, Chicago, IL, United States",
"created": "2013-06-03 07:27:24 -0500",
"month": 6,
"fillColor": "#D4B9DA"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6331, 41.8882 ]
},
"properties": {
"id": 31,
"restaurant": "300 North LaSalle",
"created": "2013-05-30 10:03:06 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.744453, 41.6516012 ]
},
"properties": {
"id": 30,
"restaurant": "13221 Rivercrest Drive, Crestwood, IL, United States",
"created": "2013-05-26 17:42:25 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.99259, 41.8409229 ]
},
"properties": {
"id": 28,
"restaurant": "3001 Butterfield Road, Oak Brook, IL, United States",
"created": "2013-05-24 07:10:57 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6827086, 42.0484871 ]
},
"properties": {
"id": 27,
"restaurant": "825 Church Street, Evanston, IL, United States",
"created": "2013-05-23 21:31:23 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -88.1320992, 41.9777539 ]
},
"properties": {
"id": 26,
"restaurant": "1086 Lake Street, Hanover Park, IL, United States",
"created": "2013-05-22 19:46:10 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.8303325, 41.9852021 ]
},
"properties": {
"id": 25,
"restaurant": "8101 W. Higgins Road, Chicago, IL, United States",
"created": "2013-05-22 18:48:49 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.99259, 41.8409229 ]
},
"properties": {
"id": 24,
"restaurant": "3001 Butterfield Road, Oak Brook, IL, United States",
"created": "2013-05-22 14:03:34 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.661236, 42.002707 ]
},
"properties": {
"id": 23,
"restaurant": "6600 N Sheridan Rd, Chicago, IL",
"created": "2013-05-16 19:41:55 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.646479, 41.935249 ]
},
"properties": {
"id": 22,
"restaurant": "2913 North Clark Street, Chicago, IL, United States",
"created": "2013-05-13 18:15:57 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7255547, 42.0021534 ]
},
"properties": {
"id": 21,
"restaurant": "6649 North Lincoln Avenue, Lincolnwood, IL, United States",
"created": "2013-05-13 12:16:12 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.637522, 41.8812179 ]
},
"properties": {
"id": 20,
"restaurant": "30 S Wacker Dr, Chicago, IL",
"created": "2013-05-10 21:30:11 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.682537, 41.960107 ]
},
"properties": {
"id": 19,
"restaurant": "4319 North Lincoln Avenue, Chicago, IL, United States",
"created": "2013-05-09 13:05:45 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.639128, 41.88118 ]
},
"properties": {
"id": 18,
"restaurant": "10 S Riverside Plaza, Chicago, IL 60606",
"created": "2013-05-09 04:06:29 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.628283, 41.879804 ]
},
"properties": {
"id": 17,
"restaurant": "131 South Dearborn Street, Chicago, IL, United States",
"created": "2013-05-08 09:15:05 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.646147, 41.9330349 ]
},
"properties": {
"id": 16,
"restaurant": "666 West Diversey Parkway, Chicago, IL, United States",
"created": "2013-05-06 22:36:43 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.658807, 41.926137 ]
},
"properties": {
"id": 15,
"restaurant": "2426 North Racine Avenue, Chicago, IL, United States",
"created": "2013-05-06 16:13:03 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6471801, 41.9355651 ]
},
"properties": {
"id": 14,
"restaurant": "2914 North Clark Street, Chicago or ,3763 N Southport, Chicago",
"created": "2013-05-05 09:53:11 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.627227, 41.877533 ]
},
"properties": {
"id": 13,
"restaurant": "333 S State St, chicago, il",
"created": "2013-05-03 13:03:10 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.658807, 41.926137 ]
},
"properties": {
"id": 12,
"restaurant": "2426 North Racine Avenue, Chicago, IL, United States",
"created": "2013-05-03 12:46:32 -0500",
"month": 5,
"fillColor": "#E7E1EF"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.633844, 41.891764 ]
},
"properties": {
"id": 11,
"restaurant": "531 North Wells Street, Chicago, IL, United States",
"created": "2013-04-30 14:20:45 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.653539, 41.929078 ]
},
"properties": {
"id": 10,
"restaurant": "Chi958 W Wrightwood Ave, Chicago, IL 60614 ",
"created": "2013-04-25 10:42:01 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.7881537, 41.9766771 ]
},
"properties": {
"id": 9,
"restaurant": "5232 North Nagle Avenue, Chicago, IL, United States",
"created": "2013-04-16 15:50:01 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6621615, 41.9980624 ]
},
"properties": {
"id": 8,
"restaurant": "1237 W Devon Ave, Chicago, IL",
"created": "2013-04-14 09:59:13 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6225017, 41.8925463 ]
},
"properties": {
"id": 7,
"restaurant": "203 East Ohio Street, Chicago, IL, United States",
"created": "2013-04-12 13:59:43 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6559364, 41.8962584 ]
},
"properties": {
"id": 6,
"restaurant": "1150 W Chicago Ave, Chicago, IL",
"created": "2013-04-09 20:20:27 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -87.6753109, 41.908664 ]
},
"properties": {
"id": 5,
"restaurant": "1484 North Milwaukee Avenue, Chicago, IL 60622",
"created": "2013-04-08 20:55:35 -0500",
"month": 4,
"fillColor": "#F7F4F9"
}
}
],
"id": "chart23b1478b52d9"
}
var map = L.map(spec.dom)
map.setView(spec.center, spec.zoom);
if (spec.provider){
L.tileLayer.provider(spec.provider).addTo(map)
} else {
L.tileLayer(spec.urlTemplate, spec.layerOpts).addTo(map)
}
if (spec.circle2){
for (var c in spec.circle2){
var circle = L.circle(c.center, c.radius, c.opts)
.addTo(map);
}
}
var popup = L.popup();
function onMapClick(e) {
popup
.setLatLng(e.latlng)
.setContent("<b>Latitude:</b> " + e.latlng.lat.toFixed(2) + "<br />" +
"<b>Longitude:</b> " + e.latlng.lng.toFixed(2))
.openOn(map);
}
map.on('click', onMapClick);
L.geoJson(spec.features
,
{
"onEachFeature": function(feature, layer){
layer.bindPopup(feature.properties.restaurant)
} ,
"pointToLayer": function(feature, latlng){
return L.circleMarker(latlng, {
radius: 4,
fillColor: feature.properties.fillColor || 'red',
color: '#000',
weight: 1,
fillOpacity: 0.8
})
}
}
).addTo(map)
</script>
</body>
</html>
Modified http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js to a secure url
Modified http://harrywood.co.uk/maps/examples/leaflet/leaflet-plugins/layer/vector/KML.js to a secure url
https://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js
https://rawgithub.com/leaflet-extras/leaflet-providers/gh-pages/leaflet-providers.js
https://harrywood.co.uk/maps/examples/leaflet/leaflet-plugins/layer/vector/KML.js