mapbox / mapboxgl-jupyter

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

Adding a scale in mapboxgl-jupyter #143

Closed AnneEstoppey closed 5 years ago

AnneEstoppey commented 5 years ago

Hello again

I noticed that there is no possibility to add a scale on the map (Jupyter Notebook, Python 3).

It seems that this possibility exists in the JS version (it was pointed to me by your helpdesk). See screenshot below.

Would it be possible to also have this feature added in the maboxgl-jupyter?

Cheers :-) mapbox_js_scale

akacarlyann commented 5 years ago

@AnneEstoppey Definitely, though currently the bottom-left corner is reserved for the Mapbox logo, so we'll have to work out a good way to fit all the info without too much clutter. At this point we have zoom controls, the logo and an attribution enabled by default, with optional legends and map screenshot buttons. I'll look into more of the built-in Mapbox controls too :) Også -- er det sant at du skriver fra Norge?

AnneEstoppey commented 5 years ago

Yes, I understand the logo issue, but have a look at google maps how they solved the 'corner map clutter'? I think a simple line (again ala google maps) would be sufficient. Something very 'lean'.

I think the scale 'object' in the JS version is too clunky, IMO. But this is my opinion (I worked a lot with cartography, thematical mapping, GIS though, but some years ago).

Also why not leave the choice for the user to:

Ja jeg bor i Norge, på kartet jeg har limt inn kan du gjette litt kor. Har flyttet til Norge mange år siden! Og du, er du nordman som har migrert ut? Korifra?

Snakkes :-) Anne

google_maps_with_scale