Skip to content

Commit

Permalink
Update sites-configuration.ts (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mannivu authored Nov 1, 2020
1 parent f392016 commit a74737f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@
"site_level0": {
"message": "Level0 Editor"
},
"site_ideditor": {
"message": "iD Editor"
},
"site_umap": {
"message": "uMap"
},
Expand Down
12 changes: 12 additions & 0 deletions src/sites-configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ export const Sites: Record<string, DefaultSiteConfiguration> = {
}
}
},

ideditor: {
link: "www.openstreetmap.org/edit",
paramOpts: [
{ ordered: "#map={zoom}/{lat}/{lon}" },
{ ordered: "?way/{wayId}" },
{ ordered: "?node/{nodeId}" },
{ ordered: "?relation/{relationId}" },
{ ordered: "?changeset/{changesetId}" },
],
},

opencyclemap: {
link: "www.opencyclemap.org",
Expand Down Expand Up @@ -405,6 +416,7 @@ export const Sites: Record<string, DefaultSiteConfiguration> = {
{ ordered: "/?url=n{nodeId}" },
{ ordered: "/?url=w{wayId}!" },
{ ordered: "/?url=r{relationId}" },
{ ordered: "/?url=map={zoom}/{lat}/{lon}" },
//In the future, there might be a permalink for the mini-map: https://github.com/Zverik/Level0/issues/16
],
disabledByDefault: true, // not recommended for beginners
Expand Down

0 comments on commit a74737f

Please sign in to comment.