Gets the coordinates of the current window center point

map.getCenter()
Copy the code

Leafletjs.com/

Gets the coordinates of the four corners of the current window

// Upper left corner northwest
const northWest = {
    x: map.getBounds().getNorthWest().lng,
    y: map.getBounds().getNorthWest().lat
}
// Northeast upper right corner
const northEast = {
    x: map.getBounds().getNorthEast().lng,
    y: map.getBounds().getNorthEast().lat
}
// Lower left corner southwest
const southWest = {
    x: map.getBounds().getSouthWest().lng,
    y: map.getBounds().getSouthWest().lat
}
// Lower right corner: southeast
const southEast = {
    x: map.getBounds().getSouthEast().lng,
    y: map.getBounds().getSouthEast().lat
}
Copy the code

Gets the current map level

map.getZoom() 
Copy the code