gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
137 stars 33 forks source link

Zoom event? #87

Open BEagle1984 opened 2 months ago

BEagle1984 commented 2 months ago

I'd like to add a slider over the map to control the zoom level (for improved accessibility etc.). Unfortunately, the map doesn't seem to expose the observable prefZoom property nor allow a callback, so it cannot be bi-directionally bound.

Am I right or have I overlooked it?

Is there a reason for this not to be possible? Or would you accept a PR adding this possibility? (In case, what would you prefer? A callback or proxying the prefZoom property through the MapView?)

ctipper commented 1 month ago

I proposed two small methods last year which provide the functions required to embed mapView. MapView does not update prefCenter and prefZoom #69 an observable is obviously the correct way but the developers haven't really been paying attention to this project