Alright, away from python scripting, I want to share a small tool CSV to HTML 101 with you, guys. I used VB.NET to develop it in order to help non-GIS experts from converting a CSV file to a web page using leaflet.JS library. Honestly, it’s not that complicated tool, but it gives them that push to start a web map especially if they have not dug that deep in web development, javascript and leaflet. However, I’m one of these people, so please don’t judge my ugly code 😳

The developed tool should meet the following criteria:

Simple enough to be used by my grandma. 😛 Converting a CSV file directly to an HTML file without using any third-party web/software that could be used to convert them to geoJSON/ JSON,…. (trying not to confuse my grandma 😛 ) The output is one file only (No CSS or JS source files). That will make it much easier for sharing on any operating system using a web browser. The tool should allow the user to choose the desired fields to be displayed in the markers popups. The tool should be executable (windows, here) as it does not require additional software packages to run the script. The tool should allow the user to insert an abstract about the project

Steps:

Download the tool from here Click on import CSV and navigate to the desired CSV file: The tool reads the CSV file and extracts the header. The fields headers will be loaded in the checkbox: The checked fields will be displayed in the popups. Specify the latitude and longitude fields (from the combo boxes) Specify the zoom level of the first map: For map initial sets, the center will be automatically calculated based on the markers locations but the zoom level depends on the geographic distribution of the data. (Therefore it’s required here!) Write a brief description of the project/ data you are displaying. Click on “Generate” button and choose the desired location of HTML file Insert the web page title Insert the project title Done 🙂 (examine it here)

P.S. The tool uses OSM

Your comments are more than welcome