<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>Today's trend is to put many markups to JS (eg. CSS in JS, HTML in JS (React), ...). Therefore I've decided to implement "Mapnik config in JS" and I have a great pleasure using it to write my new outdoor map theme.</div><div><br></div><div>I only spend together maybe 2 or 3 full days to implement it all so the style is still very incomplete and dirty.<br></div><div><br></div><div>You can see current result at <a href="https://www.freemap.sk/?map=13/48.812516/21.114092&layers=X">https://www.freemap.sk/?map=13/48.812516/21.114092&layers=X</a> (make sure you have not port 4000 blocked).<br></div><div><br></div><div>Map configuration (style and layers) are still in a single file [1] and uses style builder [2] to create Mapnik XML.</div><div><br></div><div>I plan to extract the style builder to separate project to be easily usable by other programmers.</div><div><br></div><div>Feel free to send me your feedback (mostly regarding style generator in JS idea).</div><div><br></div><div>You can also check the whole project at <a href="https://github.com/FreemapSlovakia/freemap-mapnik">https://github.com/FreemapSlovakia/freemap-mapnik</a><br></div><div><br></div><div>Thanks.<br></div><div><br></div><div></div><div>[1] <a href="https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/freemapStyleGenerator.js">https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/freemapStyleGenerator.js</a></div><div>[2] <a href="https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/styleBuilder.js">https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/styleBuilder.js</a><br></div><div></div><div><br></div><div>Regards<br></div><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><a href="http://www.openstreetmap.org/user/*Martin*" target="_blank">Martin Ždila</a><div><div>OZ Freemap Slovakia</div><div><div>tel:+421-908-363-848<br>mailto:<a href="mailto:martin.zdila@freemap.sk" target="_blank">martin.zdila@freemap.sk</a><br><a href="http://www.freemap.sk" target="_blank">http://www.freemap.sk/</a></div></div></div></div></div></div></div></div></div></div></div>