Deck.gl: OnHover doesn't work with IconLayer Example

Created on 5 Jul 2018  路  2Comments  路  Source: visgl/deck.gl

What do I do to get a Tool-tip while hovering over Icons in the meteorite example. It isn't clearly explained anywhere I look. So I'm unsure how to get the same results displayed on their website

Actual Result

I don't see the Tool-tip while Hovering over the Icons with the example I downloaded

Expected Result

I wanted the example to work like how it works over here

All 2 comments

@shreym03 , the website version uses extra logic to display too-tips which isn't present in example. You can check : https://github.com/uber/deck.gl/blob/c6e8ac1a97505df995cef68277cc77978751bb46/website/src/components/demos/icon-demo.js#L75

@1chandu If I were to say try to implement it into the IconLayer Example, how would I go about it?

I got a part of it to work by looking at Issue #1128 but when I try to implement the onHover and renderHoveredItems from the above code into the app.js code, It doesn't work.

I get an Uncaught TypeError from browser console for viewport.zoom or

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ibesora picture ibesora  路  4Comments

jacklam718 picture jacklam718  路  4Comments

FilipHusnjak picture FilipHusnjak  路  3Comments

euzu picture euzu  路  3Comments

patilvikram picture patilvikram  路  3Comments