Skip to content

Commit

Permalink
Simplified legend generation code
Browse files Browse the repository at this point in the history
  • Loading branch information
balladaniel committed Nov 30, 2023
1 parent 686af55 commit 33d7da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet-dataclassification.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ L.DataClassification = L.GeoJSON.extend({
if (unitMod_options.hasOwnProperty('action') && unitMod_options.action != null && typeof unitMod_options.action == "string" && unitMod_options.hasOwnProperty('by') && unitMod_options.by != null && typeof unitMod_options.by == "number") {
legendPP_unitMod(unitMod_options)
} else {
console.error('Missing/invalid options for "unitModifier". Try `unitModifier: {action: "multiply", number: 1000}`. Classe values in legend were not affected.')
console.error('Missing/invalid options for "unitModifier". Try `unitModifier: {action: "multiply", number: 1000}`. Class values in legend were not affected.')
};
}

Expand Down

0 comments on commit 33d7da9

Please sign in to comment.