semohr / risikogebiete_deutschland

GNU Affero General Public License v3.0
95 stars 17 forks source link

Add functionality to zoom into a single Bundesland #3

Closed valkum closed 3 years ago

valkum commented 3 years ago

Would it be possible to add a feature to zoom into a single Bundesland? Some smaller Kreise in NRW are really hard to hit with the mouse, especially on smaller displays.

How much work would that be?

semohr commented 3 years ago

I will see what I can do. I'm not sure how to approach that yet maybe it is doable with css only than it would be an easy addition otherwise it may take a bit longer.

valkum commented 3 years ago

Maybe max and minZoomlevel? I am not familiar with the used js library. But it seems you set map.maxZoomLevel = 1;

mgoellnitz commented 3 years ago

I tried AGS-filtering the geo_json for a two-digit prefix, but failed with subsequent map scaling so far.

valkum commented 3 years ago

Thanks. Works for me at least on Desktop. I have not tried if this fix works flawless on mobile. But I don't believe such a map would be nice to view on mobile anyway.