Leaflet.MousePosition
A mouse position control for Leaflet
Install / Use
/learn @ardhi/Leaflet.MousePositionREADME
Leaflet.MousePosition
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.
Using the Mouse Position Control
Insert the following line:
...
L.control.mousePosition().addTo(map);
...
Available Options:
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. Defaults to undefined
latFormatter: Custom function to format the latitude value. Defaults to undefined
prefix: A string to be prepended to the coordinates. Defaults to the empty string ‘’.
Related Skills
node-connect
347.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
