new HexBin(options)
A source for hexagonal binning
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
ol.source.VectorOptions + ol.HexGridOptions Properties
|
Extends
- ol.source.Vector
Methods
-
getBin(f)
-
Get the hexagon of a feature
Parameters:
Name Type Description f
ol.Feature Returns:
the bin id, the index of the feature in the bin and a boolean if the feature has moved to an other bin
-
getSource()
-
Get the orginal source
Returns:
- Type
- ol.source.Vector
-
reset()
-
Clear all bins and generate a new one