OpenLayers JavaScript Mapping Library | Function Index
Return a GeoJSON object representing a single geometry. Return a clone of the relevant geometry. Return a clone of the relevant geometry. Return a clone of the relevant geometry. Calculate the area of this geometry. Calculate the area of this geometry.
Calculated by subtracting the areas of the internal holes from the area of the outer hole. {Float} The area of the geometry
Get an attribute node given the namespace URI and local name. Get an attribute value given the namespace URI and local name. Get the bounds for this Geometry. Take the pixel locations of the corner of the tile, and pass them to the base layer and ask for the location of those pixels, so that displaying tiles over Google works fine. {String} A string which specifies which is the current browser in which we are running. {OpenLayers.LonLat} {OpenLayers.LonLat} The center of the bounds in map space. {OpenLayers.Pixel} The center of the bounds in pixel space.
Get the value of the first child node if it exists, or return an optional default string. Get a string representing the components for this collection
{String} The proper corners string (“tr tl bl br”) for rico to round. {OpenLayers.Size} A new OpenLayers.Size object with the dimensions of the map div Calculates the max extent which includes all of the data for the layer. Calculates the max extent which includes all of the markers.
This is the old $() from prototype
Get a list of elements on a node given the namespace URI and local name. {OpenLayers.Bounds} A Bounds object which represents the lon/lat bounds of the current viewPort. Calculates using px-> lonlat translation functions on tl and br corners of viewport Get the map’s extent. {OpenLayers.Bounds} A Bounds object which represents the lon/lat bounds of the current viewPort. Given a feature id, return the feature if it exists in the features array Given an event, return a feature if the event occurred over one. Returns a feature id from an event on the renderer.
Combine url with layer’s params and these newParams. combine the layer’s url with its params and these newParams. combine the layer’s url with its params and these newParams. Combine the layer’s url with its params and these newParams. Deprecated. {Float} The height of the bounds (top minus bottom).
{OpenLayers.Size} The size that the image should be, taking into account gutters. {String} The fully formatted image location string
Get a layer based on its id
Calculate the length of this geometry. Calculate the length of this geometry {Float} The length of the curve {Float} The length of the geometry
Get a map location from a pixel location
Get a map location from a pixel location
Get the map bounds from the rect bounds.
{Object} The mapObject’s current center in Map Object format {Object} The mapObject’s current center in Map Object format {Object} The mapObject’s current center in Map Object format {Object} The mapObject’s current center in Map Object format
Get a 3rd party map location from an OL map location.
Get a 3rd party pixel location from an OL pixel location
{Integer} The mapObject’s current zoom, in Map Object format {Integer} The mapObject’s current zoom, in Map Object format {Integer} The mapObject’s current zoom, in Map Object format {Integer} The mapObject’s current zoom, in Map Object format
Get the map object zoom level from the OL zoom level
{OpenLayers.Bounds} {String} The Map’s Maximum Resolution
These could/should be made namespace aware? This function is in charge of asking the specific renderer which type of node to create for the given geometry.
Get the noode type for a geometry {Int} The number of layers attached to the map. {Integer} The total number of zoom levels that can be displayed by the current baseLayer.
Get an OL style map location from a 3rd party style map location Get an OL pixel location from a 3rd party pixel location. Get the OL zoom index from the map object zoom level
Get a pixel location from a map location Parse the parameters from a URL or from the current page itself into a JavaScript Object.
{String} The Projection of the base layer. Get the rect bounds from the map bounds. Get extent rectangle pixel bounds {Float} The currently selected resolution of the map, taken from the resolutions array, indexed by current zoom level. Get the current map resolution {Float} The current resolution of the map. Uses cached copy of resolution if available to minimize computing
{Float} The current scale denominator of the map.
{OpenLayers.Size} The size of the box. {OpenLayers.Size} An OpenLayers.Size object that represents the size, in pixels, of the div into which OpenLayers has been loaded.
Returns The tile bounds for a layer given a pixel location. Returns The tile bounds for a layer given a pixel location. Return the bounds of the tile grid. Get the tile size for the map {Object} Transport mechanism for whichever browser we’re in, or false if none available. The url we return is always the same (the image itself never changes) so we can ignore the bounds parameter (it will always be the same, anyways)
Return a query string for this layer
Return a GetMap query string for this layer
Get a pixel location from a map location
{Boolean} The layer should be displayed (if in range). To be implemented by subclasses. {String} String with information on why layer is broken, how to get it working. {String} String with information on why layer is broken, how to get it working. {String} String with information on why layer is broken, how to get it working. {String} String with information on why layer is broken, how to get it working. {Float} The width of the bounds
Convert map zoom to WW zoom. {Integer}
Get the zoom level for a given resolution
Writes a message to the console and opens a nested block to indent all future messages sent to the console. Closes the most recently opened block created by a call to OpenLayers.Console.group |