Is it possible to do this programmatically - I set.store('layer', '100m') and then run interpolate({lat,lon}), but when I check the result it returns ground level. Code is below...
store.set('level', '100m');
interpolator(interpolatorFun => {
for (const site of json_file.features) {
let wind;
let lat = site.geometry.coordinates[1];
let lon = site.geometry.coordinates[0];
const data = interpolatorFun({lat,lon}, 1);
wind = data && utils.wind2obj(data);
const marker = L.circleMarker([lat, lon], wellStyle()).addTo(map);
let tooltip = '<div>' + wind.wind.toFixed(1) + ' m/s <br />' + '</div>';
marker.bindPopup(tooltip);
}
})
