- match = window.location.pathname.match(/\/browse\/(node|way|relation|changeset)\/(\d+)/);
- if (match) {
- mapParams.object_zoom = true;
- mapParams.object = {type: match[1], id: parseInt(match[2])};
- } else if (params.node || params.way || params.relation || params.note) {
- mapParams.object_zoom = true;
-
- if (params.node) {
- mapParams.object = {type: 'node', id: parseInt(params.node)};
- } else if (params.way) {
- mapParams.object = {type: 'way', id: parseInt(params.way)};
- } else if (params.relation) {
- mapParams.object = {type: 'relation', id: parseInt(params.relation)};
- }
- }
-
- match = window.location.pathname.match(/\/browse\/note\/(\d+)/);
- if (match) {
- mapParams.note = parseInt(match[1]);
- } else if (params.note) {
- mapParams.note = parseInt(params.note);
+ // Old-style object parameters; still in use for edit links e.g. /edit?way=1234
+ if (params.node) {
+ mapParams.object = {type: 'node', id: parseInt(params.node)};
+ } else if (params.way) {
+ mapParams.object = {type: 'way', id: parseInt(params.way)};
+ } else if (params.relation) {
+ mapParams.object = {type: 'relation', id: parseInt(params.relation)};