﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21527	GeoStyler or .., use JOSM mapcss in other applications.	Allroads	team	"There lot of nice mapcss JOSM styles. It would be nice to see them on a website. So that others could see the potential, even others can be pointed to a problem by send a url parameter website.
A check function outside JOSM, on a second screen.


[https://openlayers.org/en/latest/examples/vector-osm.html Website with Openlayers] and OSMXML overpass.

I could use such a visualisation.

[https://github.com/geostyler/geostyler/issues/1175 There is a issue on geostyler github page]

I noticed that GeoStyler or geoparser was not mentioned on josm.openstreetmap.de, when I searched.

A message that was send to me:

In order to transform and use your JOSM styles (MapCSS format when I understood you right) in OpenLayers there needs to be a GeoStyler parser for JOSM styles / MapCSS. So GeoStyler ""understands"" JOSM styles and can be used. If that is the case you can transform by GeoStyler to every other supported style format. Since OpenLayers styles is one of these [1] it would be possible to transform to OL-styles.

There is an issue which asks for a MapCSS parser for GeoStyler [2] (the issue's topic drifts a bit away towards a discussion of GeoCSS parser). Unfortunately no one volunteered so far for writing a MapCSS parser. We (as the GeoStyler community) would happily accept such a parser and appreciate if someone volunteers for that. Would you like to have a look into implementing a MapCSS parser?
So long story short: Until no GeoStyler-MapCSS-Parser is available I see no chance to use your JOSM styles in OpenLayers (at least with GeoStyler).



[1] [https://github.com/geostyler/geostyler-openlayers-parser]
[2] [https://github.com/geostyler/geostyler/issues/1175]


--


Or are there other solutions?
"	enhancement	closed	normal		External mappaint style		othersoftware	geostyler geoparser mapcss mappaint	
