[GIS] GeoJSON style in Leaflet from GeoServer

geojsongeoserverleafletsld

I have a GeoJSON point layer from GeoServer. As I recognised there are several ways to style. My question is, is it possible to style it using an SLD from GeoServer?

I use AJAX request for importing the GeoJSON. If not, is it possible to make markers invisible? Not that elegant but I would make layers with styles from GeoServer then have GeoJSON layers with popups.

Best Answer

GeoJSON is a data output format, if you want GeoServer to style the output then you need to request a WMS image output such as png or jpg.

Leaflet has styling options too but they are distinct from GeoServer's.