Weather picker not working in mobile browsers
-
Weather picker is supported only on desktop
-
@ivo If the mobile picker is not working is there a way we could get access to the information that would normally be returned to the picker and display it ourselves?
-
Hi Ivo. I am with ryanshores.
Since there is no picker on mobile, it would be great if you could make the interpolator available? It was possible with 2.3.
Thx
-
One hacky workaround:
W.rootScope.isMobile = false; -
Great. Thanks!!
However, picker's tail is too short.
More hacky:
let mobileMadeFalse=false;
if(W.rootScope.isMobile){
W.rootScope.isMobile=false;
mobileMadeFalse=true;
}
picker.on('pickerOpened',(e)=>{
if(mobileMadeFalse){
document.getElementsByClassName("picker-lines noselect")[0].parentNode.style.marginTop="-70px";
document.getElementsByClassName("picker-drag-me")[0].style.display="none";
}
}); -
-
@ivo
Thanks.It works well in plugins, but the interpolator does not seem to be available in the windyAPI object.
It is in the W object, but this returns null:
const {interpolator}=W
interpolator(interf=>{ console.log( interf( {lat: 50.4 , lon: 14.3} ) ) } );//in map area -
@rittels Ok we add it
-
This post is deleted! -
@ivo Thanks for adding it!!