You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "ignasv (via GitHub)" <gi...@apache.org> on 2024/03/19 08:47:08 UTC

[I] mapbox does not load datapoints [superset]

ignasv opened a new issue, #27562:
URL: https://github.com/apache/superset/issues/27562

   ### Bug description
   
   When using mapbox, the map gets displayed without any datapoints. I need to either click on the map, or zoom in/out slightly for the datapoints to appear. 
   If I then resize the browser window - datapoints disappear and I need to either zoom/click again. 
   This only happens in the Dashboard view, Chart edit works as expected. 
   Live Render is turned on. 
   
   ### How to reproduce the bug
   
   1. Create a mapbox chart & asign it to a dashboard
   2. View the dashboard (should not see any datapoints)
   3. Move the map with the mouse (datapoints should appear)
   4. Resize window (datapoints should disappear)
   
   ### Screenshots/recordings
   
   
   https://github.com/apache/superset/assets/510287/32d1f508-acd2-4caf-b852-05c00fafbafd
   
   
   
   ### Superset version
   
   3.1.1
   
   ### Python version
   
   3.10
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   Tried on both Chrome and Safari - same issue. 
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2033225172

   @Vitor-Avila @yousoph do you know if we've heard complaints of this? Curious if @michael-s-molina @justinpark have run into this as well. Seems like we'd hear more outcry about this, but perhaps the solution is a `git bisect` away.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "ivan-price-acted (via GitHub)" <gi...@apache.org>.
ivan-price-acted commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2025230001

   confirming we are seeing this too, seems the map needs to be given a refresh/redraw signal or method call or similar


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "araker (via GitHub)" <gi...@apache.org>.
araker commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2789463739

   Also confirming that this is still an issue in 4.1.1. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-4035399716

   Still confirmed in Superset 5.0.0rc2 per @hxtmdev (July 2025). The workaround is to click the map to trigger a reload. This seems to be a rendering initialization issue with the Mapbox layer. PRs investigating the Mapbox chart's initial render lifecycle are welcome.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "sagunn-echo (via GitHub)" <gi...@apache.org>.
sagunn-echo commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2274177330

   Confirming this same issue in 4.0.2


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "hxtmdev (via GitHub)" <gi...@apache.org>.
hxtmdev commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-3095563830

   It is indeed still a problem on 5.0.0rc2. Debugging shows seemingly correct drawing calls are made, no idea what the root cause is.
   
   A workaround is to simply cause the first update from code by `setTimeout`ing a `setState` from the constructor of the overlay:
   ```diff
   diff --git a/superset-frontend/plugins/legacy-plugin-chart-map-box/src/MapBox.jsx b/superset-frontend/plugins/legacy-plugin-chart-map-box/src/MapBox.jsx
   index 943cf7174b..ed9d235713 100644
   --- a/superset-frontend/plugins/legacy-plugin-chart-map-box/src/MapBox.jsx
   +++ b/superset-frontend/plugins/legacy-plugin-chart-map-box/src/MapBox.jsx
   @@ -77,6 +77,7 @@ class MapBox extends Component {
          },
        };
        this.handleViewportChange = this.handleViewportChange.bind(this);
   +    setTimeout(() => this.setState(this.state), 0);
      }
    
      handleViewportChange(viewport) {
   ```
   
   Maybe someone more familiar with the codebase has an idea what the root cause might be?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "paketixokan (via GitHub)" <gi...@apache.org>.
paketixokan commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2661253582

   confirming the same issue in version 4.1.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-5028938514

   The old MapBox implementation this describes was rewritten from scratch in #38035 (MapLibre/Mapbox dual renderer), which landed after the last "still broken" report here. Closing. Please reopen with a repro on a current version if it's still happening.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2053721527

   @markk0r what version are you running?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "markk0r (via GitHub)" <gi...@apache.org>.
markk0r commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2053737678

   Happens with both 3.1.0 and 4.0 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #27562: mapbox does not load datapoints
URL: https://github.com/apache/superset/issues/27562


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rudokemper (via GitHub)" <gi...@apache.org>.
rudokemper commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2017836164

   I am experiencing the same issue. Documentation of versioning etc. of my instances on this issue which I have now closed since it's the same as being described here. https://github.com/apache/superset/issues/27635


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2034403051

   @rusackas haven't heard about it so far, and also couldn't reproduce it on Preset Cloud.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "rudokemper (via GitHub)" <gi...@apache.org>.
rudokemper commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-4035408221

   If it's helpful for anyone looking at this, I can confirm that it's still a problem in 6.0.0.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "markk0r (via GitHub)" <gi...@apache.org>.
markk0r commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2053645100

   same exact problem here


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "katrina-chen (via GitHub)" <gi...@apache.org>.
katrina-chen commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2870759056

   I have same issue on superset 3.1.0. Do we have any WA for this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] mapbox does not load datapoints [superset]

Posted by "andnig (via GitHub)" <gi...@apache.org>.
andnig commented on issue #27562:
URL: https://github.com/apache/superset/issues/27562#issuecomment-2272844359

   Same problem here. Version 3.1.3.
   Once the user interacts with the widet, the data are displayed
   
   See the map configuration here
   
   ![image](https://github.com/user-attachments/assets/5e9a60fb-d96b-4942-863a-a67e7fc2a1b6)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org