mapbox / mapbox/mapboxgl-jupyter
MapboxGL Jupyter doesn't sanitise GeoJSON dict before passing it to the JS layer
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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