I currently have geoJson loaded in to a leaflet map where I want to change the variable symbolised. The symbology rules can all be the same for each variable visualised. I need to find a way of letting the user choose (a list of checkboxes maybe?) which variable to visualise and then insert the choice in to the styling function that is looking at the variable. There are 8 variables
function doStylegtd(feature) { if (feature.properties.variable1 >= 0.0 && feature.properties.variable1 = 500.0 && feature.properties.variable1 = 1000.0 && feature.properties.variable1 = 1500.0 && feature.properties.variable1 = 2000.0 && feature.properties.variable1 = 2500.0 && feature.properties.variable1 = 3000.0 && feature.properties.variable1
function doStylegtd(feature) { if (feature.properties.variable1 >= 0.0 && feature.properties.variable1 = 500.0 && feature.properties.variable1 = 1000.0 && feature.properties.variable1 = 1500.0 && feature.properties.variable1 = 2000.0 && feature.properties.variable1 = 2500.0 && feature.properties.variable1 = 3000.0 && feature.properties.variable1