Interactive interface for browsing global, full-resolution satellite imagery
Updated latest date match and added mock parameters for testing - Relates to Issue #226 & Issue #311 - Updated multi-day return to remove all dates matching today's dates - Added mockEvents, mockCategories, and mockSources URL parameters for testing mock data. **Should update wiki documentation to reflect this change. - Updated events_data.json / events_data.json-yyyymmdd with new v2 data - Added categories_data.json-yyyymmdd & sources_data.json-yyyymmdd
ZachTRice92b5ed3bd396
diff --git a/web/js/naturalEvents/wv.naturalEvents.request.js b/web/js/naturalEvents/wv.naturalEvents.request.jsindex 165755853..397b673eb 100644--- a/web/js/naturalEvents/wv.naturalEvents.request.js+++ b/web/js/naturalEvents/wv.naturalEvents.request.js@@ -59,9 +59,19 @@ wv.naturalEvents.request = wv.naturalEvents.request || function(models, ui, conf}};+ function getURLParameter(name) {+ return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;+ }+ var mockEventsDate = getURLParameter('mockEvents');+ var mockCategoriesDate = getURLParameter('mockCategories');+ var mockSourcesDate = getURLParameter('mockSources');var queryEvents = function(callback) {var url = self.apiURL + "/events";+ var mockEventsParam = 'mockEvents=' + mockEventsDate;+ if (window.location.search.indexOf(mockEventsParam) > -1) {+ url = "../../mock/events_data.json-" + mockEventsDate;+ }$.getJSON(url, function(data) {model.data.events = data.events;self.events.trigger('queryResults');@@ -70,6 +80,10 @@ wv.naturalEvents.request = wv.naturalEvents.request || function(models, ui, confvar queryTypes = function(callback) {var url = self.apiURL + "/categories";+ var mockCategoriesParam = 'mockCategories=' + mockCategoriesDate;+ if (window.location.search.indexOf(mockCategoriesParam) > -1) {+ url = "../../mock/categories_data.json-" + mockCategoriesDate;+ }$.getJSON(url, function(data) {model.data.types = data.categories;self.events.trigger('queryResults');@@ -78,6 +92,10 @@ wv.naturalEvents.request = wv.naturalEvents.request || function(models, ui, confvar querySources = function(callback) {var url = self.apiURL + "/sources";+ var mockSourcesParam = 'mockSources=' + mockSourcesDate;+ if (window.location.search.indexOf(mockSourcesParam) > -1) {+ url = "../../mock/sources_data.json-" + mockSourcesDate;+ }$.getJSON(url, function(data) {model.data.sources = data.sources;self.events.trigger('queryResults');diff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.jsindex cbe1c9ddc..f0722443b 100644--- a/web/js/naturalEvents/wv.naturalEvents.ui.js+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js@@ -295,17 +295,23 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config, reques// Check if an event is an Severe Storms (10)if(eventCategoryID == 10) {- var geomsLatestGeom = geoms[0];- var geomsLatestDate = wv.util.parseDateUTC(geomsLatestGeom.date);- var eventDateISOString = wv.util.toISOStringDate(geomsLatestDate);- var todayDateISOString = wv.util.toISOStringDate(wv.util.today());-- // Remove all items in the multi-day array matching today's date- geoms = geoms.filter(function(e) {- return e !== todayDateISOString;- });- }+ var geomsDates = geoms[0].date;+ var datesFound = 0;++ // Find all events date in the geoms object matching today's date+ for(var i = 0; i < geoms.length; i++) {+ var testeventDate = geoms[i].date;+ var geomsLatestDate = wv.util.parseDateUTC(testeventDate);+ var eventDateISOString = wv.util.toISOStringDate(geomsLatestDate);+ var todayDateISOString = wv.util.toISOStringDate(wv.util.today());+ if (eventDateISOString == todayDateISOString) {+ datesFound++;+ }+ }+ // remove the dates found that match today's date.+ geoms.splice(0, datesFound);+ }dateString = wv.util.giveWeekDay(eventDate) + ", " +wv.util.giveMonth(eventDate) + " " +diff --git a/web/mock/test_categories.json b/web/mock/categories_data.json-20170530similarity index 93%rename from web/mock/test_categories.jsonrename to web/mock/categories_data.json-20170530index 884503c31..011261097 100644--- a/web/mock/test_categories.json+++ b/web/mock/categories_data.json-20170530@@ -94,6 +94,13 @@"link": "http://eonet.sci.gsfc.nasa.gov/api/v2/categories/8","description": "Wildfires includes all nature of fire, including forest and plains fires, as well as urban and industrial fire events. Fires may be naturally caused or manmade.","layers": "http://eonet.sci.gsfc.nasa.gov/api/v2/layers/8"+ },+ {+ "id": 99,+ "title": "Testing",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/categories/99",+ "description": "This is strictly for testing and can be used in conjunction with other test data files.",+ "layers": "http://eonet.sci.gsfc.nasa.gov/api/v2/layers/99"}]}diff --git a/web/mock/events_data.json b/web/mock/events_data.jsonindex df36bb02f..a81808e32 100644--- a/web/mock/events_data.json+++ b/web/mock/events_data.json@@ -1 +1,416 @@-[{"satellite": "Aqua", "north": "64.524024", "description": "The Aqua satellite acquired this image showing large wildfires burning in the Yukon on July 14, 2013.", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=81647&src=nhrss", "date": "2013-07-14", "category": "Fires", "keyword": "outlines", "title": "Wildfires in the Yukon", "west": "-139.718640", "instrument": "MODIS", "east": "-133.345358", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/81000/81647/Canada_amo_2013195.2130_tn.jpg", "south": "60.477081"}, {"satellite": "Terra", "north": "53.844524", "description": "Fires in Quebec, Canada, are the likely source.", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=81526&src=nhrss", "date": "2013-06-23", "category": "Fires", "keyword": "", "title": "Wildfire Smoke Reaches the Atlantic", "west": "-62.338551", "instrument": "MODIS", "east": "-37.861393", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/81000/81526/newfoundland_tmo_2013174_tn.jpg", "south": "42.153356"}, {"satellite": "Aqua", "north": 65.022000000000006, "description": "On June 27, 2013, NASA\u2019s Aqua satellite captured this image of wildfires burning in northeastern Russia.", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=81511&src=nhrss", "date": "2013-06-27", "category": "Fires", "keyword": "outlines", "title": "Fires in Eastern Russia", "west": 115.6187, "instrument": "MODIS", "east": 128.38654285500041, "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/81000/81511/russia_amo_2013178_tn.jpg", "south": 60.975057334830993}]\ No newline at end of file++{+ "title": "EONET Events",+ "description": "Natural events from EONET.",+ "link": "https://eonet.sci.gsfc.nasa.gov/api/v2/events",+ "events": [+ {+ "id": "EONET_2793",+ "title": "Elm Fire, California",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2793",+ "categories": [+ {+ "id": 8,+ "title": "Wildfires"+ }+ ],+ "sources": [+ {+ "id": "CALFIRE",+ "url": "http://www.fire.ca.gov/current_incidents/incidentdetails/Index/1496"+ }++ ],+ "geometries": [+ {+ "date": "2017-05-18T00:00:00Z",+ "type": "Point", "coordinates": [ -120.37116, 36.12089 ]+ },+ {+ "date": "2017-06-18T00:00:00Z",+ "type": "Point", "coordinates": [ -120.37116, 36.12089 ]+ }++ ]+ },+ {+ "id": "EONET_2792",+ "title": "Santiago, Chile Flooding",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2792",+ "categories": [+ {+ "id": 9,+ "title": "Floods"+ }+ ],+ "sources": [+ {+ "id": "IDC",+ "url": "https://www.disasterscharter.org/web/guest/-/flood-in-chile-call-609-"+ }++ ],+ "geometries": [+ {+ "date": "2017-05-13T00:00:00Z",+ "type": "Point", "coordinates": [ -70.6640625, -33.45894275368763 ]+ },+ {+ "date": "2017-06-13T00:00:00Z",+ "type": "Point", "coordinates": [ -70.6640625, -33.45894275368763 ]+ }++ ]+ },+ {+ "id": "EONET_2781",+ "title": "Langila Volcano, Papua New Guinea",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2781",+ "categories": [+ {+ "id": 12,+ "title": "Volcanoes"+ }+ ],+ "sources": [+ {+ "id": "SIVolcano",+ "url": "http://volcano.si.edu/volcano.cfm?vn=252010"+ }++ ],+ "geometries": [+ {+ "date": "2017-04-23T00:00:00Z",+ "type": "Point", "coordinates": [ 148.42, -5.525 ]+ },+ {+ "date": "2017-05-23T00:00:00Z",+ "type": "Point", "coordinates": [ 148.42, -5.525 ]+ }++ ]+ },+ {+ "id": "EONET_2733",+ "title": "Iceberg B30",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2733",+ "categories": [+ {+ "id": 15,+ "title": "Sea and Lake Ice"+ }+ ],+ "sources": [+ {+ "id": "NATICE",+ "url": ""+ }++ ],+ "geometries": [+ {+ "date": "2012-08-08T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0791, -74.6012 ]+ },+ {+ "date": "2012-09-09T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0791, -74.6012 ]+ },+ {+ "date": "2012-10-01T00:00:00Z",+ "type": "Point", "coordinates": [ -106.8485, -74.4301 ]+ },+ {+ "date": "2012-11-09T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0473, -73.9919 ]+ },+ {+ "date": "2012-12-04T00:00:00Z",+ "type": "Point", "coordinates": [ -108.3369, -73.3476 ]+ },+ {+ "date": "2013-01-21T00:00:00Z",+ "type": "Point", "coordinates": [ -109.1054, -72.9535 ]+ },+ {+ "date": "2013-02-10T00:00:00Z",+ "type": "Point", "coordinates": [ -109.9264, -72.6757 ]+ },+ {+ "date": "2013-03-12T00:00:00Z",+ "type": "Point", "coordinates": [ -110.5143, -72.7185 ]+ },+ {+ "date": "2013-04-04T00:00:00Z",+ "type": "Point", "coordinates": [ -112.2076, -72.3576 ]+ },+ {+ "date": "2013-09-04T00:00:00Z",+ "type": "Point", "coordinates": [ -114.8741, -71.4385 ]+ },+ {+ "date": "2013-10-03T00:00:00Z",+ "type": "Point", "coordinates": [ -115.4525, -71.5515 ]+ },+ {+ "date": "2013-11-03T00:00:00Z",+ "type": "Point", "coordinates": [ -119.1569, -71.6348 ]+ },+ {+ "date": "2013-12-03T00:00:00Z",+ "type": "Point", "coordinates": [ -119.6126, -71.4968 ]+ },+ {+ "date": "2014-01-03T00:00:00Z",+ "type": "Point", "coordinates": [ -118.7164, -71.5061 ]+ },+ {+ "date": "2014-02-04T00:00:00Z",+ "type": "Point", "coordinates": [ -120.0084, -71.3578 ]+ },+ {+ "date": "2014-04-02T00:00:00Z",+ "type": "Point", "coordinates": [ -120.3049, -71.4506 ]+ },+ {+ "date": "2014-09-02T00:00:00Z",+ "type": "Point", "coordinates": [ -122.4766, -71.7122 ]+ },+ {+ "date": "2014-10-03T00:00:00Z",+ "type": "Point", "coordinates": [ -129.4619, -73.2982 ]+ },+ {+ "date": "2014-11-15T00:00:00Z",+ "type": "Point", "coordinates": [ -128.7063, -73.5593 ]+ },+ {+ "date": "2014-12-05T00:00:00Z",+ "type": "Point", "coordinates": [ -128.3491, -73.9525 ]+ },+ {+ "date": "2015-01-18T00:00:00Z",+ "type": "Point", "coordinates": [ -128.7291, -73.7930 ]+ },+ {+ "date": "2015-02-14T00:00:00Z",+ "type": "Point", "coordinates": [ -130.1039, -73.9265 ]+ },+ {+ "date": "2015-03-06T00:00:00Z",+ "type": "Point", "coordinates": [ -131.3582, -74.0653 ]+ },+ {+ "date": "2015-11-15T00:00:00Z",+ "type": "Point", "coordinates": [ -131.6436, -73.8799 ]+ },+ {+ "date": "2015-12-10T00:00:00Z",+ "type": "Point", "coordinates": [ -131.7159, -73.6767 ]+ },+ {+ "date": "2016-01-15T00:00:00Z",+ "type": "Point", "coordinates": [ -132.3065, -73.8905 ]+ },+ {+ "date": "2016-02-01T00:00:00Z",+ "type": "Point", "coordinates": [ -134.2615, -73.7783 ]+ },+ {+ "date": "2016-03-12T00:00:00Z",+ "type": "Point", "coordinates": [ -137.2411, -74.0321 ]+ },+ {+ "date": "2016-04-09T00:00:00Z",+ "type": "Point", "coordinates": [ -140.9370, -74.0345 ]+ },+ {+ "date": "2017-02-24T00:00:00Z",+ "type": "Point", "coordinates": [ -155.23, -73.63 ]+ }++ ]+ },+ {+ "id": "EONET_2733",+ "title": "Iceberg B30-TEST",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2733",+ "categories": [+ {+ "id": 15,+ "title": "Sea and Lake Ice"+ }+ ],+ "sources": [+ {+ "id": "NATICE",+ "url": ""+ }++ ],+ "geometries": [+ {+ "date": "2012-08-08T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0791, -74.6012 ]+ },+ {+ "date": "2012-09-09T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0791, -74.6012 ]+ },+ {+ "date": "2012-10-01T00:00:00Z",+ "type": "Point", "coordinates": [ -106.8485, -74.4301 ]+ },+ {+ "date": "2012-11-09T00:00:00Z",+ "type": "Point", "coordinates": [ -107.0473, -73.9919 ]+ },+ {+ "date": "2012-12-04T00:00:00Z",+ "type": "Point", "coordinates": [ -108.3369, -73.3476 ]+ },+ {+ "date": "2013-01-21T00:00:00Z",+ "type": "Point", "coordinates": [ -109.1054, -72.9535 ]+ },+ {+ "date": "2013-02-10T00:00:00Z",+ "type": "Point", "coordinates": [ -109.9264, -72.6757 ]+ },+ {+ "date": "2013-03-12T00:00:00Z",+ "type": "Point", "coordinates": [ -110.5143, -72.7185 ]+ },+ {+ "date": "2013-04-04T00:00:00Z",+ "type": "Point", "coordinates": [ -112.2076, -72.3576 ]+ },+ {+ "date": "2013-09-04T00:00:00Z",+ "type": "Point", "coordinates": [ -114.8741, -71.4385 ]+ },+ {+ "date": "2013-10-03T00:00:00Z",+ "type": "Point", "coordinates": [ -115.4525, -71.5515 ]+ },+ {+ "date": "2013-11-03T00:00:00Z",+ "type": "Point", "coordinates": [ -119.1569, -71.6348 ]+ },+ {+ "date": "2013-12-03T00:00:00Z",+ "type": "Point", "coordinates": [ -119.6126, -71.4968 ]+ },+ {+ "date": "2014-01-03T00:00:00Z",+ "type": "Point", "coordinates": [ -118.7164, -71.5061 ]+ },+ {+ "date": "2014-02-04T00:00:00Z",+ "type": "Point", "coordinates": [ -120.0084, -71.3578 ]+ },+ {+ "date": "2014-04-02T00:00:00Z",+ "type": "Point", "coordinates": [ -120.3049, -71.4506 ]+ },+ {+ "date": "2014-09-02T00:00:00Z",+ "type": "Point", "coordinates": [ -122.4766, -71.7122 ]+ },+ {+ "date": "2014-10-03T00:00:00Z",+ "type": "Point", "coordinates": [ -129.4619, -73.2982 ]+ },+ {+ "date": "2014-11-15T00:00:00Z",+ "type": "Point", "coordinates": [ -128.7063, -73.5593 ]+ },+ {+ "date": "2014-12-05T00:00:00Z",+ "type": "Point", "coordinates": [ -128.3491, -73.9525 ]+ },+ {+ "date": "2015-01-18T00:00:00Z",+ "type": "Point", "coordinates": [ -128.7291, -73.7930 ]+ },+ {+ "date": "2015-02-14T00:00:00Z",+ "type": "Point", "coordinates": [ -130.1039, -73.9265 ]+ },+ {+ "date": "2015-03-06T00:00:00Z",+ "type": "Point", "coordinates": [ -131.3582, -74.0653 ]+ },+ {+ "date": "2015-11-15T00:00:00Z",+ "type": "Point", "coordinates": [ -131.6436, -73.8799 ]+ },+ {+ "date": "2015-12-10T00:00:00Z",+ "type": "Point", "coordinates": [ -131.7159, -73.6767 ]+ },+ {+ "date": "2016-01-15T00:00:00Z",+ "type": "Point", "coordinates": [ -132.3065, -73.8905 ]+ },+ {+ "date": "2016-02-01T00:00:00Z",+ "type": "Point", "coordinates": [ -134.2615, -73.7783 ]+ },+ {+ "date": "2016-03-12T00:00:00Z",+ "type": "Point", "coordinates": [ -137.2411, -74.0321 ]+ },+ {+ "date": "2016-04-09T00:00:00Z",+ "type": "Point", "coordinates": [ -140.9370, -74.0345 ]+ },+ {+ "date": "2017-02-24T00:00:00Z",+ "type": "Point", "coordinates": [ -155.23, -73.63 ]+ },+ {+ "date": "2017-05-24T00:00:00Z",+ "type": "Point", "coordinates": [ -155.23, -73.63 ]+ }++ ]+ },+ {+ "id": "EONET_0001",+ "title": "Example id 1",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_0001",+ "categories": [+ {+ "id": 1,+ "title": "Sea and Lake Ice"+ }+ ],+ "sources": [+ {+ "id": "NATICE",+ "url": ""+ }++ ],+ "geometries": [+ {+ "date": "2012-10-04T00:00:00Z",+ "type": "Point", "coordinates": [ -41.3934, -75.8634 ]+ },+ {+ "date": "2012-11-04T00:00:00Z",+ "type": "Point", "coordinates": [ -41.3934, -75.8634 ]+ }++ ]+ }+ ]+}diff --git a/web/mock/events_data.json-20130412 b/web/mock/events_data.json-20130412deleted file mode 100644index aa30bbfd4..000000000--- a/web/mock/events_data.json-20130412+++ /dev/null@@ -1 +0,0 @@-[{"category": "Volcanoes and Earthquakes", "satellite": "Terra", "north": "57.448624", "description": "Four of the volcanoes erupting on Russia\u2019s Kamchatka Peninsula are visible in one satellite image.", "keyword": "", "title": "Volcanic Quartet", "west": "159.335960", "instrument": "MODIS", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=80899&src=nhrss", "date": "2013-04-10", "east": "162.463956", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/80000/80899/shiveluch_tmo_2013100_tn.jpg", "south": "54.750662"}, {"category": "Dust, Smoke, and Haze", "satellite": "Terra", "north": "22.946124", "description": "Acquired April 7, 2013, this image shows a dust plume spanning hundreds of kilometers along the southern Arabian Peninsula.", "keyword": "", "title": "Dust over the Arabian Sea", "west": "48.303096", "instrument": "MODIS", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=80878&src=nhrss", "date": "2013-04-07", "east": "61.696829", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/80000/80878/arabiansea_tmo_2013097_tn.jpg", "south": "13.053598"}, {"category": "Severe Storms", "satellite": "Terra", "north": "-4.031176", "description": "Acquired April 8, 2013, this image shows Tropical Storm Imelda over the Indian Ocean.", "keyword": "", "title": "Tropical Storm Imelda", "west": "55.874728", "instrument": "MODIS", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=80870&src=nhrss", "date": "2013-04-08", "east": "73.925332", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/80000/80870/imelda_tmo_2013098_tn.jpg", "south": "-17.970645"}, {"satellite": "Terra", "north": "37.497124", "description": "Acquired April 7 and 8, 2013, these images show dust plumes over the Mediterranean Sea.", "link": "http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=80865&src=nhrss", "date": "2013-04-08", "category": "Dust, Smoke, and Haze", "keyword": "", "title": "Dust Plumes over the Mediterranean Sea", "west": "29.385772", "instrument": "MODIS", "east": "37.614291", "thumbnail": "http://eoimages.gsfc.nasa.gov/images/imagerecords/80000/80865/emedsea_amo_2013098_tn.jpg", "south": "28.503918"}]\ No newline at end of filediff --git a/web/mock/test_events.json b/web/mock/events_data.json-20170530similarity index 86%rename from web/mock/test_events.jsonrename to web/mock/events_data.json-20170530index a81808e32..04028e17e 100644--- a/web/mock/test_events.json+++ b/web/mock/events_data.json-20170530@@ -5,20 +5,20 @@"link": "https://eonet.sci.gsfc.nasa.gov/api/v2/events","events": [{- "id": "EONET_2793",- "title": "Elm Fire, California",+ "id": "EONET_99999",+ "title": "Testing Event with Test Category","description": "",- "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2793",+ "link": "http://www.example.com","categories": [{- "id": 8,- "title": "Wildfires"+ "id": 99,+ "title": "Testing"}],"sources": [{- "id": "CALFIRE",- "url": "http://www.fire.ca.gov/current_incidents/incidentdetails/Index/1496"+ "id": "TEST",+ "url": "http://www.example.com"}],@@ -26,10 +26,63 @@{"date": "2017-05-18T00:00:00Z","type": "Point", "coordinates": [ -120.37116, 36.12089 ]+ }++ ]+ },+ {+ "id": "EONET_2804",+ "title": "Tropical Storm Mora",+ "description": "",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events/EONET_2804",+ "categories": [+ {+ "id": 10,+ "title": "Severe Storms"+ }+ ],+ "sources": [+ {+ "id": "UNISYS",+ "url": "http://weather.unisys.com/hurricane/n_indian/2017/MORA/track.dat"+ }++ ],+ "geometries": [+ {+ "date": "2017-05-27T18:00:00Z",+ "type": "Point", "coordinates": [ 88.70, 14.00 ]},{- "date": "2017-06-18T00:00:00Z",- "type": "Point", "coordinates": [ -120.37116, 36.12089 ]+ "date": "2017-05-28T00:00:00Z",+ "type": "Point", "coordinates": [ 88.90, 14.20 ]+ },+ {+ "date": "2017-05-28T06:00:00Z",+ "type": "Point", "coordinates": [ 90.40, 14.80 ]+ },+ {+ "date": "2017-05-28T12:00:00Z",+ "type": "Point", "coordinates": [ 91.20, 15.80 ]+ },+ {+ "date": "2017-05-28T18:00:00Z",+ "type": "Point", "coordinates": [ 91.00, 16.30 ]+ },+ {+ "date": "2017-05-29T00:00:00Z",+ "type": "Point", "coordinates": [ 90.90, 17.00 ]+ },+ {+ "date": "2017-05-29T06:00:00Z",+ "type": "Point", "coordinates": [ 91.50, 17.70 ]+ },+ {+ "date": "2017-05-30T00:00:00Z",+ "type": "Point", "coordinates": [ 92.50, 17.70 ]+ },{+ "date": "2017-05-30T06:00:00Z",+ "type": "Point", "coordinates": [ 93.50, 17.70 ]}]diff --git a/web/mock/test_sources.json b/web/mock/sources_data.json-20170530similarity index 95%rename from web/mock/test_sources.jsonrename to web/mock/sources_data.json-20170530index 5b7e65242..0a4ead654 100644--- a/web/mock/test_sources.json+++ b/web/mock/sources_data.json-20170530@@ -4,6 +4,12 @@"description": "List of all the available event sources in the EONET system","link": "http://eonet.sci.gsfc.nasa.gov/api/v2/sources","sources": [+ {+ "id": "TEST",+ "title": "Test Source",+ "source": "http://www.example.com/",+ "link": "http://eonet.sci.gsfc.nasa.gov/api/v2/events?source=TEST"+ },{"id": "AU_BOM","title": "Australia Bureau of Meteorology",