Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 1709113b6c915f1ad71bc1eb5477b3eb > files > 875

openlayers-doc-2.12-2.fc18.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Util - OpenLayers</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/prettify.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.52 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Util"></a>Util</h1><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#Util" >Util</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Util.Functions_and_Properties" >Functions and Properties</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getElement" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">getElement</a></td><td class=SDescription>This is the old $() from prototype</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.isElement" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">isElement</a></td><td class=SDescription>A cross-browser implementation of &ldquo;e instanceof Element&rdquo;.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.isArray" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">isArray</a></td><td class=SDescription>Tests that the provided object is an array. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.removeItem" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">removeItem</a></td><td class=SDescription>Remove an object from an array. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.indexOf" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">indexOf</a></td><td class=SDescription>Seems to exist already in FF, but not in MOZ.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.modifyDOMElement" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">modifyDOMElement</a></td><td class=SDescription>Modifies many properties of a DOM element all at once. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.createDiv" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">createDiv</a></td><td class=SDescription>Creates a new div and optionally set some standard attributes. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.createImage" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">createImage</a></td><td class=SDescription>Creates an img element with specific attribute values.</td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#Util.IMAGE_RELOAD_ATTEMPTS" >IMAGE_RELOAD_ATTEMPTS</a></td><td class=SDescription>{Integer} How many times should we try to reload an image before giving up?&nbsp; </td></tr><tr class="SProperty SIndent2"><td class=SEntry><a href="#Util.alphaHackNeeded" >alphaHackNeeded</a></td><td class=SDescription>{Boolean} true if the png alpha hack is necessary and possible, false otherwise.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.alphaHack" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">alphaHack</a></td><td class=SDescription>Checks whether it&rsquo;s necessary (and possible) to use the png alpha hack which allows alpha transparency for png images under Internet Explorer.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.modifyAlphaImageDiv" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">modifyAlphaImageDiv</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.createAlphaImageDiv" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">createAlphaImageDiv</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.upperCaseObject" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">upperCaseObject</a></td><td class=SDescription>Creates a new hashtable and copies over all the keys from the passed-in object, but storing them under an uppercased version of the key at which they were stored.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.applyDefaults" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">applyDefaults</a></td><td class=SDescription>Takes an object and copies any properties that don&rsquo;t exist from another properties, by analogy with OpenLayers.Util.extend() from Prototype.js.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getParameterString" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">getParameterString</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.urlAppend" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">urlAppend</a></td><td class=SDescription>Appends a parameter string to a url. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getImagesLocation" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">getImagesLocation</a></td><td class=SDescription>{String} The fully formatted image location string</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getImageLocation" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">getImageLocation</a></td><td class=SDescription>{String} The fully formatted location string for a specified image</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.Try" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">Try</a></td><td class=SDescription>Execute functions until one of them doesn&rsquo;t throw an error. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getXmlNodeValue" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">getXmlNodeValue</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.mouseLeft" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">mouseLeft</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#Util.precision" >precision</a></td><td class=SDescription>{Number} The number of significant digits to retain to avoid floating point precision errors.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.toFloat" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">toFloat</a></td><td class=SDescription>Convenience method to cast an object to a Number, rounded to the desired floating point precision.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.rad" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">rad</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.deg" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">deg</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#Util.VincentyConstants" >VincentyConstants</a></td><td class=SDescription>{Object} Constants for Vincenty functions.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.distVincenty" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">distVincenty</a></td><td class=SDescription>Given two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.destinationVincenty" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">destinationVincenty</a></td><td class=SDescription>Calculate destination point given start point lat/long (numeric degrees), bearing (numeric degrees) &amp; distance (in m). </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getParameters" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">getParameters</a></td><td class=SDescription>Parse the parameters from a URL or from the current page itself into a JavaScript Object. </td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#Util.lastSeqID" >lastSeqID</a></td><td class=SDescription>{Integer} The ever-incrementing count variable. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.createUniqueID" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">createUniqueID</a></td><td class=SDescription>Create a unique identifier for this session. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Util.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Util.INCHES_PER_UNIT" >INCHES_PER_UNIT</a></td><td class=SDescription>{Object} Constant inches per unit -- borrowed from MapServer mapscale.c derivation of nautical miles from <a href="http://en.wikipedia.org/wiki/Nautical_mile" class=LURL target=_top>http://en.wikipedia.org/wiki/Nautical_mile</a> Includes the full set of units supported by CS-MAP (<a href="http://trac.osgeo.org/csmap/" class=LURL target=_top>http://trac.osgeo.org/csmap/</a>) and PROJ.4 (<a href="http://trac.osgeo.org/proj/" class=LURL target=_top>http://trac.osgeo.org/proj/</a>) The hardcoded table is maintain in a CS-MAP source code module named CSdataU.c The hardcoded table of PROJ.4 units are in pj_units.c.</td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Util.DOTS_PER_INCH" >DOTS_PER_INCH</a></td><td class=SDescription>{Integer} 72 (A sensible default)</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Util.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.normalizeScale" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">normalizeScale</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getResolutionFromScale" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">getResolutionFromScale</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getScaleFromResolution" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">getScaleFromResolution</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.pagePosition" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">pagePosition</a></td><td class=SDescription>Calculates the position of an element on the page <img mode="link" target="url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>&rdquo; original=&rdquo;(see <url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>)&rdquo;</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getViewportElement" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">getViewportElement</a></td><td class=SDescription>Returns die viewport element of the document. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.isEquivalentUrl" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">isEquivalentUrl</a></td><td class=SDescription>Test two URLs for equivalence.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.createUrlObject" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">createUrlObject</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.removeTail" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">removeTail</a></td><td class=SDescription>Takes a url and removes everything after the ? </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Util.Constants" >Constants</a></td><td class=SDescription></td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Util.IS_GECKO" >IS_GECKO</a></td><td class=SDescription>{Boolean} True if the userAgent reports the browser to use the Gecko engine</td></tr><tr class="SConstant SIndent2"><td class=SEntry><a href="#Util.CANVAS_SUPPORTED" >CANVAS_SUPPORTED</a></td><td class=SDescription>{Boolean} True if canvas 2d is supported.</td></tr><tr class="SConstant SIndent2 SMarked"><td class=SEntry><a href="#Util.BROWSER_NAME" >BROWSER_NAME</a></td><td class=SDescription>{String} A substring of the navigator.userAgent property. </td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Util.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getBrowserName" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">getBrowserName</a></td><td class=SDescription>{String} A string which specifies which is the current browser in which we are running.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getRenderedDimensions" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">getRenderedDimensions</a></td><td class=SDescription>Renders the contentHTML offscreen to determine actual dimensions for popup sizing. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#Util.getScrollbarWidth" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">getScrollbarWidth</a></td><td class=SDescription>This function has been modified by the OpenLayers from the original version, written by Matthew Eernisse and released under the Apache 2 license here:</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#Util.getFormattedLonLat" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">getFormattedLonLat</a></td><td class=SDescription>This function will return latitude or longitude value formatted as</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Util.Functions_and_Properties"></a>Functions and Properties</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getElement"></a>getElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getElement = function()</td></tr></table></blockquote><p>This is the old $() from prototype</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>e</td><td class=CDLDescription>{String or DOMElement or Window}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Array(DOMElement) or DOMElement}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.isElement"></a>isElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isElement = function(</td><td class="PParameter  prettyprint " nowrap>o</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>A cross-browser implementation of &ldquo;e instanceof Element&rdquo;.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>o</td><td class=CDLDescription>{Object} The object to test.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Boolean}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.isArray"></a>isArray</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isArray = function(</td><td class="PParameter  prettyprint " nowrap>a</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Tests that the provided object is an array.&nbsp; This test handles the cross-IFRAME case not caught by &ldquo;a instanceof Array&rdquo; and should be used instead.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>a</td><td class=CDLDescription>{Object} the object test.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Boolean} true if the object is an array.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.removeItem"></a>removeItem</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.removeItem = function(</td><td class="PParameter  prettyprint " nowrap>array,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>item</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Remove an object from an array.&nbsp; Iterates through the array to find the item, then removes it.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>array</td><td class=CDLDescription>{Array}</td></tr><tr><td class=CDLEntry>item</td><td class=CDLDescription>{Object}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Array} A reference to the array</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.indexOf"></a>indexOf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.indexOf = function(</td><td class="PParameter  prettyprint " nowrap>array,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>obj</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Seems to exist already in FF, but not in MOZ.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>array</td><td class=CDLDescription>{Array}</td></tr><tr><td class=CDLEntry>obj</td><td class=CDLDescription>{*}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Integer} The index at, which the first object was found in the array.&nbsp; If not found, returns -1.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.modifyDOMElement"></a>modifyDOMElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.modifyDOMElement = function(</td><td class="PParameter  prettyprint " nowrap>element,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>overflow,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Modifies many properties of a DOM element all at once.&nbsp;  Passing in null to an individual parameter will avoid setting the attribute.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>element</td><td class=CDLDescription>{DOMElement} DOM element to modify.</td></tr><tr><td class=CDLEntry>id</td><td class=CDLDescription>{String} The element id attribute to set.</td></tr><tr><td class=CDLEntry>px</td><td class=CDLDescription>{&lt;OpenLayers.Pixel&gt;|Object} The element left and top position, OpenLayers.Pixel or an object with a &lsquo;x&rsquo; and &lsquo;y&rsquo; properties.</td></tr><tr><td class=CDLEntry>sz</td><td class=CDLDescription>{&lt;OpenLayers.Size&gt;|Object} The element width and height, OpenLayers.Size or an object with a &lsquo;w&rsquo; and &lsquo;h&rsquo; properties.</td></tr><tr><td class=CDLEntry>position</td><td class=CDLDescription>{String}       The position attribute.&nbsp;  eg: absolute, relative, etc.</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>{String}         The style.border attribute.&nbsp;  eg: solid black 2px</td></tr><tr><td class=CDLEntry>overflow</td><td class=CDLDescription>{String}       The style.overview attribute.</td></tr><tr><td class=CDLEntry>opacity</td><td class=CDLDescription>{Float}         Fractional value (0.0 - 1.0)</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.createDiv"></a>createDiv</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createDiv = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>overflow,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a new div and optionally set some standard attributes.&nbsp; Null may be passed to each parameter if you do not wish to set a particular attribute.&nbsp; Note - zIndex is NOT set on the resulting div.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>id</td><td class=CDLDescription>{String} An identifier for this element.&nbsp;  If no id is passed an identifier will be created automatically.</td></tr><tr><td class=CDLEntry>px</td><td class=CDLDescription>{&lt;OpenLayers.Pixel&gt;|Object} The element left and top position, OpenLayers.Pixel or an object with a &lsquo;x&rsquo; and &lsquo;y&rsquo; properties.</td></tr><tr><td class=CDLEntry>sz</td><td class=CDLDescription>{&lt;OpenLayers.Size&gt;|Object} The element width and height, OpenLayers.Size or an object with a &lsquo;w&rsquo; and &lsquo;h&rsquo; properties.</td></tr><tr><td class=CDLEntry>imgURL</td><td class=CDLDescription>{String} A url pointing to an image to use as a background image.</td></tr><tr><td class=CDLEntry>position</td><td class=CDLDescription>{String} The style.position value. eg: absolute, relative etc.</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>{String} The the style.border value. eg: 2px solid black</td></tr><tr><td class=CDLEntry>overflow</td><td class=CDLDescription>{String} The style.overflow value.&nbsp; Eg. hidden</td></tr><tr><td class=CDLEntry>opacity</td><td class=CDLDescription>{Float} Fractional value (0.0 - 1.0)</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A DOM Div created with the specified attributes.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.createImage"></a>createImage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createImage = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>delayDisplay</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates an img element with specific attribute values.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>id</td><td class=CDLDescription>{String} The id field for the img.&nbsp;  If none assigned one will be automatically generated.</td></tr><tr><td class=CDLEntry>px</td><td class=CDLDescription>{&lt;OpenLayers.Pixel&gt;|Object} The element left and top position, OpenLayers.Pixel or an object with a &lsquo;x&rsquo; and &lsquo;y&rsquo; properties.</td></tr><tr><td class=CDLEntry>sz</td><td class=CDLDescription>{&lt;OpenLayers.Size&gt;|Object} The element width and height, OpenLayers.Size or an object with a &lsquo;w&rsquo; and &lsquo;h&rsquo; properties.</td></tr><tr><td class=CDLEntry>imgURL</td><td class=CDLDescription>{String} The url to use as the image source.</td></tr><tr><td class=CDLEntry>position</td><td class=CDLDescription>{String} The style.position value.</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>{String} The border to place around the image.</td></tr><tr><td class=CDLEntry>opacity</td><td class=CDLDescription>{Float} Fractional value (0.0 - 1.0)</td></tr><tr><td class=CDLEntry>delayDisplay</td><td class=CDLDescription>{Boolean} If true waits until the image has been loaded.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A DOM Image created with the specified attributes.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="Util.IMAGE_RELOAD_ATTEMPTS"></a>IMAGE_RELOAD_ATTEMPTS</h3><div class=CBody><p>{Integer} How many times should we try to reload an image before giving up?&nbsp; Default is 0</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="Util.alphaHackNeeded"></a>alphaHackNeeded</h3><div class=CBody><p>{Boolean} true if the png alpha hack is necessary and possible, false otherwise.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.alphaHack"></a>alphaHack</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.alphaHack = function()</td></tr></table></blockquote><p>Checks whether it&rsquo;s necessary (and possible) to use the png alpha hack which allows alpha transparency for png images under Internet Explorer.</p><h4 class=CHeading>Returns</h4><p>{Boolean} true if the png alpha hack is necessary and possible, false otherwise.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.modifyAlphaImageDiv"></a>modifyAlphaImageDiv</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.modifyAlphaImageDiv = function(</td><td class="PParameter  prettyprint " nowrap>div,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sizing,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>div</td><td class=CDLDescription>{DOMElement} Div containing Alpha-adjusted Image</td></tr><tr><td class=CDLEntry>id</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>px</td><td class=CDLDescription>{&lt;OpenLayers.Pixel&gt;|Object} OpenLayers.Pixel or an object with a &lsquo;x&rsquo; and &lsquo;y&rsquo; properties.</td></tr><tr><td class=CDLEntry>sz</td><td class=CDLDescription>{&lt;OpenLayers.Size&gt;|Object} OpenLayers.Size or an object with a &lsquo;w&rsquo; and &lsquo;h&rsquo; properties.</td></tr><tr><td class=CDLEntry>imgURL</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>position</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>sizing</td><td class=CDLDescription>{String} &lsquo;crop&rsquo;, &lsquo;scale&rsquo;, or &lsquo;image&rsquo;.&nbsp; Default is &ldquo;scale&rdquo;</td></tr><tr><td class=CDLEntry>opacity</td><td class=CDLDescription>{Float} Fractional value (0.0 - 1.0)</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.createAlphaImageDiv"></a>createAlphaImageDiv</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createAlphaImageDiv = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sizing,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>delayDisplay</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>id</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>px</td><td class=CDLDescription>{&lt;OpenLayers.Pixel&gt;|Object} OpenLayers.Pixel or an object with a &lsquo;x&rsquo; and &lsquo;y&rsquo; properties.</td></tr><tr><td class=CDLEntry>sz</td><td class=CDLDescription>{&lt;OpenLayers.Size&gt;|Object} OpenLayers.Size or an object with a &lsquo;w&rsquo; and &lsquo;h&rsquo; properties.</td></tr><tr><td class=CDLEntry>imgURL</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>position</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>border</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>sizing</td><td class=CDLDescription>{String} &lsquo;crop&rsquo;, &lsquo;scale&rsquo;, or &lsquo;image&rsquo;.&nbsp; Default is &ldquo;scale&rdquo;</td></tr><tr><td class=CDLEntry>opacity</td><td class=CDLDescription>{Float} Fractional value (0.0 - 1.0)</td></tr><tr><td class=CDLEntry>delayDisplay</td><td class=CDLDescription>{Boolean} If true waits until the image has been loaded.</td></tr></table><h4 class=CHeading>Returns</h4><p>{DOMElement} A DOM Div created with a DOM Image inside it.&nbsp; If the hack is needed for transparency in IE, it is added.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.upperCaseObject"></a>upperCaseObject</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.upperCaseObject = function (</td><td class="PParameter  prettyprint " nowrap>object</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Creates a new hashtable and copies over all the keys from the passed-in object, but storing them under an uppercased version of the key at which they were stored.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>object</td><td class=CDLDescription>{Object}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Object} A new Object with all the same keys but uppercased</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.applyDefaults"></a>applyDefaults</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.applyDefaults = function (</td><td class="PParameter  prettyprint " nowrap>to,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>from</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Takes an object and copies any properties that don&rsquo;t exist from another properties, by analogy with OpenLayers.Util.extend() from Prototype.js.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>to</td><td class=CDLDescription>{Object} The destination object.</td></tr><tr><td class=CDLEntry>from</td><td class=CDLDescription>{Object} The source object.&nbsp;  Any properties of this object that are undefined in the to object will be set on the to object.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Object} A reference to the to object.&nbsp;  Note that the to argument is modified in place and returned by this function.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getParameterString"></a>getParameterString</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getParameterString = function(</td><td class="PParameter  prettyprint " nowrap>params</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>params</td><td class=CDLDescription>{Object}</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} A concatenation of the properties of an object in http parameter notation.&nbsp; (ex.&nbsp; &lt;i&gt;&rdquo;key1=value1&amp;key2=value2&amp;key3=value3&rdquo;&lt;/i&gt;) If a parameter is actually a list, that parameter will then be set to a comma-seperated list of values (foo,bar) instead of being URL escaped (foo%3Abar).</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.urlAppend"></a>urlAppend</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.urlAppend = function(</td><td class="PParameter  prettyprint " nowrap>url,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>paramStr</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Appends a parameter string to a url.&nbsp; This function includes the logic for using the appropriate character (none, &amp; or ?) to append to the url before appending the param string.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url</td><td class=CDLDescription>{String} The url to append to</td></tr><tr><td class=CDLEntry>paramStr</td><td class=CDLDescription>{String} The param string to append</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} The new url</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getImagesLocation"></a>getImagesLocation</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getImagesLocation = function()</td></tr></table></blockquote><h4 class=CHeading>Returns</h4><p>{String} The fully formatted image location string</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getImageLocation"></a>getImageLocation</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getImageLocation = function(</td><td class="PParameter  prettyprint " nowrap>image</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Returns</h4><p>{String} The fully formatted location string for a specified image</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.Try"></a>Try</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.Try = function()</td></tr></table></blockquote><p>Execute functions until one of them doesn&rsquo;t throw an error.&nbsp; Capitalized because &ldquo;try&rdquo; is a reserved word in JavaScript.&nbsp; Taken directly from OpenLayers.Util.Try()</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>[*]</td><td class=CDLDescription>{Function} Any number of parameters may be passed to Try() It will attempt to execute each of them until one of them successfully executes.&nbsp; If none executes successfully, returns null.</td></tr></table><h4 class=CHeading>Returns</h4><p>{*} The value returned by the first successfully executed function.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getXmlNodeValue"></a>getXmlNodeValue</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getXmlNodeValue = function(</td><td class="PParameter  prettyprint " nowrap>node</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>node</td><td class=CDLDescription>{XMLNode}</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} The text value of the given node, without breaking in firefox or IE</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.mouseLeft"></a>mouseLeft</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.mouseLeft = function (</td><td class="PParameter  prettyprint " nowrap>evt,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>div</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>evt</td><td class=CDLDescription>{Event}</td></tr><tr><td class=CDLEntry>div</td><td class=CDLDescription>{HTMLDivElement}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Boolean}</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="Util.precision"></a>precision</h3><div class=CBody><p>{Number} The number of significant digits to retain to avoid floating point precision errors.</p><p>We use 14 as a &ldquo;safe&rdquo; default because, although IEEE 754 double floats (standard on most modern operating systems) support up to about 16 significant digits, 14 significant digits are sufficient to represent sub-millimeter accuracy in any coordinate system that anyone is likely to use with OpenLayers.</p><p>If DEFAULT_PRECISION is set to 0, the original non-truncating behavior of OpenLayers &lt;2.8 is preserved.&nbsp; Be aware that this will cause problems with certain projections, e.g. spherical Mercator.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.toFloat"></a>toFloat</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.toFloat = function (</td><td class="PParameter  prettyprint " nowrap>number,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>precision</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Convenience method to cast an object to a Number, rounded to the desired floating point precision.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>number</td><td class=CDLDescription>{Number} The number to cast and round.</td></tr><tr><td class=CDLEntry>precision</td><td class=CDLDescription>{Number} An integer suitable for use with Number.toPrecision().&nbsp; Defaults to OpenLayers.Util.DEFAULT_PRECISION.&nbsp; If set to 0, no rounding is performed.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Number} The cast, rounded number.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.rad"></a>rad</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.rad = function(</td><td class="PParameter  prettyprint " nowrap>x</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x</td><td class=CDLDescription>{Float}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.deg"></a>deg</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.deg = function(</td><td class="PParameter  prettyprint " nowrap>x</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x</td><td class=CDLDescription>{Float}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float}</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="Util.VincentyConstants"></a>VincentyConstants</h3><div class=CBody><p>{Object} Constants for Vincenty functions.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.distVincenty"></a>distVincenty</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.distVincenty = function(</td><td class="PParameter  prettyprint " nowrap>p1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>p2</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Given two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>p1</td><td class=CDLDescription>{<a href="BaseTypes/LonLat-js.html#OpenLayers.LonLat" class=LClass id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">OpenLayers.LonLat</a>} (or any object with both .lat, .lon properties)</td></tr><tr><td class=CDLEntry>p2</td><td class=CDLDescription>{<a href="BaseTypes/LonLat-js.html#OpenLayers.LonLat" class=LClass id=link41 onMouseOver="ShowTip(event, 'tt40', 'link41')" onMouseOut="HideTip('tt40')">OpenLayers.LonLat</a>} (or any object with both .lat, .lon properties)</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float} The distance (in km) between the two input points as measured on an ellipsoid.&nbsp;  Note that the input point objects must be in geographic coordinates (decimal degrees) and the return distance is in kilometers.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.destinationVincenty"></a>destinationVincenty</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.destinationVincenty = function(</td><td class="PParameter  prettyprint " nowrap>lonlat,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>brng,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>dist</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Calculate destination point given start point lat/long (numeric degrees), bearing (numeric degrees) &amp; distance (in m).&nbsp; Adapted from Chris Veness work, see <a href="http://www.movable-type.co.uk/scripts/latlong-vincenty-direct.html" class=LURL target=_top>http://www.movable-type.co.uk<wbr>/scripts<wbr>/latlong-vincenty-direct.html</a></p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>lonlat</td><td class=CDLDescription>{<a href="BaseTypes/LonLat-js.html#OpenLayers.LonLat" class=LClass id=link42 onMouseOver="ShowTip(event, 'tt40', 'link42')" onMouseOut="HideTip('tt40')">OpenLayers.LonLat</a>} (or any object with both .lat, .lon properties) The start point.</td></tr><tr><td class=CDLEntry>brng</td><td class=CDLDescription>{Float} The bearing (degrees).</td></tr><tr><td class=CDLEntry>dist</td><td class=CDLDescription>{Float} The ground distance (meters).</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="BaseTypes/LonLat-js.html#OpenLayers.LonLat" class=LClass id=link43 onMouseOver="ShowTip(event, 'tt40', 'link43')" onMouseOut="HideTip('tt40')">OpenLayers.LonLat</a>} The destination point.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getParameters"></a>getParameters</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getParameters = function(</td><td class="PParameter  prettyprint " nowrap>url</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Parse the parameters from a URL or from the current page itself into a JavaScript Object.&nbsp; Note that parameter values with commas are separated out into an Array.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url</td><td class=CDLDescription>{String} Optional url used to extract the query string.&nbsp; If url is null or is not supplied, query string is taken from the page location.</td></tr></table><h4 class=CHeading>Returns</h4><p>{Object} An object of key/value pairs from the query string.</p></div></div></div>

<div class="CProperty"><div class=CTopic><h3 class=CTitle><a name="Util.lastSeqID"></a>lastSeqID</h3><div class=CBody><p>{Integer} The ever-incrementing count variable.&nbsp; Used for generating unique ids.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.createUniqueID"></a>createUniqueID</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createUniqueID = function(</td><td class="PParameter  prettyprint " nowrap>prefix</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Create a unique identifier for this session.&nbsp;  Each time this function is called, a counter is incremented.&nbsp;  The return will be the optional prefix (defaults to &ldquo;id_&rdquo;) appended with the counter value.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>prefix</td><td class=CDLDescription>{String} Optional string to prefix unique id.&nbsp; Default is &ldquo;id_&rdquo;.</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} A unique id string, built on the passed in prefix.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Util.Constants"></a>Constants</h3></div></div>

<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Util.INCHES_PER_UNIT"></a>INCHES_PER_UNIT</h3><div class=CBody><p>{Object} Constant inches per unit -- borrowed from MapServer mapscale.c derivation of nautical miles from <a href="http://en.wikipedia.org/wiki/Nautical_mile" class=LURL target=_top>http://en.wikipedia.org/wiki/Nautical_mile</a> Includes the full set of units supported by CS-MAP (<a href="http://trac.osgeo.org/csmap/" class=LURL target=_top>http://trac.osgeo.org/csmap/</a>) and PROJ.4 (<a href="http://trac.osgeo.org/proj/" class=LURL target=_top>http://trac.osgeo.org/proj/</a>) The hardcoded table is maintain in a CS-MAP source code module named CSdataU.c The hardcoded table of PROJ.4 units are in pj_units.c.</p></div></div></div>

<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Util.DOTS_PER_INCH"></a>DOTS_PER_INCH</h3><div class=CBody><p>{Integer} 72 (A sensible default)</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Util.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.normalizeScale"></a>normalizeScale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.normalizeScale = function (</td><td class="PParameter  prettyprint " nowrap>scale</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>scale</td><td class=CDLDescription>{float}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float} A normalized scale value, in 1 / X format.&nbsp; This means that if a value less than one ( already 1/x) is passed in, it just returns scale directly.&nbsp; Otherwise, it returns 1 / scale</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getResolutionFromScale"></a>getResolutionFromScale</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getResolutionFromScale = function (</td><td class="PParameter  prettyprint " nowrap>scale,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>units</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>scale</td><td class=CDLDescription>{Float}</td></tr><tr><td class=CDLEntry>units</td><td class=CDLDescription>{String} Index into OpenLayers.INCHES_PER_UNIT hashtable.&nbsp; Default is degrees</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float} The corresponding resolution given passed-in scale and unit parameters.&nbsp;  If the given scale is falsey, the returned resolution will be undefined.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getScaleFromResolution"></a>getScaleFromResolution</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getScaleFromResolution = function (</td><td class="PParameter  prettyprint " nowrap>resolution,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>units</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>resolution</td><td class=CDLDescription>{Float}</td></tr><tr><td class=CDLEntry>units</td><td class=CDLDescription>{String} Index into OpenLayers.INCHES_PER_UNIT hashtable.&nbsp; Default is degrees</td></tr></table><h4 class=CHeading>Returns</h4><p>{Float} The corresponding scale given passed-in resolution and unit parameters.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.pagePosition"></a>pagePosition</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.pagePosition = function(</td><td class="PParameter  prettyprint " nowrap>forElement</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Calculates the position of an element on the page <img mode="link" target="url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>&rdquo; original=&rdquo;(see <url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>)&rdquo;</p><p>OpenLayers.Util.pagePosition is based on Yahoo&rsquo;s getXY method, which is Copyright &copy; 2006, Yahoo!&nbsp; Inc.&nbsp; All rights reserved.</p><p>Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p><ul><li>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</li><li>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</li><li>Neither the name of Yahoo!&nbsp; Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Yahoo!&nbsp; Inc.</li></ul><p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &ldquo;AS IS&rdquo; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.&nbsp; IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>forElement</td><td class=CDLDescription>{DOMElement}</td></tr></table><h4 class=CHeading>Returns</h4><p>{Array} two item array, Left value then Top value.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getViewportElement"></a>getViewportElement</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getViewportElement = function()</td></tr></table></blockquote><p>Returns die viewport element of the document.&nbsp; The viewport element is usually document.documentElement, except in IE,where it is either document.body or document.documentElement, depending on the document&rsquo;s compatibility mode <img mode="link" target="url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticleClientViewportElement&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticleClientViewportElement&rdquo;>&rdquo; original=&rdquo;(see <url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticleClientViewportElement&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticleClientViewportElement&rdquo;>)&rdquo;</p><h4 class=CHeading>Returns</h4><p>{DOMElement}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.isEquivalentUrl"></a>isEquivalentUrl</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isEquivalentUrl = function(</td><td class="PParameter  prettyprint " nowrap>url1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>url2,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Test two URLs for equivalence.</p><p>Setting &lsquo;ignoreCase&rsquo; allows for case-independent comparison.</p><h4 class=CHeading>Comparison is based on</h4><ul><li>Protocol</li><li>Host (evaluated without the port)</li><li>Port (set &lsquo;ignorePort80&rsquo; to ignore &ldquo;80&rdquo; values)</li><li>Hash ( set &lsquo;ignoreHash&rsquo; to disable)</li><li>Pathname (for relative &lt;-&gt; absolute comparison)</li><li>Arguments (so they can be out of order)</li></ul><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url1</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>url2</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} Allows for customization of comparison:</td></tr><tr><td class=CDLEntry>&rsquo;ignoreCase&rsquo;</td><td class=CDLDescription>Default is True</td></tr><tr><td class=CDLEntry>&rsquo;ignorePort80&rsquo;</td><td class=CDLDescription>Default is True</td></tr><tr><td class=CDLEntry>&rsquo;ignoreHash&rsquo;</td><td class=CDLDescription>Default is True</td></tr></table><h4 class=CHeading>Returns</h4><p>{Boolean} Whether or not the two URLs are equivalent</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.createUrlObject"></a>createUrlObject</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createUrlObject = function(</td><td class="PParameter  prettyprint " nowrap>url,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url</td><td class=CDLDescription>{String}</td></tr><tr><td class=CDLEntry>options</td><td class=CDLDescription>{Object} A hash of options.</td></tr></table><h4 class=CHeading>Valid options</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ignoreCase</td><td class=CDLDescription>{Boolean} lowercase url,</td></tr><tr><td class=CDLEntry>ignorePort80</td><td class=CDLDescription>{Boolean} don&rsquo;t include explicit port if port is 80,</td></tr><tr><td class=CDLEntry>ignoreHash</td><td class=CDLDescription>{Boolean} Don&rsquo;t include part of url after the hash (#).</td></tr></table><h4 class=CHeading>Returns</h4><p>{Object} An object with separate url, a, port, host, and args parsed out and ready for comparison</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.removeTail"></a>removeTail</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.removeTail = function(</td><td class="PParameter  prettyprint " nowrap>url</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Takes a url and removes everything after the ? and #</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>url</td><td class=CDLDescription>{String} The url to process</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} The string with all queryString and Hash removed</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Util.Constants"></a>Constants</h3></div></div>

<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Util.IS_GECKO"></a>IS_GECKO</h3><div class=CBody><p>{Boolean} True if the userAgent reports the browser to use the Gecko engine</p></div></div></div>

<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Util.CANVAS_SUPPORTED"></a>CANVAS_SUPPORTED</h3><div class=CBody><p>{Boolean} True if canvas 2d is supported.</p></div></div></div>

<div class="CConstant"><div class=CTopic><h3 class=CTitle><a name="Util.BROWSER_NAME"></a>BROWSER_NAME</h3><div class=CBody><p>{String} A substring of the navigator.userAgent property.&nbsp;  Depending on the userAgent property, this will be the empty string or one of the following:</p><ul><li>&rdquo;opera&rdquo; -- Opera</li><li>&rdquo;msie&rdquo;  -- Internet Explorer</li><li>&rdquo;safari&rdquo; -- Safari</li><li>&rdquo;firefox&rdquo; -- Firefox</li><li>&rdquo;mozilla&rdquo; -- Mozilla</li></ul></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Util.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getBrowserName"></a>getBrowserName</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getBrowserName = function()</td></tr></table></blockquote><h4 class=CHeading>Returns</h4><p>{String} A string which specifies which is the current browser in which we are running.</p><h4 class=CHeading>Currently-supported browser detection and codes</h4><ul><li>&rsquo;opera&rsquo; -- Opera</li><li>&rsquo;msie&rsquo;  -- Internet Explorer</li><li>&rsquo;safari&rsquo; -- Safari</li><li>&rsquo;firefox&rsquo; -- Firefox</li><li>&rsquo;mozilla&rsquo; -- Mozilla</li></ul><p>If we are unable to property identify the browser, we return an empty string.</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getRenderedDimensions"></a>getRenderedDimensions</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getRenderedDimensions = function(</td><td class="PParameter  prettyprint " nowrap>contentHTML,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>size,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Renders the contentHTML offscreen to determine actual dimensions for popup sizing.&nbsp; As we need layout to determine dimensions the content is rendered -9999px to the left and absolute to ensure the scrollbars do not flicker</p><h4 class=CHeading>Parameters</h4><p>contentHTML size - {<a href="BaseTypes/Size-js.html#OpenLayers.Size" class=LClass id=link44 onMouseOver="ShowTip(event, 'tt41', 'link44')" onMouseOut="HideTip('tt41')">OpenLayers.Size</a>} If either the &lsquo;w&rsquo; or &lsquo;h&rsquo; properties is specified, we fix that dimension of the div to be measured.&nbsp; This is useful in the case where we have a limit in one dimension and must therefore meaure the flow in the other dimension. options - {Object}</p><h4 class=CHeading>Allowed Options</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>displayClass</td><td class=CDLDescription>{String} Optional parameter.&nbsp;  A CSS class name(s) string to provide the CSS context of the rendered content.</td></tr><tr><td class=CDLEntry>containerElement</td><td class=CDLDescription>{DOMElement} Optional parameter.&nbsp; Insert the HTML to this node instead of the body root when calculating dimensions.</td></tr></table><h4 class=CHeading>Returns</h4><p>{<a href="BaseTypes/Size-js.html#OpenLayers.Size" class=LClass id=link45 onMouseOver="ShowTip(event, 'tt41', 'link45')" onMouseOut="HideTip('tt41')">OpenLayers.Size</a>}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getScrollbarWidth"></a>getScrollbarWidth</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getScrollbarWidth = function()</td></tr></table></blockquote><p>This function has been modified by the OpenLayers from the original version, written by Matthew Eernisse and released under the Apache 2 license here:</p><p><a href="http://www.fleegix.org/articles/2006/05/30/getting-the-scrollbar-width-in-pixels" class=LURL target=_top>http://www.fleegix.org<wbr>/articles<wbr>/2006<wbr>/05<wbr>/30<wbr>/getting-the-scrollbar-width-in-pixels</a></p><p>It has been modified simply to cache its value, since it is physically impossible that this code could ever run in more than one browser at once.</p><h4 class=CHeading>Returns</h4><p>{Integer}</p></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="Util.getFormattedLonLat"></a>getFormattedLonLat</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getFormattedLonLat = function(</td><td class="PParameter  prettyprint " nowrap>coordinate,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>axis,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>dmsOption</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>This function will return latitude or longitude value formatted as</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>coordinate</td><td class=CDLDescription>{Float} the coordinate value to be formatted</td></tr><tr><td class=CDLEntry>axis</td><td class=CDLDescription>{String} value of either &lsquo;lat&rsquo; or &lsquo;lon&rsquo; to indicate which axis is to to be formatted (default = lat)</td></tr><tr><td class=CDLEntry>dmsOption</td><td class=CDLDescription>{String} specify the precision of the output can be one of: &lsquo;dms&rsquo; show degrees minutes and seconds &lsquo;dm&rsquo; show only degrees and minutes &lsquo;d&rsquo; show only degrees</td></tr></table><h4 class=CHeading>Returns</h4><p>{String} the coordinate value formatted as a string</p></div></div></div>

</div><!--Content-->


<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MTitle>OpenLayers<div class=MSubTitle>JavaScript Mapping Library</div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent32')">OpenLayers</a><div class=MGroupContent id=MGroupContent32><div class=MEntry><div class=MFile><a href="../OpenLayers-js.html">OpenLayers</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">BaseTypes</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="BaseTypes-js.html">Base Types</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Bounds-js.html">Bounds</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Class-js.html">Class</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Date-js.html">Date</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Element-js.html">Element</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/LonLat-js.html">LonLat</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Pixel-js.html">Pixel</a></div></div><div class=MEntry><div class=MFile><a href="BaseTypes/Size-js.html">Size</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Control</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="Control-js.html">Control</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Control</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="Control/ArgParser-js.html">ArgParser</a></div></div><div class=MEntry><div class=MFile><a href="Control/Attribution-js.html">Attribution</a></div></div><div class=MEntry><div class=MFile><a href="Control/Button-js.html">Button</a></div></div><div class=MEntry><div class=MFile><a href="Control/CacheRead-js.html">CacheRead</a></div></div><div class=MEntry><div class=MFile><a href="Control/CacheWrite-js.html">CacheWrite</a></div></div><div class=MEntry><div class=MFile><a href="Control/DragFeature-js.html">DragFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/DragPan-js.html">DragPan</a></div></div><div class=MEntry><div class=MFile><a href="Control/DrawFeature-js.html">DrawFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/EditingToolbar-js.html">EditingToolbar</a></div></div><div class=MEntry><div class=MFile><a href="Control/Geolocate-js.html">Geolocate</a></div></div><div class=MEntry><div class=MFile><a href="Control/GetFeature-js.html">GetFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/Graticule-js.html">Graticule</a></div></div><div class=MEntry><div class=MFile><a href="Control/KeyboardDefaults-js.html">KeyboardDefaults</a></div></div><div class=MEntry><div class=MFile><a href="Control/LayerSwitcher-js.html">LayerSwitcher</a></div></div><div class=MEntry><div class=MFile><a href="Control/Measure-js.html">Measure</a></div></div><div class=MEntry><div class=MFile><a href="Control/ModifyFeature-js.html">ModifyFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/MousePosition-js.html">MousePosition</a></div></div><div class=MEntry><div class=MFile><a href="Control/Navigation-js.html">Navigation</a></div></div><div class=MEntry><div class=MFile><a href="Control/NavigationHistory-js.html">NavigationHistory</a></div></div><div class=MEntry><div class=MFile><a href="Control/NavToolbar-js.html">NavToolbar</a></div></div><div class=MEntry><div class=MFile><a href="Control/OverviewMap-js.html">OverviewMap</a></div></div><div class=MEntry><div class=MFile><a href="Control/Pan-js.html">Pan</a></div></div><div class=MEntry><div class=MFile><a href="Control/Panel-js.html">Panel</a></div></div><div class=MEntry><div class=MFile><a href="Control/PanPanel-js.html">PanPanel</a></div></div><div class=MEntry><div class=MFile><a href="Control/PanZoom-js.html">PanZoom</a></div></div><div class=MEntry><div class=MFile><a href="Control/PanZoomBar-js.html">PanZoomBar</a></div></div><div class=MEntry><div class=MFile><a href="Control/Permalink-js.html">Permalink</a></div></div><div class=MEntry><div class=MFile><a href="Control/PinchZoom-js.html">PinchZoom</a></div></div><div class=MEntry><div class=MFile><a href="Control/Scale-js.html">Scale</a></div></div><div class=MEntry><div class=MFile><a href="Control/ScaleLine-js.html">ScaleLine</a></div></div><div class=MEntry><div class=MFile><a href="Control/SelectFeature-js.html">SelectFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/SLDSelect-js.html">SLDSelect</a></div></div><div class=MEntry><div class=MFile><a href="Control/Snapping-js.html">Snapping</a></div></div><div class=MEntry><div class=MFile><a href="Control/Split-js.html">Split</a></div></div><div class=MEntry><div class=MFile><a href="Control/TouchNavigation-js.html">TouchNavigation</a></div></div><div class=MEntry><div class=MFile><a href="Control/TransformFeature-js.html">TransformFeature</a></div></div><div class=MEntry><div class=MFile><a href="Control/UTFGrid-js.html">UTFGrid</a></div></div><div class=MEntry><div class=MFile><a href="Control/WMSGetFeatureInfo-js.html">WMSGetFeatureInfo</a></div></div><div class=MEntry><div class=MFile><a href="Control/WMTSGetFeatureInfo-js.html">WMTSGetFeatureInfo</a></div></div><div class=MEntry><div class=MFile><a href="Control/Zoom-js.html">Zoom</a></div></div><div class=MEntry><div class=MFile><a href="Control/ZoomBox-js.html">ZoomBox</a></div></div><div class=MEntry><div class=MFile><a href="Control/ZoomIn-js.html">ZoomIn</a></div></div><div class=MEntry><div class=MFile><a href="Control/ZoomOut-js.html">ZoomOut</a></div></div><div class=MEntry><div class=MFile><a href="Control/ZoomPanel-js.html">ZoomPanel</a></div></div><div class=MEntry><div class=MFile><a href="Control/ZoomToMaxExtent-js.html">ZoomToMaxExtent</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Feature</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="Feature-js.html">Feature</a></div></div><div class=MEntry><div class=MFile><a href="Feature/Vector-js.html">Vector</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Filter</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="Filter-js.html">Filter</a></div></div><div class=MEntry><div class=MFile><a href="Filter/Comparison-js.html">Comparison</a></div></div><div class=MEntry><div class=MFile><a href="Filter/FeatureId-js.html">FeatureId</a></div></div><div class=MEntry><div class=MFile><a href="Filter/Function-js.html">Function</a></div></div><div class=MEntry><div class=MFile><a href="Filter/Logical-js.html">Logical</a></div></div><div class=MEntry><div class=MFile><a href="Filter/Spatial-js.html">Spatial</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent15')">Format</a><div class=MGroupContent id=MGroupContent15><div class=MEntry><div class=MFile><a href="Format-js.html">Format</a></div></div><div class=MEntry><div class=MFile><a href="Format/ArcXML-js.html">ArcXML</a></div></div><div class=MEntry><div class=MFile><a href="Format/ArcXML/Features-js.html">ArcXML.<wbr>Features</a></div></div><div class=MEntry><div class=MFile><a href="Format/Atom-js.html">Atom</a></div></div><div class=MEntry><div class=MFile><a href="Format/Context-js.html">Context</a></div></div><div class=MEntry><div class=MFile><a href="Format/CQL-js.html">CQL</a></div></div><div class=MEntry><div class=MFile><a href="Format/CSWGetDomain-js.html">CSWGetDomain</a></div></div><div class=MEntry><div class=MFile><a href="Format/CSWGetDomain/v2_0_2-js.html">CSWGetDomain.<wbr>v2_0_2</a></div></div><div class=MEntry><div class=MFile><a href="Format/CSWGetRecords-js.html">CSWGetRecords</a></div></div><div class=MEntry><div class=MFile><a href="Format/CSWGetRecords/v2_0_2-js.html">CSWGetRecords.<wbr>v2_0_2</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Filter</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile><a href="Format/Filter-js.html">Filter</a></div></div><div class=MEntry><div class=MFile><a href="Format/Filter/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/Filter/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/Filter/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">GML</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MFile><a href="Format/GML-js.html">GML</a></div></div><div class=MEntry><div class=MFile><a href="Format/GML/Base-js.html">Base</a></div></div><div class=MEntry><div class=MFile><a href="Format/GML/v2-js.html">v2</a></div></div><div class=MEntry><div class=MFile><a href="Format/GML/v3-js.html">v3</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent8')">SLD</a><div class=MGroupContent id=MGroupContent8><div class=MEntry><div class=MFile><a href="Format/SLD-js.html">SLD</a></div></div><div class=MEntry><div class=MFile><a href="Format/SLD/v1_0_0_GeoServer-js.html">SLD/<wbr>v1_0_0_GeoServer</a></div></div><div class=MEntry><div class=MFile><a href="Format/SLD/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/SLD/v1_0_0-js.html">v1_0_0</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="Format/GeoJSON-js.html">GeoJSON</a></div></div><div class=MEntry><div class=MFile><a href="Format/GeoRSS-js.html">GeoRSS</a></div></div><div class=MEntry><div class=MFile><a href="Format/GPX-js.html">GPX</a></div></div><div class=MEntry><div class=MFile><a href="Format/JSON-js.html">JSON</a></div></div><div class=MEntry><div class=MFile><a href="Format/KML-js.html">KML</a></div></div><div class=MEntry><div class=MFile><a href="Format/OGCExceptionReport-js.html">OGCExceptionReport</a></div></div><div class=MEntry><div class=MFile><a href="Format/OSM-js.html">OSM</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent9')">OWSCommon</a><div class=MGroupContent id=MGroupContent9><div class=MEntry><div class=MFile><a href="Format/OWSCommon-js.html">OWSCommon</a></div></div><div class=MEntry><div class=MFile><a href="Format/OWSCommon/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/OWSCommon/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/OWSCommon/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="Format/OWSContext-js.html">OWSContext</a></div></div><div class=MEntry><div class=MFile><a href="Format/OWSContext/v0_3_1-js.html">OWSContext.<wbr>v0_3_1</a></div></div><div class=MEntry><div class=MFile><a href="Format/QueryStringFilter-js.html">QueryStringFilter</a></div></div><div class=MEntry><div class=MFile><a href="Format/SOSCapabilities-js.html">SOSCapabilities</a></div></div><div class=MEntry><div class=MFile><a href="Format/SOSCapabilities/v1_0_0-js.html">SOSCapabilities.<wbr>v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/SOSGetFeatureOfInterest-js.html">SOSGetFeatureOfInterest</a></div></div><div class=MEntry><div class=MFile><a href="Format/SOSGetObservation-js.html">SOSGetObservation</a></div></div><div class=MEntry><div class=MFile><a href="Format/Text-js.html">Text</a></div></div><div class=MEntry><div class=MFile><a href="Format/XML/VersionedOGC-js.html">VersionedOGC</a></div></div><div class=MEntry><div class=MFile><a href="Format/WCSGetCoverage-js.html">WCSGetCoverage version 1.1.0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFS-js.html">WFS</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent10')">WFSCapabilities</a><div class=MGroupContent id=MGroupContent10><div class=MEntry><div class=MFile><a href="Format/WFSCapabilities-js.html">WFSCapabilities</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFSCapabilities/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFSCapabilities/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFSCapabilities/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent11')">WFST</a><div class=MGroupContent id=MGroupContent11><div class=MEntry><div class=MFile><a href="Format/WFST-js.html">WFST</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFST/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFST/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WFST/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent12')">WMC</a><div class=MGroupContent id=MGroupContent12><div class=MEntry><div class=MFile><a href="Format/WMC-js.html">WMC</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMC/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMC/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMC/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent13')">WMSCapabilities</a><div class=MGroupContent id=MGroupContent13><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities-js.html">WMSCapabilities</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_1-js.html">v1_1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_1_0-js.html">v1_1_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_1_1-js.html">v1_1_1</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_3-js.html">v1_3</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_3_0-js.html">v1_3_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSCapabilities/v1_1_1_WMSC-js.html">WMSCapabilities/<wbr>v1_1_1_WMSC</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent14')">WMSDescribeLayer</a><div class=MGroupContent id=MGroupContent14><div class=MEntry><div class=MFile><a href="Format/WMSDescribeLayer-js.html">WMSDescribeLayer</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSDescribeLayer/v1_1-js.html">v1_1</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="Format/WFSDescribeFeatureType-js.html">WFSDescribeFeatureType</a></div></div><div class=MEntry><div class=MFile><a href="Format/WKT-js.html">WKT</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMSGetFeatureInfo-js.html">WMSGetFeatureInfo</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMTSCapabilities-js.html">WMTSCapabilities</a></div></div><div class=MEntry><div class=MFile><a href="Format/WMTSCapabilities/v1_0_0-js.html">WMTSCapabilities.<wbr>v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WPSCapabilities-js.html">WPSCapabilities</a></div></div><div class=MEntry><div class=MFile><a href="Format/WPSCapabilities/v1_0_0-js.html">WPSCapabilities.<wbr>v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/WPSDescribeProcess-js.html">WPSDescribeProcess</a></div></div><div class=MEntry><div class=MFile><a href="Format/WPSExecute-js.html">WPSExecute version 1.0.0</a></div></div><div class=MEntry><div class=MFile><a href="Format/XLS-js.html">XLS</a></div></div><div class=MEntry><div class=MFile><a href="Format/XLS/v1-js.html">XLS.v1</a></div></div><div class=MEntry><div class=MFile><a href="Format/XLS/v1_1_0-js.html">XLS.<wbr>v1_1_0</a></div></div><div class=MEntry><div class=MFile><a href="Format/XML-js.html">XML</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent16')">Geometry</a><div class=MGroupContent id=MGroupContent16><div class=MEntry><div class=MFile><a href="Geometry-js.html">Geometry</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/Collection-js.html">Collection</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/Curve-js.html">Curve</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/LinearRing-js.html">LinearRing</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/LineString-js.html">LineString</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/MultiLineString-js.html">MultiLineString</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/MultiPoint-js.html">MultiPoint</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/MultiPolygon-js.html">MultiPolygon</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/Point-js.html">Point</a></div></div><div class=MEntry><div class=MFile><a href="Geometry/Polygon-js.html">Polygon</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent17')">Handler</a><div class=MGroupContent id=MGroupContent17><div class=MEntry><div class=MFile><a href="Handler-js.html">Handler</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Box-js.html">Box</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Click-js.html">Click</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Drag-js.html">Drag</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Feature-js.html">Feature</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Hover-js.html">Hover</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Keyboard-js.html">Keyboard</a></div></div><div class=MEntry><div class=MFile><a href="Handler/MouseWheel-js.html">MouseWheel</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Path-js.html">Path</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Pinch-js.html">Pinch</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Point-js.html">Point</a></div></div><div class=MEntry><div class=MFile><a href="Handler/Polygon-js.html">Polygon</a></div></div><div class=MEntry><div class=MFile><a href="Handler/RegularPolygon-js.html">RegularPolygon</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent18')">Lang</a><div class=MGroupContent id=MGroupContent18><div class=MEntry><div class=MFile><a href="Lang-js.html">Lang</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ar-js.html">ar</a></div></div><div class=MEntry><div class=MFile><a href="Lang/be-tarask-js.html">be-tarask</a></div></div><div class=MEntry><div class=MFile><a href="Lang/bg-js.html">bg</a></div></div><div class=MEntry><div class=MFile><a href="Lang/br-js.html">br</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ca-js.html">ca</a></div></div><div class=MEntry><div class=MFile><a href="Lang/cs-CZ-js.html">cs-CZ</a></div></div><div class=MEntry><div class=MFile><a href="Lang/da-DK-js.html">da-DK</a></div></div><div class=MEntry><div class=MFile><a href="Lang/de-js.html">de</a></div></div><div class=MEntry><div class=MFile><a href="Lang/en-js.html">en</a></div></div><div class=MEntry><div class=MFile><a href="Lang/en-CA-js.html">en-CA</a></div></div><div class=MEntry><div class=MFile><a href="Lang/es-js.html">es</a></div></div><div class=MEntry><div class=MFile><a href="Lang/el-js.html">el</a></div></div><div class=MEntry><div class=MFile><a href="Lang/fi-js.html">fi</a></div></div><div class=MEntry><div class=MFile><a href="Lang/fr-js.html">fr</a></div></div><div class=MEntry><div class=MFile><a href="Lang/fur-js.html">fur</a></div></div><div class=MEntry><div class=MFile><a href="Lang/gl-js.html">gl</a></div></div><div class=MEntry><div class=MFile><a href="Lang/gsw-js.html">gsw</a></div></div><div class=MEntry><div class=MFile><a href="Lang/hr-js.html">hr</a></div></div><div class=MEntry><div class=MFile><a href="Lang/hsb-js.html">hsb</a></div></div><div class=MEntry><div class=MFile><a href="Lang/hu-js.html">hu</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ia-js.html">ia</a></div></div><div class=MEntry><div class=MFile><a href="Lang/id-js.html">id</a></div></div><div class=MEntry><div class=MFile><a href="Lang/io-js.html">io</a></div></div><div class=MEntry><div class=MFile><a href="Lang/is-js.html">is</a></div></div><div class=MEntry><div class=MFile><a href="Lang/it-js.html">it</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ja-js.html">ja</a></div></div><div class=MEntry><div class=MFile><a href="Lang/km-js.html">km</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ksh-js.html">ksh</a></div></div><div class=MEntry><div class=MFile><a href="Lang/lt-js.html">lt</a></div></div><div class=MEntry><div class=MFile><a href="Lang/nds-js.html">nds</a></div></div><div class=MEntry><div class=MFile><a href="Lang/nb-js.html">nb</a></div></div><div class=MEntry><div class=MFile><a href="Lang/nl-js.html">nl</a></div></div><div class=MEntry><div class=MFile><a href="Lang/nn-js.html">nn</a></div></div><div class=MEntry><div class=MFile><a href="Lang/oc-js.html">oc</a></div></div><div class=MEntry><div class=MFile><a href="Lang/pl-js.html">pl</a></div></div><div class=MEntry><div class=MFile><a href="Lang/pt-js.html">pt</a></div></div><div class=MEntry><div class=MFile><a href="Lang/pt-BR-js.html">pt-BR</a></div></div><div class=MEntry><div class=MFile><a href="Lang/ru-js.html">ru</a></div></div><div class=MEntry><div class=MFile><a href="Lang/sk-js.html">sk</a></div></div><div class=MEntry><div class=MFile><a href="Lang/sv-SE-js.html">sv-SE</a></div></div><div class=MEntry><div class=MFile><a href="Lang/te-js.html">te</a></div></div><div class=MEntry><div class=MFile><a href="Lang/vi-js.html">vi</a></div></div><div class=MEntry><div class=MFile><a href="Lang/zh-CN-js.html">zh-CN</a></div></div><div class=MEntry><div class=MFile><a href="Lang/zh-TW-js.html">zh-TW</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent20')">Layer</a><div class=MGroupContent id=MGroupContent20><div class=MEntry><div class=MFile><a href="Layer-js.html">Layer</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent19')">Layer</a><div class=MGroupContent id=MGroupContent19><div class=MEntry><div class=MFile><a href="Layer/ArcGISCache-js.html">ArcGISCache.js</a></div></div><div class=MEntry><div class=MFile><a href="Layer/ArcGIS93Rest-js.html">ArcGIS93Rest</a></div></div><div class=MEntry><div class=MFile><a href="Layer/ArcIMS-js.html">ArcIMS</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Bing-js.html">Bing</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Boxes-js.html">Boxes</a></div></div><div class=MEntry><div class=MFile><a href="Layer/EventPane-js.html">EventPane</a></div></div><div class=MEntry><div class=MFile><a href="Layer/FixedZoomLevels-js.html">FixedZoomLevels</a></div></div><div class=MEntry><div class=MFile><a href="Layer/GeoRSS-js.html">GeoRSS</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Google-js.html">Google</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Google/v3-js.html">Google.v3</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Grid-js.html">Grid</a></div></div><div class=MEntry><div class=MFile><a href="Layer/HTTPRequest-js.html">HTTPRequest</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Image-js.html">Image</a></div></div><div class=MEntry><div class=MFile><a href="Layer/KaMap-js.html">KaMap</a></div></div><div class=MEntry><div class=MFile><a href="Layer/KaMapCache-js.html">KaMapCache</a></div></div><div class=MEntry><div class=MFile><a href="Layer/MapGuide-js.html">MapGuide</a></div></div><div class=MEntry><div class=MFile><a href="Layer/MapServer-js.html">MapServer</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Markers-js.html">Markers</a></div></div><div class=MEntry><div class=MFile><a href="Layer/PointGrid-js.html">PointGrid</a></div></div><div class=MEntry><div class=MFile><a href="Layer/PointTrack-js.html">PointTrack</a></div></div><div class=MEntry><div class=MFile><a href="Layer/SphericalMercator-js.html">SphericalMercator</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Text-js.html">Text</a></div></div><div class=MEntry><div class=MFile><a href="Layer/TileCache-js.html">TileCache</a></div></div><div class=MEntry><div class=MFile><a href="Layer/TMS-js.html">TMS</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Vector-js.html">Vector</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Vector/RootContainer-js.html">Vector.<wbr>RootContainer</a></div></div><div class=MEntry><div class=MFile><a href="Layer/WMS-js.html">WMS</a></div></div><div class=MEntry><div class=MFile><a href="Layer/WMTS-js.html">WMTS</a></div></div><div class=MEntry><div class=MFile><a href="Layer/WorldWind-js.html">WorldWind</a></div></div><div class=MEntry><div class=MFile><a href="Layer/XYZ-js.html">XYZ</a></div></div><div class=MEntry><div class=MFile><a href="Layer/Zoomify-js.html">Zoomify</a></div></div><div class=MEntry><div class=MFile><a href="Layer/OSM-js.html">OSM</a></div></div><div class=MEntry><div class=MFile><a href="Layer/UTFGrid-js.html">UTFGrid</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent21')">Marker</a><div class=MGroupContent id=MGroupContent21><div class=MEntry><div class=MFile><a href="Marker-js.html">Marker</a></div></div><div class=MEntry><div class=MFile><a href="Marker/Box-js.html">Box</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent22')">Popup</a><div class=MGroupContent id=MGroupContent22><div class=MEntry><div class=MFile><a href="Popup-js.html">Popup</a></div></div><div class=MEntry><div class=MFile><a href="Popup/Anchored-js.html">Anchored</a></div></div><div class=MEntry><div class=MFile><a href="Popup/AnchoredBubble-js.html">AnchoredBubble</a></div></div><div class=MEntry><div class=MFile><a href="Popup/Framed-js.html">Framed</a></div></div><div class=MEntry><div class=MFile><a href="Popup/FramedCloud-js.html">FramedCloud</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent25')">Protocol</a><div class=MGroupContent id=MGroupContent25><div class=MEntry><div class=MFile><a href="Protocol-js.html">Protocol</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent23')">Protocol</a><div class=MGroupContent id=MGroupContent23><div class=MEntry><div class=MFile><a href="Protocol/CSW-js.html">CSW</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/CSW/v2_0_2-js.html">CSW.<wbr>v2_0_2</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/HTTP-js.html">HTTP</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/Script-js.html">Script</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/SOS-js.html">SOS.<wbr>DEFAULTS</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/SOS/v1_0_0-js.html">SOS.<wbr>v1_0_0</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent24')">WFS</a><div class=MGroupContent id=MGroupContent24><div class=MEntry><div class=MFile><a href="Protocol/WFS-js.html">WFS</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/WFS/v1-js.html">v1</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/WFS/v1_0_0-js.html">v1_0_0</a></div></div><div class=MEntry><div class=MFile><a href="Protocol/WFS/v1_1_0-js.html">v1_1_0</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent26')">Renderer</a><div class=MGroupContent id=MGroupContent26><div class=MEntry><div class=MFile><a href="Renderer-js.html">Renderer</a></div></div><div class=MEntry><div class=MFile><a href="Renderer/Canvas-js.html">Canvas</a></div></div><div class=MEntry><div class=MFile><a href="Renderer/Elements-js.html">ElementsIndexer</a></div></div><div class=MEntry><div class=MFile><a href="Renderer/SVG-js.html">SVG</a></div></div><div class=MEntry><div class=MFile><a href="Renderer/VML-js.html">VML</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent27')">Request</a><div class=MGroupContent id=MGroupContent27><div class=MEntry><div class=MFile><a href="Request-js.html">Request</a></div></div><div class=MEntry><div class=MFile><a href="Request/XMLHttpRequest-js.html">XMLHttpRequest</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent28')">Strategy</a><div class=MGroupContent id=MGroupContent28><div class=MEntry><div class=MFile><a href="Strategy-js.html">Strategy</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/BBOX-js.html">BBOX</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Cluster-js.html">Cluster</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Filter-js.html">Filter</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Fixed-js.html">Fixed</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Paging-js.html">Paging</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Refresh-js.html">Refresh</a></div></div><div class=MEntry><div class=MFile><a href="Strategy/Save-js.html">Save</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent29')">Symbolizer</a><div class=MGroupContent id=MGroupContent29><div class=MEntry><div class=MFile><a href="Symbolizer-js.html">Symbolizer</a></div></div><div class=MEntry><div class=MFile><a href="Symbolizer/Line-js.html">Line</a></div></div><div class=MEntry><div class=MFile><a href="Symbolizer/Point-js.html">Point</a></div></div><div class=MEntry><div class=MFile><a href="Symbolizer/Polygon-js.html">Polygon</a></div></div><div class=MEntry><div class=MFile><a href="Symbolizer/Raster-js.html">Raster</a></div></div><div class=MEntry><div class=MFile><a href="Symbolizer/Text-js.html">Text</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent30')">Tile</a><div class=MGroupContent id=MGroupContent30><div class=MEntry><div class=MFile><a href="Tile-js.html">Tile</a></div></div><div class=MEntry><div class=MFile><a href="Tile/Image-js.html">Image</a></div></div><div class=MEntry><div class=MFile><a href="Tile/Image/IFrame-js.html">Image.<wbr>IFrame</a></div></div><div class=MEntry><div class=MFile><a href="Tile/UTFGrid-js.html">UTFGrid</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../deprecated-js.html">Deprecated</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent31')">OpenLayers</a><div class=MGroupContent id=MGroupContent31><div class=MEntry><div class=MFile><a href="Console-js.html">Console</a></div></div><div class=MEntry><div class=MFile><a href="Events-js.html">Events</a></div></div><div class=MEntry><div class=MFile><a href="Icon-js.html">Icon</a></div></div><div class=MEntry><div class=MFile><a href="Kinetic-js.html">Kinetic</a></div></div><div class=MEntry><div class=MFile><a href="Map-js.html">Map</a></div></div><div class=MEntry><div class=MFile><a href="Projection-js.html">Projection</a></div></div><div class=MEntry><div class=MFile><a href="Rule-js.html">Rule</a></div></div><div class=MEntry><div class=MFile><a href="SingleFile-js.html">SingleFile.js</a></div></div><div class=MEntry><div class=MFile><a href="Style-js.html">Style</a></div></div><div class=MEntry><div class=MFile><a href="Style2-js.html">Style2</a></div></div><div class=MEntry><div class=MFile><a href="StyleMap-js.html">StyleMap</a></div></div><div class=MEntry><div class=MFile><a href="Tween-js.html">Tween</a></div></div><div class=MEntry><div class=MFile id=MSelected>Util</div></div><div class=MEntry><div class=MFile><a href="Spherical-js.html">Spherical</a></div></div><div class=MEntry><div class=MFile><a href="Animation-js.html">Animation</a></div></div><div class=MEntry><div class=MFile><a href="Events/buttonclick-js.html">Events.<wbr>buttonclick</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent33')">Index</a><div class=MGroupContent id=MGroupContent33><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Properties.html">Properties</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Files.html">Files</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constructor.html">Constructor</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Constructor">Constructor</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option></select></div><script language=JavaScript><!--
HideAllBut([31, 32], 34);// --></script></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getElement = function()</td></tr></table></blockquote>This is the old $() from prototype</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isElement = function(</td><td class="PParameter  prettyprint " nowrap>o</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>A cross-browser implementation of &ldquo;e instanceof Element&rdquo;.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isArray = function(</td><td class="PParameter  prettyprint " nowrap>a</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Tests that the provided object is an array. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.removeItem = function(</td><td class="PParameter  prettyprint " nowrap>array,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>item</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Remove an object from an array. </div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.indexOf = function(</td><td class="PParameter  prettyprint " nowrap>array,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>obj</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Seems to exist already in FF, but not in MOZ.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.modifyDOMElement = function(</td><td class="PParameter  prettyprint " nowrap>element,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>overflow,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Modifies many properties of a DOM element all at once. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createDiv = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>overflow,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates a new div and optionally set some standard attributes. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createImage = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>delayDisplay</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates an img element with specific attribute values.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.alphaHack = function()</td></tr></table></blockquote>Checks whether it&rsquo;s necessary (and possible) to use the png alpha hack which allows alpha transparency for png images under Internet Explorer.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.modifyAlphaImageDiv = function(</td><td class="PParameter  prettyprint " nowrap>div,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sizing,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createAlphaImageDiv = function(</td><td class="PParameter  prettyprint " nowrap>id,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>px,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sz,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>imgURL,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>position,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>border,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>sizing,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>opacity,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>delayDisplay</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.upperCaseObject = function (</td><td class="PParameter  prettyprint " nowrap>object</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates a new hashtable and copies over all the keys from the passed-in object, but storing them under an uppercased version of the key at which they were stored.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.applyDefaults = function (</td><td class="PParameter  prettyprint " nowrap>to,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>from</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Takes an object and copies any properties that don&rsquo;t exist from another properties, by analogy with OpenLayers.Util.extend() from Prototype.js.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getParameterString = function(</td><td class="PParameter  prettyprint " nowrap>params</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.urlAppend = function(</td><td class="PParameter  prettyprint " nowrap>url,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>paramStr</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Appends a parameter string to a url. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getImagesLocation = function()</td></tr></table></blockquote>{String} The fully formatted image location string</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getImageLocation = function(</td><td class="PParameter  prettyprint " nowrap>image</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>{String} The fully formatted location string for a specified image</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.Try = function()</td></tr></table></blockquote>Execute functions until one of them doesn&rsquo;t throw an error. </div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getXmlNodeValue = function(</td><td class="PParameter  prettyprint " nowrap>node</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.mouseLeft = function (</td><td class="PParameter  prettyprint " nowrap>evt,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>div</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.toFloat = function (</td><td class="PParameter  prettyprint " nowrap>number,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>precision</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Convenience method to cast an object to a Number, rounded to the desired floating point precision.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.rad = function(</td><td class="PParameter  prettyprint " nowrap>x</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.deg = function(</td><td class="PParameter  prettyprint " nowrap>x</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.distVincenty = function(</td><td class="PParameter  prettyprint " nowrap>p1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>p2</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Given two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.destinationVincenty = function(</td><td class="PParameter  prettyprint " nowrap>lonlat,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>brng,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>dist</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Calculate destination point given start point lat/long (numeric degrees), bearing (numeric degrees) &amp; distance (in m). </div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getParameters = function(</td><td class="PParameter  prettyprint " nowrap>url</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Parse the parameters from a URL or from the current page itself into a JavaScript Object. </div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createUniqueID = function(</td><td class="PParameter  prettyprint " nowrap>prefix</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Create a unique identifier for this session. </div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.normalizeScale = function (</td><td class="PParameter  prettyprint " nowrap>scale</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getResolutionFromScale = function (</td><td class="PParameter  prettyprint " nowrap>scale,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>units</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getScaleFromResolution = function (</td><td class="PParameter  prettyprint " nowrap>resolution,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>units</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.pagePosition = function(</td><td class="PParameter  prettyprint " nowrap>forElement</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Calculates the position of an element on the page <img mode="link" target="url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>&rdquo; original=&rdquo;(see <url target=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo; name=&rdquo;http://code.google.com/p/doctype/wiki/ArticlePageOffset&rdquo;>)&rdquo;</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getViewportElement = function()</td></tr></table></blockquote>Returns die viewport element of the document. </div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.isEquivalentUrl = function(</td><td class="PParameter  prettyprint " nowrap>url1,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>url2,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Test two URLs for equivalence.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.createUrlObject = function(</td><td class="PParameter  prettyprint " nowrap>url,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.removeTail = function(</td><td class="PParameter  prettyprint " nowrap>url</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Takes a url and removes everything after the ? </div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getBrowserName = function()</td></tr></table></blockquote>{String} A string which specifies which is the current browser in which we are running.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getRenderedDimensions = function(</td><td class="PParameter  prettyprint " nowrap>contentHTML,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>size,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>options</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Renders the contentHTML offscreen to determine actual dimensions for popup sizing. </div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">OpenLayers.Util.getScrollbarWidth = function()</td></tr></table></blockquote>This function has been modified by the OpenLayers from the original version, written by Matthew Eernisse and released under the Apache 2 license here:</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters  prettyprint "nowrap>OpenLayers.Util.getFormattedLonLat = function(</td><td class="PParameter  prettyprint " nowrap>coordinate,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>axis,</td></tr><tr><td></td><td class="PParameter  prettyprint " nowrap>dmsOption</td><td class="PAfterParameters  prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>This function will return latitude or longitude value formatted as</div></div><div class=CToolTip id="tt40"><div class=CClass>This class represents a longitude and latitude pair</div></div><div class=CToolTip id="tt41"><div class=CClass>Instances of this class represent a width/height pair</div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>