Generating maps with customizable markers


Posted by Diego Assencio on 2019.07.05 under Technology (Maps)

I have recently developed a tool, mapgen, which generates interactive maps with customizable markers. It takes a YAML file containing map settings and marker data as input and generates an HTML page as output. This page contains all JavaScript and CSS code it needs inlined into it, so it can be directly opened in a web browser (without the need for a web server), shared with others (e.g. via e-mail), or added to an existing webpage through an <iframe> element. Below is an example of a simple map generated with mapgen:

Fig. 1: Largest capital cities of the European Union. Clicking on a marker will open a popup showing its associated city name and estimated population.

The contents of the YAML file used as input to generate this map can be found here. If you would like to see additional examples or read the tool's documentation, see its README file.

Feedback and feature requests are of course welcome. Have fun! :-)

Comments

No comments posted yet.

Leave a reply

NOTE: A name and a comment (max. 1024 characters) must be provided; all other fields are optional. Equations will be processed if surrounded with dollar signs (as in LaTeX). You can post up to 5 comments per day.

Preview: