Are the URL parameters passed to the plugin
-
If I call open Windy with the following URL, I get the map centred at -22,49 (wherever that may be)
https://www.windy.com/plugin/contrails?-22.715,49.109,5,i:pressure_params in my plugin code is always undefined.
export const onopen = (_params: any) => { console.log('PARAMS', _params); };
PARAMS undefined
Question 1) Should I be seeing something in _params?
Question 2) I want to pass a parameter to my plugin - in my case it will be the altitude I want to examine. How would I format that in my URL?
-
See https://docs.windy-plugins.com/getting-started/#opening-plugin-with-parameters and check the examples at https://github.com/windycom/windy-plugin-template/tree/main/examples
That should answer your question
-
@vicb Thank you
I missed the routerPath configuration. it works perfectly now.
Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
NodeBB & contributors, OSM & contributors, HERE maps