25 lines
586 B
JavaScript
25 lines
586 B
JavaScript
const options = {
|
|
// Required: API key
|
|
key: 'PsLAtXpsPTZexBwUkO7Mx5I', // REPLACE WITH YOUR KEY !!!
|
|
|
|
// Put additional console output
|
|
verbose: true,
|
|
|
|
// Optional: Initial state of the map
|
|
lat: 50.4,
|
|
lon: 14.3,
|
|
zoom: 5,
|
|
};
|
|
|
|
// Initialize Windy API
|
|
windyInit(options, windyAPI => {
|
|
// windyAPI is ready, and contain 'map', 'store',
|
|
// 'picker' and other usefull stuff
|
|
|
|
const { map } = windyAPI;
|
|
// .map is instance of Leaflet map
|
|
|
|
// $("#logo-wrapper").css("display","none");
|
|
// $("#mobile-ovr-select").css("display","none");
|
|
|
|
}); |