I've done various ways to change the polygon color with external links, but only one color can be displayed, so I need help with changing and displaying more than one polygon color in the source code Leaflet with an external GeoJSON file link.
Code:
fetch("https://testapp.my.id/batas_wilayah_sumbar.geojson")
.then(function(response){
return response.json();
})
.then(function(data1){
L.geoJson(data1, {
style:function(feature){
return{
style:myStyle
},
onEachFeature:onEachFeature
})
.addTo(myMap);
});