[Vuejs]-Vue Leaflet Get Color Function

0👍

onEachFeatureFunction() {
        return (feature, layer) => {
        layer.options.fillColor = this.getcolorFunction(
          feature.properties.sales
            ?feature.properties.sales
            : 0
        );
        layer.on("click", function (e) {
           console.log(e, feature);
        })          
    };
}

Leave a comment