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 f3a2ad9 commit 686af55
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 495 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const layer = L.dataClassification(data, {
- `color <string>`: line stroke color, use only in width mode (default: blue, the L.path default)
- `weight <float>`: line stroke weight, use only in color mode (default: 3, the L.path default)
#### Specific for Polygon features
- `polygonMode <string>`: ['color`|`hatch`] fill "color" or "hatch" (default: 'color')
- `polygonMode <string>`: ['color'|'hatch'] fill "color" or "hatch" (default: 'color')
- `polygonHatch <object>`: when polygonMode: "hatch", customize hatch fill pattern
- `distinctionMode <string>`: ['width'|'angle'|'both'] symbol distinction type between classes (default: 'both')
- `strokeColors <array<string>>`: stroke colors (default: ['darkred', 'none'])
Expand Down
Loading

0 comments on commit 686af55

Please sign in to comment.