[openstreetmap/openstreetmap-website] Replace vendored leaflet.polyline plugin with @mapbox/polyline (PR #6996)
Marwin Hochfelsner
notifications at github.com
Sun Apr 12 07:14:57 UTC 2026
@hlfan commented on this pull request.
> @@ -0,0 +1,6 @@
+//= require @mapbox/polyline/src/polyline
+
+OSM.decodePolyline = function (encoded, options) {
+ return polyline.decode(encoded, options && options.precision)
+ .map(([lat, lng]) => ({ lat, lng }));
Is this mapping necessary?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6996#pullrequestreview-4094745498
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6996/review/4094745498 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260412/419e1212/attachment.htm>
More information about the rails-dev
mailing list