I'm building a basic car hire search application that returns results from a number of providers, and shows the locations of these providers via a Leaflet map. At the moment, I'm looping through the results and adding a location marker to a Layer Group for each result.
However each provider returns a number of results (different car types that they offer and so on), and I'm trying to work out how I can add just one marker for each provider. I'm guessing that maybe I need to use 'hasLayer' somehow, I'm just not sure how....