args["lat"] = lat;
args["lon"] = lon;
args["zoom"] = zoom;
- args["layers"] = layers;
+ if (layers) {
+ args["layers"] = layers;
+ }
node.href = setArgs(node.href, args);
}
args["lat"] = lat;
args["lon"] = lon;
args["zoom"] = zoom;
- args["layers"] = layers;
+ if (layers) {
+ args["layers"] = layers;
+ }
node.href = setArgs(node.href, args);
}