OpenLayers JavaScript Mapping Library | Function Index
Creates a new timer under the given name. Stops a timer created by a call to OpenLayers.Console.time(name) and writes the time elapsed. {Array} array of left, bottom, right, top
Toggle the visibility of element(s) passed in Toggles visibility of the popup. {String} Shortened String representation of Point object. {String} Shortened String representation of OpenLayers.LonLat object. Sets the new state {String} String representation of bounds object. Returns the Well-Known Text representation of a geometry Return a readable string version of the lonlat Cast this object into a string Return the string representation of a size object Prints an interactive stack trace of JavaScript execution at the point where it is called. Do the zoom. Trigger a specified registered event Removes leading and trailing whitespace characters from a string. Deprecated. Execute functions until one of them doesn’t throw an error. Cycle through all the element entries in the events cache and call stopObservingElement on each. Function that is called to destroy the map on page unload.
unregister an event from the map Remove feature from the layer’s selectedFeature array, render the feature as normal, and call the onUnselect function. Called when the select feature control unselects a feature. This method is called during the handling of the mouse up event. Finish drawing the feature Update the overview map after layers move. Takes a feature, and generates a WFS-T Transaction “Update” Update attribution string.
Cycles through the loaded data and base layer input arrays and makes the necessary calls to the Map object such that that the map’s visual state corresponds to what the user has selected in the control. Updates the map extent to match the extent rectangle position and size if the popup has a lonlat and its map members set, then have it move itself to its proper position Updates the extent rectangle position and size to match the map extent
This function should be called by any external code which dynamically changes the size of the map div (because mozilla wont let us catch the “onresize” for an element) Called when the drag handler detects a mouse-up. 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.
{Boolean} Boolean indicating whether or not the popup is visible Writes a message to the console with the visual “warning” icon and color coding and a hyperlink to the line where it was called.
User spun scroll wheel down User spun scroll wheel up
Accept an object, and return a string. Serialize a feature, geometry, array of features, or array of geometries into a GeoJSON string. Accept Feature Collection, and return a string. Generate a GML document string given a list of features. Serialize an object into a JSON string. Accept Feature Collection, and return a string. Takes a feature list, and generates a WFS-T Transaction Serialize a feature or array of features into a WKT string. Serialize a DOM node into a XML string. Output an indentation string depending on the indentation level. Output a string representing a newline if in pretty printing mode. Output a string representing a space if in pretty printing mode. event listener for clicks on the slider This is what happens when a click has occurred, and the client is dragging. Perform cleanup when a mouseup event is received -- discover new zoom level and switch to it.
Zoombox function.
Zoom to a specific zoom level Zoom to the passed in bounds, recenter Zoom to the full extent and recenter. Zoom to a specified scale |