First commit of the map formatter, still need a kml to be loaded into the leaflet, the code works when a geoJSOn string is loaded into it. KML loading needs an extra leaflet plug-in though.
included geoJSON library.
Fix Map formatter