leaflet-hexbin / HexbinLayerConfig
Interface: HexbinLayerConfig<Data> 
Defined in: HexbinLayer.ts:34
Hexbin layer configuration options this can be provided when instantiating a new hexbin layer.
Type Parameters 
Data 
Data
Properties 
radius? 
optionalradius:number
Defined in: HexbinLayer.ts:42
Hex grid cell radius in pixels. This value should be a positive number. This radius controls the radius of the hexagons used to bin the data but not necessarily to draw each individual hexbin.
Default 
12opacity? 
optionalopacity:number| [number,number]
Defined in: HexbinLayer.ts:49
Sets the opacity on the hexbin layer. This value should be a number between 0 and 1. If an array is provided, the first element is the minimum opacity and the second is the maximum.
Default 
0.6opacityScaleExtent? 
optionalopacityScaleExtent: [number,undefined|number]
Defined in: HexbinLayer.ts:54
Opacity scale extent: [min, max] domain for opacity interpolation.
Default 
[1, undefined]duration? 
optionalduration:number
Defined in: HexbinLayer.ts:59
Duration of transition in milliseconds.
Default 
200colorScaleExtent? 
optionalcolorScaleExtent: [number,undefined|number]
Defined in: HexbinLayer.ts:65
Color scale extent: [min, max] domain for color interpolation.
Default 
[1, undefined]colorDomain? 
optionalcolorDomain:null|number[]
Defined in: HexbinLayer.ts:73
This is used to override the default behavior, which is to derive the color domain from the data. Normally, you can tweak the generation of the color domain using the colorScaleExtent option. However, if you want to set a completely custom domain, you can provide it as an array of values with this option. The array of values will be passed directly into the domain of the color scale before rendering.
Default 
nullcolorRange? 
optionalcolorRange:string[]
Defined in: HexbinLayer.ts:78
Color range used to fill the hexbins.
Default 
['#f7fbff', '#08306b']radiusScaleExtent? 
optionalradiusScaleExtent: [number,undefined|number]
Defined in: HexbinLayer.ts:84
Radius scale extent: [min, max] domain for radius interpolation.
Default 
[1, undefined]radiusDomain? 
optionalradiusDomain:null|number[]
Defined in: HexbinLayer.ts:92
This is used to override the default behavior, which is to derive the radius domain from the data. Normally, you can tweak the generation of the radius domain using the radiusScaleExtent option. However, if you want to set a completely custom domain, you can provide it as an array of values with this option. The array of values will be passed directly into the domain of the radius scale before rendering.
Default 
nullradiusRange? 
optionalradiusRange:null| [number,number]
Defined in: HexbinLayer.ts:97
Sets the range of the radius scale used to size the hexbins.
Default 
hex grid cell radiuspointerEvents? 
optionalpointerEvents:string
Defined in: HexbinLayer.ts:103
You should only modify this config option if you want to change the mouse event behavior on hexbins. This will modify when the events are propagated based on the visibility state and/or part of the hexbin being hovered.
Default 
'all'noRedraw? 
optionalnoRedraw:boolean
Defined in: HexbinLayer.ts:109
If true, the layer will not be redrawn after data changes and hover handler binding.
Default 
falsecolorBinding? 
optionalcolorBinding:ScaleBinding<Data>
Defined in: HexbinLayer.ts:111
radiusBinding? 
optionalradiusBinding:ScaleBinding<Data>
Defined in: HexbinLayer.ts:112
opacityBinding? 
optionalopacityBinding:ScaleBinding<Data>
Defined in: HexbinLayer.ts:113
fill()? 
optionalfill: (d) =>string
Defined in: HexbinLayer.ts:114
Parameters 
d 
HexbinData<Data>[]
Returns 
string