Disable zoom on widget
-
Hi,
First post - so firstly I'd like to say that I love windyty. It's good looking and gives me the info I need. I've embedded a basic widget onto my personal weather station website but I'm looking to disable the scroll zoom as every time I scroll down the page, when it reaches the widget it zooms out rather than continuing to scroll the page.
I think there must be a way of passing this in the call to the windytymain function but I don't know what it is.
Can someone please help?
Thanks,
Lenny
-
@Leonard-Bassoon good tip
-
This post is deleted! -
I figured it out:
// Initialize Windy API
windyInit( options, windyAPI => {const { map } = windyAPI map.dragging.disable();
})
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps