I've been updating scripts that have had errors while testing on PHP 8.2.
I've got almost everything fixed bar one item:
Code: Select all
function getwindy(model,step){
$.ajaxSetup({ cache: false });
var moty = getType();
$.getJSON('ewn/ewn/ewn_proxy.php?callback=?',{"model":model,"step":step},function(result){
canvasOverlay = L.canvasOverlay().drawing(redraw).addTo(wsmap);
windy = new Windy({canvas: canvasOverlay.canvas(), data: result});
context = canvasOverlay.canvas().getContext('2d');
wsmap.on('dragstart', function() { clearWind() });
wsmap.on('zoomstart', function() { clearWind() });
wsmap.on('resize', function() { clearWind() });
windyCache['model']=[];
windyCache['model']['moty']=[];
windyCache['model']['moty']['step']=result;
});
}