Layers GeoJSON features with different styles example

You can define a function to set the style for features based on properties