You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
map.on('mousemove', function (e) {
if ($('.leaflet-control-velocity').length > 0) {
var velocityValue = $('.leaflet-control-velocity').text();
var cleanedString = velocityValue.replace(/[\s;:] /g, "");
var parts = cleanedString.split(",");
var direction = parts[0];
var speed = parts[1];
// will preserve last value in place
if (direction != undefined && speed != undefined) {
$('#windAtPoint').text(direction " / " speed);
} else {
$('#windAtPoint').text(0 " - " 0);
}
}
});
How can I get this wind information at a specific point of the map?
The text was updated successfully, but these errors were encountered: