function get gps data from api, create geojson, add geojson to map and add data to sidebar
function getGeoJSON(data) { // add geojson to map and add sidebar var gps = L.geoJson(data, { pointToLayer: function(feature, latlng) { return L.circleMarker(latlng, geojsonMarkerOptions); }, onEachFeature: onEachFeature }) .addTo(map);