Why: Sometimes the latitude or longitude it passed to the map as ********* instead of the actual latitude or longitud. The asterisks are not a string, breaking the whole array https://github.com/consul/consul/issues/2380 What: This commits skips invalid markers and displays the rest How: - Substituting the mysterious asterisks for null (cleanInvestmentCoordinates) - Validating the coordinates are numbers before trying to pain them(validCoordinates) - Adding a numeric function to validate the latitude and longitude (isNumeric) https://stackoverflow.com/questions/9716468/is-there-any-function-like-i snumeric-in-javascript-to-validate-numbers#answer-9716488