Questions tagged [pydeck]
24 questions
2
votes
0 answers
Error importing nebula.gl into custom PyDeck deck.gl layer
I'm trying to import nebula.gl in order to make a selection layer for PyDeck (working on reproducint this code sandbox example). However, I'm getting an error in the console
when I try to import nebula
import { EditableGeoJsonLayer, DrawPolygonMode…

Nick Fernandez
- 1,160
- 1
- 10
- 24
1
vote
0 answers
Python - pydeck not formatting html tooltips correctly
I am trying to create a heatmap using pydeck. The DataFrame where the necessary data is derived from (loc_df) has the following columns:
>>> loc_df.columns
Index(['Firm', 'Relationship', 'lon', 'lat'], dtype='object')
and I am creating the heatmap…

user16816782
- 11
- 3
1
vote
0 answers
Why won't pydeck display any coordinates?
I have a large JSON with the data for dozens of locations, which I am trying to plot on a map using pydeck. The output map doesn't display any points in the area, and I'm not sure why.
Here is my code:
import pydeck as pdk
data = insert local json…

riceboyee
- 11
- 1
1
vote
1 answer
Loading local TileFile layer in pydeck
Am trying to load a local TileFile layer in pydeck(0.5) in jupyter notebook
I am using the following code:
import pydeck as pdk
data ='https://localhost:/home/user/myfolder/tiles/{z}/{x}/{y}.png`
layer = pdk.Layer(
'TileLayer', #…

SeanD
- 105
- 1
- 1
- 7
1
vote
1 answer
python pydeck to_html not rendering map
I am using heatmap layer from pydeck. It works find when I do map.show() however when I save it to html file using map.to_html("name.html") it shows heatmap without mapbox on the background.
Here is my code:
layer = pdk.Layer(
"HeatmapLayer",
…

haneulkim
- 4,406
- 9
- 38
- 80
0
votes
1 answer
apply custom color scale to pydeck h3hexagon layer
I am using pydeck to render a visualization using spatial data. I was hoping to use a custom color scale and apply the gradient to the hexagons based on counts.
here's some json data:
[{"count": "12", "hexIds": ["82beeffffffffff"]}, {"count": "35",…

kms
- 1,810
- 1
- 41
- 92
0
votes
0 answers
Hvplot not updating through callback (otherwise working)
Can somebody help me complete this demo. Everything is working. I have an interactive map that I populate from a Pandas Dataframe and when clicked it update the hvplot object, but for some reason the title update is visible only if I call on the…

Curious
- 383
- 3
- 13
0
votes
0 answers
How to obtain underlying data from pydeck HexagonLayer?
Is there a method or any other way to obtain the underlying binned data from HexagonLayer ? I'd like to get the aggregate counts, hexagon centers (long and lat) or geometry. I am using pydeck to produce the visualization.
import pydeck as pdk
#…

kms
- 1,810
- 1
- 41
- 92
0
votes
0 answers
Enabling Auto Highlighting in an MVTLayer - PyDeck Visualization
I’m currently trying to get auto highlighting to work in PyDeck for an MVTLayer and am having no luck. Here’s the example I’m working with, hosted on Colab. Am I missing something obvious here?

Chris
- 3,109
- 7
- 29
- 39
0
votes
0 answers
Plot x,y coordinates that belong to different identifiers in Pydeck
This is how my pandas dataframe looks like:
Key x y
R1 594 383
R1 584 370
R1 579 365
R1 576 359
R1 569 349
... ... ...
R1095 596 68
R1095 587 66
R1095 577 71
R1095 593 66
R1095 592 67
Where Key column indicates…

Ajay Kumar
- 1
- 2
0
votes
0 answers
Custom PyDeck Tooltip in Python Panel Application - Fails to Access Data
Good morning,
I'm trying to get a custom tooltip working in a PyDeck map embedded in a Python Panel application, and am noticing a weird issue where the tooltip data fails to render in the Panel application but shows up just fine in a PyDeck…

Chris
- 3,109
- 7
- 29
- 39
0
votes
0 answers
Not getting position with Pydeck
I have a data set I am trying to display on map in streamlit using pydeck ColumnLayer. Pydeck seems not to read/process correctly the coordinates and displays ever data point on 0,0 coordinates. Height gets parsed correctly for each record, same as…

JaNo
- 1
0
votes
0 answers
Is it possible to use keplergl without Mapbox?
I want to do some spatiotemporal data analysis with kepler.
As the data is confidential and also huge, I cannot upload it to the demo site.
I tried installing keplergl locally but it needs a Mapbox Access Token (which I think is paid).
Is there a…

Ubaid Ghante
- 3
- 2
0
votes
1 answer
Not getting Elevation with Pydeck
I have a DataSet like following and I want to represent in a pydeck layer map the column n_cases:
Table
I am doing in this way, but i never get elevation in the hexagons, have tried with lot of elevation ranges and elevation scales:
r =…
0
votes
1 answer
Proper syntax for a pydeck PathLayer from a shapely geometry
I see the example of a PathLayer and it shows the input data is a list of lists within a regular pandas df, as opposed to a geopandas df.
Let's say I'm coming from a GeoPandas df (let's say called consline) that has a shapely MULTILINESTRING…

Dean MacGregor
- 11,847
- 9
- 34
- 72