Revert "Remove redundant code"

This reverts commit 28530085fb.
This commit is contained in:
Tom Hughes 2013-11-25 20:41:25 +00:00
parent ccf7981c48
commit 560763d224

View file

@ -46,6 +46,14 @@ 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.