I want to show my road network in red color. How can I change this default color of the road network. Where should I attach style property?
var roadNetwork = new L.LayerGroup();
$.getJSON("{% url 'road_dataset' %}", function (data) {
var geojson = L.geoJson(data, {
onEachFeature: function (feature, layer) {
layer.bindPopup(feature.properties.road_name);
}
});
geojson.addTo(roadNetwork);
});