// Style Dati
var EarthquakesMarkerOptions = {
radius: 8,
fillColor: "orange",
color: "grey",
weight: 1.75,
opacity: 0.9,
fillOpacity: 0.7
};
// Dati GeoJSON
function getOptions(properties) {
if (properties.Value === "0" AND properties.Value.Map_2_Valu === "D") {
return {
fillColor: "#fdd49e"
};
} else if (properties.Value === "2" AND properties.Value.Map_2_Valu === "D") {
return {
fillColor: "#fdbb84"
};
} else if (properties.Value === "3" AND properties.Value.Map_2_Valu === "D") {
return {
fillColor: "#fc8d59"
};
} else if (properties.Value === "4" AND properties.Value.Map_2_Valu === "D") {
return {
fillColor: "#e34a33"
};
} else if (properties.Value === "0" AND properties.Value.Map_2_Valu === "F") {
return {
fillColor: "#d95f0e"
};
} else if (properties.Value === "2" AND properties.Value.Map_2_Valu === "F") {
return {
fillColor: "#993404"
};
}
}
var earthquakes = L.geoJson(layer_1, {
pointToLayer: function (feature, latlng) {
return L.circleMarker(latlng, getOptions(feature.properties));
}
});