]> git.openstreetmap.org Git - rails.git/commitdiff
Update history.js - Correct function name for updating changeset locations
authordanieldegroot2 <67521919+danieldegroot2@users.noreply.github.com>
Thu, 10 Apr 2025 17:53:06 +0000 (19:53 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Apr 2025 17:53:06 +0000 (19:53 +0200)
Fixes regression from https://github.com/openstreetmap/openstreetmap-website/commit/f11b38709b6cdf6b837d822f4c1e04f06d65ca71
where changeset highlights disappear after automatically zooming in, do not load at all or are incorrectly scaled when manually zooming (invalid function name).

app/assets/javascripts/index/history.js

index 05877784035fba11cb621125ebca2e13f4a6a88b..289081ca1a9c2feee28951e10c213532ed1f4871 100644 (file)
@@ -237,7 +237,7 @@ OSM.History = function (map) {
       OSM.router.replace("/history" + window.location.hash);
       loadFirstChangesets();
     } else {
       OSM.router.replace("/history" + window.location.hash);
       loadFirstChangesets();
     } else {
-      changesetsLayer.updateChangesetsPositions(map);
+      changesetsLayer.updateChangesetLocations(map);
     }
   }
 
     }
   }