mapParams.mlat = parseFloat(params.mlat);
}
+ // 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) {
hash = querystring.parse(hash);
+ if (hash.map === undefined) {
+ return false;
+ }
+
var args = hash.map.split("/");
if (args.length !== 3) {
return false;
zoom = args.getZoom();
layers = args.getLayersCode();
} else {
- center = L.latLng(args.lat, args.lon);
+ center = args.center || L.latLng(args.lat, args.lon);
zoom = args.zoom;
layers = args.layers || '';
}