Skip to content

v1.2

Compare
Choose a tag to compare
@balladaniel balladaniel released this 05 Oct 18:33
· 35 commits to main since this release

New features

  • Null/nodata feature handling logic

    • new option noDataColor: fill color to use for features with null/nodata attribute values. In polygon, point-color and line-color modes. (default: '#606060'). Also appears in legend as a separate class/category. Currently, null/nodata features are not assigned a distinctive symbol when in point-size and line-width modes.
    • new option noDataIgnore: if true, features with null attribute values are not shown on the map. This also means the legend will not have a nodata classs (default: false)
    • new option nodata in legendTemplate: you can now customize the nodata text in Legend

Improvements

  • modified classification code to filter out null attribute values when generating classes
  • more thorough check for non-existing attribute field vs. null as attribute value (with more concise error messages)
  • legend data rows (symbol + key) now have a css class (legendDataRow), set in leaflet-dataclassification.css, resulting in a cleaner legend-generation code
  • updated documentation