| oscar. | |
| oscar.Util | |
| Functions | |
| buildUrl This method takes a string and object of parameters and | returns a url with query string. |
| extractGeometriesFromFeatures This method takes an array of | features and extracts the geometry objects from them and returns them in an array. |
| combineGeometries This method take an array of | <OpenLayers.Geometry> objects and attempts to combine them to fewer geometry objects. |
| mergeGeometries Takes two <OpenLayers. | them to a single <OpenLayers.Geometry> object. |
| mergeToExistingGeometry Takes a geometry and attempts to merge it | to a list of existing geometry objects. |
| isFeatureInArray Returns true of a feature name is found in the | |
| checkAll | Checks all checkboxes in a form except a checkbox using the name “allbox” |
| isOneChecked | Takes an array of checkbox elements and checks to see if at least one is checked. |
| isSphericalMercator | Returns true if the coordinate system is EPSG:3857 or EPSG:900913 |
| moveSelectedOptions | Moves selected options from one select box to another |
| moveAllSelectOptions | Moves all options from one select box to another |
| getBrowserName | Returns: {String} A string which specifies which is the current browser in which we are running. |
| buildWFSFilterForRequest | This method will generate a WFSFilter for WFS requests. |
| getDataFormatter | returns a data formatter for the passed-in data format |
| oscar. | Converts epsg codes to urns and vice versa |
| Functions | |
| oscar. | Convert urn to crs. |
| oscar. | Convert espg crs to urn. |
| oscar. | returns the geometry property name of the current server |
| oscar. | Displays an alert dialog box to the user. |
| oscar. | Displays an confirm dialog box. |
| getGridOffsets Returns the correct offsets from a WCS | DescribeCoverage operation |
| isGeographicCRS Returns true / false if a CRS is geographic. If | false then the CRS is assumed to be projected |
| boundsToFeature This method taks an OpenLayers. | |
| oscar. |
| Functions | |
| buildUrl This method takes a string and object of parameters and | returns a url with query string. |
| extractGeometriesFromFeatures This method takes an array of | features and extracts the geometry objects from them and returns them in an array. |
| combineGeometries This method take an array of | <OpenLayers.Geometry> objects and attempts to combine them to fewer geometry objects. |
| mergeGeometries Takes two <OpenLayers. | them to a single <OpenLayers.Geometry> object. |
| mergeToExistingGeometry Takes a geometry and attempts to merge it | to a list of existing geometry objects. |
| isFeatureInArray Returns true of a feature name is found in the | |
| checkAll | Checks all checkboxes in a form except a checkbox using the name “allbox” |
| isOneChecked | Takes an array of checkbox elements and checks to see if at least one is checked. |
| isSphericalMercator | Returns true if the coordinate system is EPSG:3857 or EPSG:900913 |
| moveSelectedOptions | Moves selected options from one select box to another |
| moveAllSelectOptions | Moves all options from one select box to another |
| getBrowserName | Returns: {String} A string which specifies which is the current browser in which we are running. |
| buildWFSFilterForRequest | This method will generate a WFSFilter for WFS requests. |
| getDataFormatter | returns a data formatter for the passed-in data format |
oscar.Util.getBrowserName = function()
Returns: {String} A string which specifies which is the current browser in which we are running.
Currently-supported browser detection and codes: * ‘opera’ -- Opera * ‘msie’ -- Internet Explorer * ‘safari’ -- Safari * ‘firefox’ -- FireFox * ‘mozilla’ -- Mozilla
If we are unable to property identify the browser, we return an empty string.
Converts epsg codes to urns and vice versa
| Functions | |
| oscar. | Convert urn to crs. |
| oscar. | Convert espg crs to urn. |
| oscar. | returns the geometry property name of the current server |
| oscar. | Displays an alert dialog box to the user. |
| oscar. | Displays an confirm dialog box. |
| getGridOffsets Returns the correct offsets from a WCS | DescribeCoverage operation |
| isGeographicCRS Returns true / false if a CRS is geographic. If | false then the CRS is assumed to be projected |
| boundsToFeature This method taks an OpenLayers. | |
| oscar. |
Checks all checkboxes in a form except a checkbox using the name “allbox”
oscar.Util.checkAll = function( theForm )
Takes an array of checkbox elements and checks to see if at least one is checked.
oscar.Util.isOneChecked = function( checkbox )
Returns true if the coordinate system is EPSG:3857 or EPSG:900913
oscar.Util.isSphericalMercator = function( srs )
Moves selected options from one select box to another
oscar.Util.moveSelectedOptions = function( fromSelectName, toSelectName )
Moves all options from one select box to another
oscar.Util.moveAllSelectOptions = function( fromSelectName, toSelectName )
Returns: {String} A string which specifies which is the current browser in which we are running.
oscar.Util.getBrowserName = function()
This method will generate a WFSFilter for WFS requests.
oscar.Util.buildWFSFilterForRequest = function( geometry, srs, wfsVersion, propertyName )
returns a data formatter for the passed-in data format
oscar.Util.getDataFormatter = function( dataFormatType, options )
returns the geometry property name of the current server
oscar.Util.getServerGeometryPropertyName = function( schema )
Displays an alert dialog box to the user.
oscar.alert = function( props, content, callbacks )
Displays an confirm dialog box.
oscar.confirm = function( props, content, callbacks )