#10314·Leaflet

leaflet 2.0 /typescript : map pointermove event is not classed properly

Author: JannisHesselCreated Jul 24, 2026Updated Aug 12, 2026
Labelsbugneeds triage

Checklist

  • I've looked at the documentation to make sure the behavior isn't documented and expected.
  • I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
  • I've searched through the current issues to make sure this hasn't been reported yet.
  • I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce

in typescript create a map and add an pointer move event like map.on("pointermove", (e) => marker.setLatlng(e.latlng)); get typeerror LeafletEvent does not have property latlng or map.on("pointermove", (e) => moveMarker(e)); would need to cheese it with moveMarker(e:any) and would not accept moveMarker(e:LeafletMouseEvent)

in spite of the event having e.latlng

Expected behavior

  map.on("pointermove", (e) => marker.setLatlng(e.latlng)); just works

Current behavior

  map.on("pointermove", (e) => marker.setLatlng(e.latlng));

get typeerror LeafletEvent does not have property latlng

Minimal example reproducing the issue

  map.on("pointermove", (e) => marker.setLatlng(e.latlng));

Environment

  • Leaflet version: 2.0
  • Browser (with version):firefox 153
  • OS/Platform (with version): windows 11