See test: https://github.com/tmcw/Leaflet/compare/polyline-fail No API should change its input like this. Unclear if there are other instances of this problem in Leaflet's API. Edit: same behavior with Polygon