mapbox / mapbox/mapboxgl-jupyter

MapboxGL Jupyter doesn't sanitise GeoJSON dict before passing it to the JS layer

Open
#155 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
681
Forks
137
PR merge metrics
No merged PRs in 30d

Description

If you pass a GeoJSON dict with single apostrophee's in it, the notebook fails to render the map eg:

{ ... 'properties': {'address': 'foo 'bar'}}

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

Start by reproducing the failure in a Python Jupyter notebook with a GeoJSON dict whose property value contains an apostrophe, then trace the dict-to-JavaScript layer path. No source file or test is named; done means the map renders successfully for this input without breaking the JavaScript payload.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.