JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 80
  • Score
    100M100P100Q77409F
  • License MIT

Create leaflet Polylines with colored gradients. Inspired from Leaflet.Hotline, with accurate colored gradients and Typescript support.

Package Exports

  • react-leaflet-hotline

Readme

react-leaflet-hotline

Create colored gradient Polylines in react-leaflet

📝 Documentation, Examples and Live playground here 🎨

⚠️ This is not just a port from L.hotline, but mostly a rewrite to make gradient colors accurate. L.Hotline suffers from colors changing when moving around and zooming in and out - this package aims to fix it as well.


  • Typescript support
  • Both standalone Component and Hook available
  • Highly customizable
  • Supports all leaflet events (click, mouseover, mouseout, ...)
  • Ultra lightweight: <10kB