Remove redundant code
Attempts to view an object are now redirected to the browse pages so we will never see a node/way/relation parameter here.
This commit is contained in:
parent
532d108536
commit
47385464cd
1 changed files with 0 additions and 8 deletions
|
@ -46,14 +46,6 @@ OSM = {
|
|||
mapParams.mlat = parseFloat(params.mlat);
|
||||
}
|
||||
|
||||
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)};
|
||||
}
|
||||
|
||||
var hash = OSM.parseHash(location.hash);
|
||||
|
||||
// Decide on a map starting position. Various ways of doing this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue