Hello, 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.
I only spend together maybe 2 or 3 full days to implement it all so the style is still very incomplete and dirty. You can see current result at https://www.freemap.sk/?map=13/48.812516/21.114092&layers=X (make sure you have not port 4000 blocked). Map configuration (style and layers) are still in a single file [1] and uses style builder [2] to create Mapnik XML. I plan to extract the style builder to separate project to be easily usable by other programmers. Feel free to send me your feedback (mostly regarding style generator in JS idea). You can also check the whole project at https://github.com/FreemapSlovakia/freemap-mapnik Thanks. [1] https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/freemapStyleGenerator.js [2] https://github.com/FreemapSlovakia/freemap-mapnik/blob/master/lib/styleBuilder.js Regards -- Martin Ždila <http://www.openstreetmap.org/user/*Martin*> OZ Freemap Slovakia tel:+421-908-363-848 mailto:martin.zd...@freemap.sk http://www.freemap.sk/
_______________________________________________ talk mailing list talk@openstreetmap.org https://lists.openstreetmap.org/listinfo/talk