Skip to content

Commit

Permalink
example polygons_h changed colors of hatches, updated readme (citat…
Browse files Browse the repository at this point in the history
…ion), updated hatch fill types screenshot
  • Loading branch information
balladaniel committed Jun 26, 2024
1 parent a4e8d0d commit 06cc703
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,10 @@ const layer = L.dataClassification(data, {
Hatch fill patterns provided by [leaflet-hatchclass](https://github.com/samanbey/leaflet-hatchclass). (Gede, M.: Hatch Fill on Webmaps – to Do or Not to Do, and How to Do, Abstr. Int. Cartogr. Assoc., 5, 48, https://doi.org/10.5194/ica-abs-5-48-2022, 2022.)
![Screenshot of different hatch fill pattern modes (distinctionMode option). Samples.](screenshots_hatchfill.png)
## How to cite
If you happen to use the plugin in connection with a scientific publication, please refer to:
**Balla, D. and Gede, M.: Beautiful thematic maps in Leaflet with automatic data classification, Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci., XLVIII-4/W12-2024, 3–10, https://doi.org/10.5194/isprs-archives-XLVIII-4-W12-2024-3-2024, 2024.**
The publication gives an overview of features offered (and not offered) by Leaflet specifically for creating thematic maps and it also includes a basic performance assessment of the plugin.
2 changes: 1 addition & 1 deletion examples/polygons_h.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
attribution: "<a href='https://ec.europa.eu/eurostat/web/products-datasets/-/tgs00101' target='_blank'>Data: Life expectancy at birth (NUTS 2), Eurostat</a>",
onEachFeature: tooltip,
polygonHatch: {
strokeColors: ['lightgreen', '#fff8b5'],
strokeColors: ['#ffdb3d', '#ff3030'],
strokeWidth: {min: -1, max: 13},
distinctionMode: 'width', // width/angle/both
angle: 45,
Expand Down
Binary file modified screenshots_hatchfill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06cc703

Please sign in to comment.