Skip to content

Commit

Permalink
Update to iD v2.30.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Aug 21, 2024
1 parent 20f8fad commit 9969bc5
Show file tree
Hide file tree
Showing 80 changed files with 23,273 additions and 25,421 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/edit/id.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $(document).ready(function () {
var params = {};

if (mapParams.object) {
params.id = mapParams.object.type[0] + mapParams.object.id;
params.id = mapParams.object.type + '/' + mapParams.object.id;
mapParams = OSM.parseHash(location.hash);
if (mapParams.center) {
params.map = mapParams.zoom + '/' + mapParams.center.lat + '/' + mapParams.center.lng;
Expand Down
4 changes: 2 additions & 2 deletions app/assets/javascripts/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ document.addEventListener("DOMContentLoaded", function () {
parent.updateLinks(llz, zoom);

// Manually resolve URL to avoid iframe JS context weirdness.
// http://bl.ocks.org/jfirebaugh/5439412
// https://gist.github.com/jfirebaugh/5439412
var hash = parent.OSM.formatHash(llz);
if (hash !== parent.location.hash) {
parent.location.replace(parent.location.href.replace(/(#.*|$)/, hash));
Expand All @@ -49,7 +49,7 @@ document.addEventListener("DOMContentLoaded", function () {
var data = parent.$(this).data();

// 0ms timeout to avoid iframe JS context weirdness.
// http://bl.ocks.org/jfirebaugh/5439412
// https://gist.github.com/jfirebaugh/5439412
setTimeout(function () {
id.map().centerZoom(
[data.lon, data.lat],
Expand Down
Loading

0 comments on commit 9969bc5

Please sign in to comment.