unify generation of map in osmmap.php and osmmap2.php code
factoring generation leaflet map