kepler.gl icon indicating copy to clipboard operation
kepler.gl copied to clipboard

Custom tooltip

Open MosheMalin opened this issue 7 years ago • 5 comments

Is there a way to get an handle to the event that raises the tooltip, in order to provide a custom tooltip instead? Alternatively, is there a way to add html elements to the tooltip or to otherwise customize it?

Thanks!

MosheMalin avatar Jul 17 '19 17:07 MosheMalin

+1

kunalganglani avatar Jul 18 '19 12:07 kunalganglani

Related to this, some more clarifications on how to use the onLayerClick, onMapClick, ... visStateActions would be nice.

bskrt avatar Jul 19 '19 14:07 bskrt

You can replace MapPopoverFactory to implement your own tooltip. Here is the source code https://github.com/keplergl/kepler.gl/blob/master/src/components/map/map-popover.js#L84

heshan0131 avatar Jul 19 '19 17:07 heshan0131

Thank you! checking it.

MosheMalin avatar Jul 23 '19 13:07 MosheMalin

@heshan0131 How to pass the props to MapPopoverFactory function?

MoRadwan74 avatar Jun 17 '20 20:06 MoRadwan74