Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyDeck layer HexagonLayer numerous bugs - tooltips, get_position #8697

Open
1 of 7 tasks
ocmarus opened this issue Mar 23, 2024 · 0 comments
Open
1 of 7 tasks

pyDeck layer HexagonLayer numerous bugs - tooltips, get_position #8697

ocmarus opened this issue Mar 23, 2024 · 0 comments
Milestone

Comments

@ocmarus
Copy link

ocmarus commented Mar 23, 2024

Description

in HexagonLayer style of pdk.Layer there are bugs with tooltip and point locations.

  1. tooltip is displaying wrong. Instead of values, it is be param name. There are numerous reports about the problem, but it still exist in the Hexagon implementation.
  2. if data contains wrong Lon/Lat value (as example, [129.0, 34.0], whole layer will not be visible.

funny situation, if you set layer type to 'ColumnLayer', the same dataset and parameters will be displayed correctly.

the setting I am using in my app:

tooltip = {'html': 'Place: {place_name}</br>Rents: {rents}'}

pdk.Layer(
                type='ColumnLayer',    # 'HexagonLayer',
                data=rents_map,
                get_position='[lon, lat]',
                get_evelation='rents',
                get_elevation_weight='rents',
                elevation_scale=10,
                elevation_range=[0, max_range],
                pickable=True,
                extruded=True,
                )

pdk.Deck(
                map_provider='mapbox',
                map_style=None,  
                initial_view_state={
                    'latitude': 35.70,
                    'longitude': 37.60,
                    'zoom': 9,
                    'pitch': 50
                },
                layers=[map_layers],
                tooltip=tooltip,
            )

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CartoLayer
  • ArcGIS

Expected Behavior

expecting the same picture as it is for ColumnLayer but with HexagonLayer

Steps to Reproduce

  1. to reproduce not visible data - just set any gps value in the dataset with wrong value
  2. to show the problem with tooltip - I can't find specific steps. It simply doesn't work for me. But as I said - if you switch to ColumLayer type, everything is working fine. With HexagonLayer - tooltip are wrong (no data).
    they will be displayed as plant text:
Place: {place_name}
Rents: {rents}

Environment

  • Framework version: pydeck 0.8.1b0
  • Browser: Chrome, Ssfari
  • OS: Windows 11, MacOS 14.2.1

Logs

No response

@ocmarus ocmarus added the bug label Mar 23, 2024
@donmccurdy donmccurdy added this to the v9.0 milestone Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants