All sources are available on Github. Go to the Gallery. CC (BY) N. Lambert (neocarto).
This example shows how to change map parameters with a web form.