function addToMap(location, map) {
    var marker = L.marker(location.coordinates);
    marker.addTo(map);
  }
function addToMap(location, map) {
    var marker = L.marker(location.coordinates);
    marker.addTo(map);
  }
function addToMap ( location , map ) { var marker = L . marker ( location . coordinates ) ; marker . addTo ( map ) ; }
Have to create a separate marker for each map else weirdness happens
Have to create a separate marker for each map else weirdness happens