updated leaflet and mapbbcode parsing functions