plotly / plotly/plotly.py

Mapbox Standard Map Style Not Showing

Open
#4,463 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Hi,

Mapbox recently came out with an absolutely stunning new map style named standard see demo, which requires GL JS 3, I was trying to import the script and stylesheet into my dash app externally as follows,

mapbox_scripts = ['https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.js']
mapbox_stylesheets = ['https://api.mapbox.com/mapbox-gl-js/v3.0.1/mapbox-gl.css']
app = dash.Dash(__name__, external_stylesheets=mapbox_stylesheets, external_scripts=mapbox_scripts)

Which indeed is imported through browser inspector. However, it did not show the base map, it's just a blank background with some of my data point markers I manually put in. And I have tried this procedure using in just a html file, which does load the map properly, this may be a feature request or a bug report. I have tried all other mapbox style with different versions, which they all works and looks great, but it would be wonderfult if this stunning 3d map style is embded into plotly.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files or tests. Start by reproducing the Dash app with Mapbox GL JS 3 and the standard style, then compare it with the standalone HTML procedure; done means the standard base map renders while existing data markers continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
data-visualization, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.