sensebox / openSenseMap

Platform for storing and exploring sensor data
https://opensensemap.org
MIT License
99 stars 51 forks source link

🔎 Zooming in even further #436

Closed nobodyinperson closed 2 years ago

nobodyinperson commented 2 years ago

Expected Behavior

Zooming in to precisely see and select senseBoxes that are only a couple meters apart should be possible.

Actual Behavior

The maximum zoom level (18 apparently) only allows zooming in this much, making it a really frustrating experience to browse and select close senseBoxes:

grafik

(Search for the German 'Starzach' city in the search bar, or see this box)

Workaround?

Is there a way in the Developer Tools of Firefox (F12) to somehow set this maxZoom temporarily?

Environment

I'd guess this doesn't depend on the system.

mpfeil commented 2 years ago

Hej @nobodyinperson,

thanks for opening up this issue and you are absolutely right. It is not a nice UX. I will try to deploy a new version of the frontend next week and I will increase the maxZoom.

Just to recap: we have set the zoom level to 18 that there is always some information to see on the basemap.

If you want change the maxZoom in the Developer Tools you can run the two following statements:

  1. var t = angular.element(document.querySelector('body')).injector().get('osemMapData');
  2. t.getMap('map_main')["$$state"].value.setMaxZoom(25);

Hope that helps.

nobodyinperson commented 2 years ago

Oh this is awesome thank you for this workaround!!! 🎉🎉🎉