Util - OpenLayers
UtilSummaryUtilFunctions and PropertiesgetElementThis is the old $() from prototypeisElementA cross-browser implementation of “e instanceof Element”.isArrayTests that the provided object is an array. removeItemRemove an object from an array. indexOfSeems to exist already in FF, but not in MOZ.modifyDOMElementModifies many properties of a DOM element all at once. createDivCreates a new div and optionally set some standard attributes. createImageCreates an img element with specific attribute values.IMAGE_RELOAD_ATTEMPTS{Integer} How many times should we try to reload an image before giving up? alphaHackNeeded{Boolean} true if the png alpha hack is necessary and possible, false otherwise.alphaHackChecks whether it’s necessary (and possible) to use the png alpha hack which allows alpha transparency for png images under Internet Explorer.modifyAlphaImageDivcreateAlphaImageDivupperCaseObjectCreates 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.applyDefaultsTakes an object and copies any properties that don’t exist from another properties, by analogy with OpenLayers.Util.extend() from Prototype.js.getParameterStringurlAppendAppends a parameter string to a url. getImagesLocation{String} The fully formatted image location stringgetImageLocation{String} The fully formatted location string for a specified imageTryExecute functions until one of them doesn’t throw an error. getXmlNodeValuemouseLeftprecision{Number} The number of significant digits to retain to avoid floating point precision errors.toFloatConvenience method to cast an object to a Number, rounded to the desired floating point precision.raddegVincentyConstants{Object} Constants for Vincenty functions.distVincentyGiven two objects representing points with geographic coordinates, this calculates the distance between those points on the surface of an ellipsoid.destinationVincentyCalculate destination point given start point lat/long (numeric degrees), bearing (numeric degrees) & distance (in m). getParametersParse the parameters from a URL or from the current page itself into a JavaScript Object. lastSeqID{Integer} The ever-incrementing count variable. createUniqueIDCreate a unique identifier for this session. ConstantsINCHES_PER_UNIT{Object} Constant inches per unit -- borrowed from MapServer mapscale.c derivation of nautical miles from http://en.wikipedia.org/wiki/Nautical_mile Includes the full set of units supported by CS-MAP (http://trac.osgeo.org/csmap/) and PROJ.4 (http://trac.osgeo.org/proj/) 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.DOTS_PER_INCH{Integer} 72 (A sensible default)FunctionsnormalizeScalegetResolutionFromScalegetScaleFromResolutionpagePositionCalculates the position of an element on the page
Wyszukiwarka
Podobne podstrony:
Util jsjs zegarek na wwwAnimation jsgroup util ?layFormat jsMap jsTSM UTILlivehelp jsTile jsPHP JS readmeStyle jsb jsRule jsjs 6java util MissingResourceExceptionjava util Propertiesjava util ListResourceBundlemap utilwięcej podobnych podstron