
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
leaflet-mouse-position
Advanced tools
An npm wrapper for Ardhi Lukianto’s Leaflet.MousePosition plugin
Leaflet.MousePosition is a simple mouse position control that you can drop into your leaflet map. It displays geographic coordinates of the mouse pointer, as it is moved about the map.

Insert the following line:
...
L.control.mousePosition().addTo(map);
...
These are the available options:
position: The standard Leaflet.Control position parameter. Defaults to 'bottomleft'
separator: To separate longitude\latitude values. Defaults to ' : '
emptystring: Initial text to display. Defaults to 'Unavailable'
numDigits: Number of digits. Defaults to 5
lngFirst: Weather to put the longitude first or not. Defaults to false
lngFormatter: Custom function to format the longitude value. Argument: numerical longitude value. Return value: formatted string. Defaults to undefined.
latFormatter: Custom function to format the latitude value. Argument: numerical latitude value. Return value: formatted string. Defaults to undefined.
prefix: A string to be prepended to the coordinates. Defaults to the empty string ‘’.
wrapLng: Controls if longitude values will be wrapped. Defaults to true.
formatter: A custom function to format the entire value. Arguments: numerical longitude value, numerical latitude value. Return value: formatted string.
Defaults to undefined. If defined will ignore: lngFirst, lngFormatter, latFormatter and prefix.
These are the available methods:
getLatLng: Request the last recorded cursor position, as a
LatLng object.
MIT License (MIT)
FAQs
An npm wrapper for Ardhi Lukianto’s Leaflet.MousePosition plugin
The npm package leaflet-mouse-position receives a total of 1,670 weekly downloads. As such, leaflet-mouse-position popularity was classified as popular.
We found that leaflet-mouse-position demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.