inrae / diades.atlas

Code of the atlas of the project Diades
https://inrae.github.io/diades.atlas
Other
1 stars 2 forks source link

[3 - Changement climatique] Interactivité et visuel - L'année et le BV ne sont pas correctement pris en compte #68

Closed statnmap closed 2 years ago

statnmap commented 2 years ago

Interactivité

Il y a un problème d'interactivité et l'année choisie n'est pas affichée dans le ggplot2 avec le bouton "montrer les résultats"

image

Actuellement, en arrivant:

Ce qui est attendu:

Apparence visuelle

statnmap commented 2 years ago

Color basin on click

$("#second_ui_1-plot .leaflet-interactive").on("click", function() {
    var curr_fill = $(this).attr("fill")
    $("#second_ui_1-plot .leaflet-interactive").attr("fill", "#03F");
    $("#second_ui_1-plot .leaflet-interactive").attr("stroke", "#03F");
    if (curr_fill == "red") {
        $(this).attr("fill", "#03F");
        $(this).attr("stroke", "#03F");
    } else {
        $(this).attr("fill", "red");
        $(this).attr("stroke", "red");
    }
})