mapbox / mapboxgl-jupyter

Use Mapbox GL JS to visualize data in a Python Jupyter notebook
MIT License
661 stars 136 forks source link

Add plumbing for width and height in `MapViz.create_html` #183

Open nneibaue opened 3 years ago

nneibaue commented 3 years ago

This PR allows the width and height attributes of a MapViz instance to be sent to the .map css class in templates/main.html, thus allowing create_html to render non-fullscreen maps.

Use-case: I am building html reports that utilize MapViz objects in conjunction with other plotting libraries (plotly, matplotlib, etc.), and I need the flexibility to change the size of the map for the html report.