keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.41k stars 1.74k forks source link

Add feature to open map-popover programmatically #173

Closed akutuev closed 3 years ago

akutuev commented 6 years ago

Hello,

Looks like it's impossible to open map-popover programmatically. I used onLayerHover action, but have coordinates of the point (lngLat) and data. In that case viewport is null but function _renderObjectLayerPopover requires it.

So, can we add a possibility to open map-popover programmatically?

Thanks, Alexander

macrigiuseppe commented 6 years ago

hello @kutuev, can you share more details? Do you simply want to open the tooltip or sho any react component?

Thank you

rochapablo commented 6 years ago

I have a question that could be related...

Is it possible add actions inside the tooltip or even load external react component as mentioned?

Like, the user use the right click and interact on a specific row, deleting, updating or adding extra information.

https://github.com/uber/kepler.gl/issues/171

macrigiuseppe commented 6 years ago

Hi @rochapablo, you are talking about Annotations. That's a different feature!!

macrigiuseppe commented 5 years ago

this will be part of https://github.com/keplergl/kepler.gl/issues/398

mkopani commented 5 months ago

I'd like to open this up again. Is there a way to programmatically show and pin a map-popover using coordinates (a single lat-long pair) in 2024? I have already implemented the search util that finds the polygon feature containing the coordinates but I have been unable to trigger LAYER_HOVER or LAYER_CLICK using the feature. I've tried both onLayerHover and onLayerClick but no dice.

@akutuev did you ever end up figuring it out?

Thank you