# AGENTS.md Guidance for AI coding agents (and humans) working in this repo. ## What this is `leaflet-drift-marker` is a Leaflet `Marker` subclass that animates to a new position instead of jumping. It is a TypeScript port of [Leaflet.Marker.SlideTo](https://gitlab.com/IvanSanchez/Leaflet.Marker.SlideTo) and is framework-agnostic. The React wrapper lives in a separate repo, `react-leaflet-drift-marker`, which depends on this package. Public API (keep it stable): - `new DriftMarker(latlng, markerOptions?)`: same as Leaflet's `Marker`. - `.slideTo(latlng, { duration, keepAtCenter? })`: fires `movestart` / `moveend`, returns `this`. - `.slideCancel()`: stops the animation and restores map interaction. - Default export and named `DriftMarker` export. ESM only, with no global side effects. ## Versions and branches - `master`: 3.x for Leaflet 2, ESM only, published under the npm `next` tag while Leaflet 2 is in beta (`publishConfig.tag` in `package.json`). - 2.x for Leaflet 1 (ESM, CommonJS and `