2

I need to extend a zoom control so that it is functional outside of the leaflet map container. Can this be done?

Essentially,the same idea as what is accomplished with this item here but under the leaflet context and not openlayers. How to display a control (zoom bar) outside map container in openlayers?

Thanks,

3

At first, I thought it was something easy to do, but eventually I've lost almost half a day to come up with a solution.

The first version didn't seemed to have a practical use (only proved it is possible),

enter image description here

but it paved the way for the second solution, that may constitute a basis for interesting future developments.

enter image description here

The map can be panned, clicked and the zoom control is working properly. Tested only on Chrome, Firefox, Opera and Internet Explorer 11.

  • Great work! You fonud an awesome solution. Thanks so much, Sorin! – Cassie Seeberg Jan 25 '14 at 20:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.