-function sizeMapPopup(text) {
- var box = document.createElement("div");
-
- box.innerHTML = text;
- box.style.visibility = "hidden";
- box.style.position = "absolute";
- box.style.top = "0px";
- box.style.left = "0px";
- box.style.width = "200px";
- box.style.height = "auto";
-
- document.body.appendChild(box);
-
- var width = box.offsetWidth;
- var height = box.offsetHeight;
-
- document.body.removeChild(box);
-
- return new OpenLayers.Size(width + 30, height + 24);
-}
-