leaflet-d3-layer
leaflet-d3-layer copied to clipboard
allow custom feature identifier
This fix addresses the issue discussed https://github.com/rclark/leaflet-d3-layer/issues/1.
I've added an option to allow the user to specify a function that would pick the appropriate unique identifier. I've also added information to the README.
Added options to specify classed
, attr
, and on
fields or functions to be applied to the paths.