Skip to content

v1.6.1

Latest
Compare
Choose a tag to compare
@balladaniel balladaniel released this 06 Feb 18:05
· 3 commits to main since this release
a4e8d0d

New example: polygons_c2.html

Improvements, fixes

  • rework of SVG point symbols:
    • creates a proper SVG element and sets its attributes
    • canvas size of point symbols (width/height of <svg> elements) now matches the actual symbol size (symbol width + strokewidth*2). It was a consistent 30x30px before, both on map (incorrectly) and in legend. In the legend, point symbols are now always converted (shifted) to be in the centre of a 30x30px canvas.
    • fixed positioning of symbols being spatially off-centre, incorrectly (before: see example points_s.html up to commit 6269669, hover over points to open tooltip, observe symbol/tooltip center misalignment)
  • fix: option pointShape had no effect when styling MultiPoint features
  • per-layer processing time is now measured, optionally
    • set showTimeBreakdown: true in leaflet-dataclassification.js to see results in console
    • specific steps are detailed for the layer (in ms): Loading values, Data normalization, Generating classes, Generating colors, Generating symbol size ranges, Applying symbology based on classes, Generating legend, Total processing time
  • updated readme to indicate feature count for example/demo pages
  • examples:
    • new example: polygons_c2.html with 3220 polygons (us_pres_elections_2020_turnout_bycounty.geojson)
    • added direct links to other demos/examples in info panel