kepler.gl
kepler.gl copied to clipboard
[Bug] When using a custom map style, HTML/JSON exports are missing imported data, created layers and custom map styles
Describe the bug If a custom map style is used as the base map, exporting as HTML and JSON is broken. When importing an exported kepler JSON file or opening the HTML file in the browser, the default kepler.gl editor is displayed and any of the data, layers and custom map styles from the original map are not present.
This bug does not occur when the default base map is used.
To Reproduce Steps to reproduce the behavior:
- Upload csv data
- Style the map layer for the data
- Import a custom map style and paste mapbox key
- Export map as HTML or JSON and paste mapbox key
- Open HTML file in browser
Expected behavior I expect the export feature to include any uploaded data, map layers and custom map styles in the map export
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome and Firefox
- Version 89/88
@zacaytion : I can't seem to recreate this issue on my macbook, though I'm trying via the jupyter python package (python 3.9.10, jupyterlab 3.3.4, keplergl 0.3.2), and there's no export button, rather I'm using the map's save_to_html method and I'm successfully seeing the html load exactly as seen in my notebook. I've tried to zoom/make modification just to the base map, and I've tried using the default base map as well as loading a custom style pointing to a WMS server, and both work as expected. Can you try this simpler case (i.e. omit your step 1 above) and see if you still get the bug. Otherwise, maybe it's a mapbox key issue?