deprecated.js | |
Deprecated | The deprecated.js script includes all methods, properties, and constructors that are not supported as part of the long-term API. |
OpenLayers. | |
Functions | |
OpenLayers. | Deprecated. |
inherit | Deprecated. |
OpenLayers.Util | |
OpenLayers.Ajax | |
Functions | |
OpenLayers. | Background load a document. |
OpenLayers. | {Object} |
OpenLayers. | |
Constructor | |
OpenLayers. | |
OpenLayers. | Deprecated. |
Constructor | |
OpenLayers. | |
OpenLayers. | |
Constructor | |
OpenLayers. | |
OpenLayers. | |
Functions | |
hide | Deprecated. |
show | Deprecated. |
getDimensions | Deprecated. |
String. | Deprecated. |
String. | Deprecated. |
String.trim | Deprecated. |
String. | Deprecated. |
Function.bind | Deprecated. |
Function. | Deprecated. |
OpenLayers.Tile | |
OpenLayers. | This class is DEPRECATED in 2.4 and will be removed by 3.0. |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
OpenLayers. | This class is DEPRECATED in 2.4 and will be removed by 3.0. |
Properties | |
direction | {String} ‘vertical’ or ‘horizontal’ |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
OpenLayers. | |
OpenLayers. | |
Functions | |
concatChildValues | Deprecated. |
OpenLayers. | Instances of OpenLayers.Layer.WMS.Post are used to retrieve data from OGC Web Mapping Services via HTTP-POST (application/x-www-form-urlencoded). |
Properties | |
unsupportedBrowsers | {Array} Array with browsers, which should use the HTTP-GET protocol instead of HTTP-POST for fetching tiles from a WMS . |
Constructor | |
OpenLayers. | Creates a new WMS layer object. |
OpenLayers. | Deprecated. |
Properties | |
singleTile | {singleTile} Always true for untiled. |
Constructor | |
OpenLayers. | |
OpenLayers. | Deprecated. |
Properties | |
singleTile | {singleTile} Always true for untiled. |
Constructor | |
OpenLayers. | |
OpenLayers. | Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. |
Functions | |
destroy | nullify references to prevent circular references and memory leaks |
OpenLayers. | WFS handling class, for use as a featureClass on the WFS layer for handling ‘point’ WFS types. |
Constructor | |
OpenLayers. | Create a WFS feature. |
OpenLayers. | Deprecated. |
Properties | |
isBaseLayer | {Boolean} WFS layer is not a base layer by default. |
ratio | {Float} The ratio property determines the size of the serverside query relative to the map viewport size. |
featureClass | {OpenLayers.Feature} If featureClass is defined, an old-style markers based WFS layer is created instead of a new-style vector layer. |
format | {OpenLayers.Format} The format you want the data to be parsed with. |
formatOptions | {Object} Hash of options which should be passed to the format when it is created. |
encodeBBOX | {Boolean} Should the BBOX commas be encoded? |
extractAttributes | {Boolean} Should the WFS layer parse attributes from the retrieved GML? |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
mergeNewParams | Modify parameters for the layer and redraw. |
clone | |
getFullRequestString | combine the layer’s url with its params and these newParams. |
commit | Write out the data to a WFS server. |
commitReport | Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter. |
refresh | Refreshes all the features of the layer |
getDataExtent | Calculates the max extent which includes all of the layer data. |
setOpacity | Call the setOpacity method of the appropriate parent class to set the opacity. |
OpenLayers. | Deprecated. |
Constants | |
MIN_ZOOM_LEVEL | {Integer} 1 |
MAX_ZOOM_LEVEL | {Integer} 19 |
RESOLUTIONS | {Array(Float)} Hardcode these resolutions so that they are more closely tied with the standard wms projection |
Properties | |
type | {VEMapType} |
wrapDateLine | {Boolean} Allow user to pan forever east/west. |
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? |
animationEnabled | {Boolean} If set to true, the transition between zoom levels will be animated. |
Constructor | |
OpenLayers. | Creates a new instance of a OpenLayers.Layer.VirtualEarth. |
Functions | |
getWarningHTML | {String} String with information on why layer is broken, how to get it working. |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
dragPanMapObject | |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getLongitudeFromMapObjectLonLat | |
getLatitudeFromMapObjectLonLat | |
getMapObjectLonLatFromLonLat | |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
getMapObjectPixelFromXY | |
OpenLayers. | Abstract SQL protocol class. |
Properties | |
databaseName | {String} |
tableName | Name of the database table into which Features should be saved. |
Constructor | |
OpenLayers. | |
Functions | |
destroy | Clean up the protocol. |
supported | This should be overridden by specific subclasses |
OpenLayers. | This Protocol stores feature in the browser via the Gears Database module http://code.google.com |
Constructor | |
OpenLayers. | |
Functions | |
destroy | Clean up the protocol. |
supported | Determine whether a browser supports Gears |
read | Read all features from the database and return a OpenLayers.Protocol.Response instance. |
create | Create new features into the database. |
update | Construct a request updating modified feature. |
delete | Delete features from the database. |
commit | Go over the features and for each take action based on the feature state. |
OpenLayers. | |
Constants | |
MIN_ZOOM_LEVEL | {Integer} 0 |
MAX_ZOOM_LEVEL | {Integer} 17 |
RESOLUTIONS | {Array(Float)} Hardcode these resolutions so that they are more closely tied with the standard wms projection |
Properties | |
type | {YahooMapType} |
wrapDateLine | {Boolean} Allow user to pan forever east/west. |
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? |
Constructor | |
OpenLayers. | |
Functions | |
setMap | Overridden from EventPane because we need to remove this yahoo event pane which prohibits our drag and drop, and we can only do this once the map has been loaded and centered. |
getWarningHTML | {String} String with information on why layer is broken, how to get it working. |
getOLZoomFromMapObjectZoom | |
getMapObjectZoomFromOLZoom | |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
dragPanMapObject | |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getLongitudeFromMapObjectLonLat | |
getLatitudeFromMapObjectLonLat | |
getMapObjectLonLatFromLonLat | |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
getMapObjectPixelFromXY | |
getMapObjectSizeFromOLSize | |
OpenLayers. | Create a vector layer by parsing a GML file. |
Properties | |
format | {OpenLayers.Format} The format you want the data to be parsed with. |
formatOptions | {Object} Hash of options which should be passed to the format when it is created. |
Constructor | |
OpenLayers. | Load and parse a single file on the web, according to the format provided via the ‘format’ option, defaulting to GML. |
Functions | |
setVisibility | Set the visibility flag for the layer and hide/show&redraw accordingly. |
OpenLayers. | This class is not supported, and probably isn’t what you’re looking for. |
Constructor | |
OpenLayers. | |
Functions | |
getLength | {Float} The length of the geometry |
getArea | {Float} The area of the geometry |
OpenLayers. | |
Constants | |
labelNodeType | {String} The node type for text label containers. |
Constructor | |
OpenLayers. | |
OpenLayers. | |
Constants | |
labelNodeType | {String} The node type for text label containers. |
Constructor | |
OpenLayers. | |
Functions | |
supported | {Boolean} Whether or not the browser supports the SVG renderer |
Constants | |
OpenLayers. | {Object} |
OpenLayers. | {Object} |
OpenLayers. | {Object} |
OpenLayers. | This class is deprecated. |
Constructor | |
OpenLayers. | |
Functions | |
setSize | |
setBackgroundColor | |
setOpacity | |
Constants | |
CORNER_SIZE | {Integer} 5. |
The deprecated.js script includes all methods, properties, and constructors that are not supported as part of the long-term API. If you use any of these, you have to explicitly include this script in your application.
<script src="deprecated.js" type="text/javascript"></script>
You are strongly encouraged to avoid using deprecated functionality. The documentation here should point you to the supported alternatives.
Functions | |
OpenLayers. | Deprecated. |
inherit | Deprecated. |
Deprecated. Old method to create an OpenLayers style class. Use the OpenLayers.Class constructor instead.
An OpenLayers class
OpenLayers.Class.inherit = function ( P )
Deprecated. Old method to inherit from one or more OpenLayers style classes. Use the OpenLayers.Class constructor instead.
class | One or more classes can be provided as arguments |
An object prototype
Functions | |
OpenLayers. | Background load a document. |
OpenLayers.loadURL = function( uri, params, caller, onComplete, onFailure )
Background load a document. Deprecated. Use OpenLayers.Request.GET method instead.
uri | {String} URI of source doc |
params | {String} or {Object} GET params. Either a string in the form “?hello=world&foo=bar” (do not forget the leading question mark) or an object in the form {‘hello’: ‘world’, ‘foo’: ‘bar} |
caller | {Object} object which gets callbacks |
onComplete | {Function} Optional callback for success. The callback will be called with this set to caller and will receive the request object as an argument. Note that if you do not specify an onComplete function, <OpenLayers.nullHandler> will be called (which pops up a user friendly error message dialog). |
onFailure | {Function} Optional callback for failure. In the event of a failure, the callback will be called with this set to caller and will receive the request object as an argument. Note that if you do not specify an onComplete function, <OpenLayers.nullHandler> will be called (which pops up a user friendly error message dialog). |
{OpenLayers.Request.XMLHttpRequest} The request object. To abort loading, call request.abort().
Deprecated. Use OpenLayers.Request method instead.
Functions | |
hide | Deprecated. |
show | Deprecated. |
getDimensions | Deprecated. |
String. | Deprecated. |
String. | Deprecated. |
String.trim | Deprecated. |
String. | Deprecated. |
Function.bind | Deprecated. |
Function. | Deprecated. |
This class is DEPRECATED in 2.4 and will be removed by 3.0. If you need this functionality, use OpenLayers.Control.Navigation instead!!!
This class is DEPRECATED in 2.4 and will be removed by 3.0. If you need this functionality, use OpenLayers.Control.NavToolbar instead!!!
Properties | |
direction | {String} ‘vertical’ or ‘horizontal’ |
Constructor | |
OpenLayers. | |
Functions | |
destroy |
position | {OpenLayers.Pixel} |
direction | {String} |
Functions | |
concatChildValues | Deprecated. |
concatChildValues: function( node, def )
Deprecated. Use getChildValue instead.
Concatenate the value of all child nodes if any exist, or return an optional default string. Returns an empty string if no children exist and no default value is supplied. Not optimized for large numbers of child nodes.
node | {DOMElement} The element used to look for child values. |
def | {String} Optional string to return in the event that no child exist. |
{String} The concatenated value of all child nodes of the given node.
Instances of OpenLayers.Layer.WMS.Post are used to retrieve data from OGC Web Mapping Services via HTTP-POST (application/x-www-form-urlencoded). Create a new WMS layer with the OpenLayers.Layer.WMS.Post constructor.
Deprecated. Instead of this layer, use OpenLayers.Layer.WMS with OpenLayers.Tile.Image.maxGetUrlLength configured in the layer’s <OpenLayers.Layer.WMS.tileOptions>.
Properties | |
unsupportedBrowsers | {Array} Array with browsers, which should use the HTTP-GET protocol instead of HTTP-POST for fetching tiles from a WMS . |
Constructor | |
OpenLayers. | Creates a new WMS layer object. |
{Array} Array with browsers, which should use the HTTP-GET protocol instead of HTTP-POST for fetching tiles from a WMS . Defaults to [“mozilla”, “firefox”, “opera”], because Opera is not able to show transparent images in IFrames and Firefox/Mozilla has some ugly effects of viewport-shaking when panning the map. Both browsers, Opera and Firefox/Mozilla, have no problem with long urls, which is the reason for using POST instead of GET. The strings to pass to this array are the ones returned by <OpenLayers.BROWSER_NAME>.
Creates a new WMS layer object.
var wms = new OpenLayers.Layer.WMS.Post( "NASA Global Mosaic", "http://wms.jpl.nasa.gov/wms.cgi", {layers: "modis, global_mosaic"});
name | {String} A name for the layer |
url | {String} Base url for the WMS (e.g. http://wms.jpl.nasa.gov/wms.cgi) |
params | {Object} An object with key/value pairs representing the GetMap query string parameters and parameter values. |
options | {Object} Hashtable of extra options to tag onto the layer. |
Deprecated. To be removed in 3.0. Instead use OpenLayers.Layer.WMS and pass the option ‘singleTile’ as true.
Properties | |
singleTile | {singleTile} Always true for untiled. |
Constructor | |
OpenLayers. |
Deprecated. To be removed in 3.0. Instead use OpenLayers.Layer.MapServer and pass the option ‘singleTile’ as true.
Properties | |
singleTile | {singleTile} Always true for untiled. |
Constructor | |
OpenLayers. |
Instances of OpenLayers.Tile.WFS are used to manage the image tiles used by various layers. Create a new image tile with the OpenLayers.Tile.WFS constructor.
WFS handling class, for use as a featureClass on the WFS layer for handling ‘point’ WFS types. Good for subclassing when creating a custom WFS like XML application.
Constructor | |
OpenLayers. | Create a WFS feature. |
Deprecated. To be removed in 3.0. Instead use OpenLayers.Layer.Vector with a Protocol.WFS and one or more Strategies.
Properties | |
isBaseLayer | {Boolean} WFS layer is not a base layer by default. |
ratio | {Float} The ratio property determines the size of the serverside query relative to the map viewport size. |
featureClass | {OpenLayers.Feature} If featureClass is defined, an old-style markers based WFS layer is created instead of a new-style vector layer. |
format | {OpenLayers.Format} The format you want the data to be parsed with. |
formatOptions | {Object} Hash of options which should be passed to the format when it is created. |
encodeBBOX | {Boolean} Should the BBOX commas be encoded? |
extractAttributes | {Boolean} Should the WFS layer parse attributes from the retrieved GML? |
Constructor | |
OpenLayers. | |
Functions | |
destroy | |
mergeNewParams | Modify parameters for the layer and redraw. |
clone | |
getFullRequestString | combine the layer’s url with its params and these newParams. |
commit | Write out the data to a WFS server. |
commitReport | Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter. |
refresh | Refreshes all the features of the layer |
getDataExtent | Calculates the max extent which includes all of the layer data. |
setOpacity | Call the setOpacity method of the appropriate parent class to set the opacity. |
{Float} The ratio property determines the size of the serverside query relative to the map viewport size. By default, we load an area twice as big as the map, to allow for panning without immediately reload. Setting this to 1 will cause the area of the WFS request to match the map area exactly. It is recommended to set this to some number at least slightly larger than 1, otherwise accidental clicks can cause a data reload, by moving the map only 1 pixel.
{OpenLayers.Feature} If featureClass is defined, an old-style markers based WFS layer is created instead of a new-style vector layer. If sent, this should be a subclass of OpenLayers.Feature
{OpenLayers.Format} The format you want the data to be parsed with. Must be passed in the constructor. Should be a class, not an instance. This option can only be used if no featureClass is passed / vectorMode is false: if a featureClass is passed, then this parameter is ignored.
clone: function ( obj )
obj | {Object} |
{OpenLayers.Layer.WFS} An exact clone of this OpenLayers.Layer.WFS
getFullRequestString:function( newParams, altUrl )
combine the layer’s url with its params and these newParams.
Add the SRS parameter from ‘projection’ -- this is probably more eloquently done via a setProjection() method, but this works for now and always.
newParams | {Object} |
altUrl | {String} Use this as the url instead of the layer’s url |
commitReport: function( string, response )
Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter. Override this function to provide custom transaction reporting.
string | {String} reporting string |
response | {String} full XML response |
Deprecated. Use OpenLayers.Layer.Bing instead.
Instances of OpenLayers.Layer.VirtualEarth are used to display the data from the Bing Maps AJAX Control OpenLayers.Layer.VirtualEarth constructor.
Constants | |
MIN_ZOOM_LEVEL | {Integer} 1 |
MAX_ZOOM_LEVEL | {Integer} 19 |
RESOLUTIONS | {Array(Float)} Hardcode these resolutions so that they are more closely tied with the standard wms projection |
Properties | |
type | {VEMapType} |
wrapDateLine | {Boolean} Allow user to pan forever east/west. |
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? |
animationEnabled | {Boolean} If set to true, the transition between zoom levels will be animated. |
Constructor | |
OpenLayers. | Creates a new instance of a OpenLayers.Layer.VirtualEarth. |
Functions | |
getWarningHTML | {String} String with information on why layer is broken, how to get it working. |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
dragPanMapObject | |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getLongitudeFromMapObjectLonLat | |
getLatitudeFromMapObjectLonLat | |
getMapObjectLonLatFromLonLat | |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
getMapObjectPixelFromXY |
{Boolean} Allow user to pan forever east/west. Default is true. Setting this to false only restricts panning if sphericalMercator is true.
Creates a new instance of a OpenLayers.Layer.VirtualEarth. If you use an instance of OpenLayers.Layer.VirtualEarth in you map, you should set the OpenLayers.Map option restrictedExtent to a meaningful value, e.g.:
var map = new OpenLayers.Map( 'map', { // other map options restrictedExtent : OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) } ); var veLayer = new OpenLayers.Layer.VirtualEarth ( "Virtual Earth Layer" ); map.addLayer( veLayer );
name | {String} |
options | {Object} |
Abstract SQL protocol class. Not to be instantiated directly. Use one of the SQL protocol subclasses instead.
Properties | |
databaseName | {String} |
tableName | Name of the database table into which Features should be saved. |
Constructor | |
OpenLayers. | |
Functions | |
destroy | Clean up the protocol. |
supported | This should be overridden by specific subclasses |
This Protocol stores feature in the browser via the Gears Database module http://code.google.com
The main advantage is that all the read, create, update and delete operations can be done offline.
Constructor | |
OpenLayers. | |
Functions | |
destroy | Clean up the protocol. |
supported | Determine whether a browser supports Gears |
read | Read all features from the database and return a OpenLayers.Protocol.Response instance. |
create | Create new features into the database. |
update | Construct a request updating modified feature. |
delete | Delete features from the database. |
commit | Go over the features and for each take action based on the feature state. |
read: function( options )
Read all features from the database and return a OpenLayers.Protocol.Response instance. If the options parameter contains a callback attribute, the function is called with the response as a parameter.
options | {Object} Optional object for configuring the request; it can have the {Boolean} property “noFeatureStateReset” which specifies if the state of features read from the Gears database must be reset to null, if “noFeatureStateReset” is undefined or false then each feature’s state is reset to null, if “noFeatureStateReset” is true the feature state is preserved. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object.
create: function( features, options )
Create new features into the database.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} The features to create in the database. |
options | {Object} Optional object for configuring the request. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object.
update: function( features, options )
Construct a request updating modified feature.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} The features to update in the database. |
options | {Object} Optional object for configuring the request. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object.
"delete": function( features, options )
Delete features from the database.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} |
options | {Object} Optional object for configuring the request. This object is modified and should not be reused. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object.
commit: function( features, options )
Go over the features and for each take action based on the feature state. Possible actions are create, update and delete.
features | {Array({OpenLayers.Feature.Vector})} |
options | {Object} Object whose possible keys are “create”, “update”, “delete”, “callback” and “scope”, the values referenced by the first three are objects as passed to the “create”, “update”, and “delete” methods, the value referenced by the “callback” key is a function which is called when the commit operation is complete using the scope referenced by the “scope” key. |
{Array({OpenLayers.Protocol.Response})} An array of OpenLayers.Protocol.Response objects, one per request made to the database.
Constants | |
MIN_ZOOM_LEVEL | {Integer} 0 |
MAX_ZOOM_LEVEL | {Integer} 17 |
RESOLUTIONS | {Array(Float)} Hardcode these resolutions so that they are more closely tied with the standard wms projection |
Properties | |
type | {YahooMapType} |
wrapDateLine | {Boolean} Allow user to pan forever east/west. |
sphericalMercator | {Boolean} Should the map act as a mercator-projected map? |
Constructor | |
OpenLayers. | |
Functions | |
setMap | Overridden from EventPane because we need to remove this yahoo event pane which prohibits our drag and drop, and we can only do this once the map has been loaded and centered. |
getWarningHTML | {String} String with information on why layer is broken, how to get it working. |
getOLZoomFromMapObjectZoom | |
getMapObjectZoomFromOLZoom | |
setMapObjectCenter | Set the mapObject to the specified center and zoom |
getMapObjectCenter | {Object} The mapObject’s current center in Map Object format |
dragPanMapObject | |
getMapObjectZoom | {Integer} The mapObject’s current zoom, in Map Object format |
getMapObjectLonLatFromMapObjectPixel | |
getMapObjectPixelFromMapObjectLonLat | |
getLongitudeFromMapObjectLonLat | |
getLatitudeFromMapObjectLonLat | |
getMapObjectLonLatFromLonLat | |
getXFromMapObjectPixel | |
getYFromMapObjectPixel | |
getMapObjectPixelFromXY | |
getMapObjectSizeFromOLSize |
{Boolean} Allow user to pan forever east/west. Default is true. Setting this to false only restricts panning if sphericalMercator is true.
setMap: function( map )
Overridden from EventPane because we need to remove this yahoo event pane which prohibits our drag and drop, and we can only do this once the map has been loaded and centered.
map | {OpenLayers.Map} |
getMapObjectSizeFromOLSize: function( olSize )
olSize | {OpenLayers.Size} |
{Object} MapObject Size from olSize parameter
Create a vector layer by parsing a GML file. The GML file is passed in as a parameter. Deprecated. To be removed in 3.0. Instead use OpenLayers.Layer.Vector with Protocol.HTTP and Strategy.Fixed. Provide the protocol with a format parameter to get the parser you want for your data.
Properties | |
format | {OpenLayers.Format} The format you want the data to be parsed with. |
formatOptions | {Object} Hash of options which should be passed to the format when it is created. |
Constructor | |
OpenLayers. | Load and parse a single file on the web, according to the format provided via the ‘format’ option, defaulting to GML. |
Functions | |
setVisibility | Set the visibility flag for the layer and hide/show&redraw accordingly. |
{OpenLayers.Format} The format you want the data to be parsed with.
setVisibility: function( visibility, noEvent )
Set the visibility flag for the layer and hide/show&redraw accordingly. Fire event unless otherwise specified GML will be loaded if the layer is being made visible for the first time.
visible | {Boolean} Whether or not to display the layer (if in range) |
noEvent | {Boolean} |
This class is not supported, and probably isn’t what you’re looking for. Instead, most users probably want something like:
var poly = new OpenLayers.Bounds(0,0,10,10).toGeometry();
This will create a rectangular Polygon geometry.
Constructor | |
OpenLayers. | |
Functions | |
getLength | {Float} The length of the geometry |
getArea | {Float} The area of the geometry |
points | {Array(OpenLayers.Geometry.Point)} |
Constants | |
labelNodeType | {String} The node type for text label containers. |
Constructor | |
OpenLayers. |
Constants | |
labelNodeType | {String} The node type for text label containers. |
Constructor | |
OpenLayers. | |
Functions | |
supported | {Boolean} Whether or not the browser supports the SVG renderer |
Constants | |
OpenLayers. | {Object} |
OpenLayers. | {Object} |
OpenLayers. | {Object} |
This class is deprecated. Use {OpenLayers.Popup.Anchored} and round corners using CSS3’s border-radius property.
id | {String} |
lonlat | {OpenLayers.LonLat} |
contentSize | {OpenLayers.Size} |
contentHTML | {String} |
anchor | {Object} Object to which we’ll anchor the popup. Must expose a ‘size’ (OpenLayers.Size) and ‘offset’ (OpenLayers.Pixel) (Note that this is generally an OpenLayers.Icon). |
closeBox | {Boolean} |
closeBoxCallback | {Function} Function to be called on closeBox click. |
setSize:function( contentSize )
contentSize | {OpenLayers.Size} the new size for the popup’s contents div (in pixels). |
Deprecated.
OpenLayers.Class.inherit = function ( P )
Background load a document.
OpenLayers.loadURL = function( uri, params, caller, onComplete, onFailure )
Deprecated.
hide: function()
Deprecated.
show: function()
Deprecated.
getDimensions: function( element )
destroy: function()
destroy: function()
Deprecated.
concatChildValues: function( node, def )
nullify references to prevent circular references and memory leaks
destroy: function()
destroy: function()
Modify parameters for the layer and redraw.
mergeNewParams:function( newParams )
clone: function ( obj )
combine the layer’s url with its params and these newParams.
getFullRequestString:function( newParams, altUrl )
Write out the data to a WFS server.
commit: function()
Called with a ‘success’ message if the commit succeeded, otherwise a failure message, and the full request text as a second parameter.
commitReport: function( string, response )
Refreshes all the features of the layer
refresh: function()
Calculates the max extent which includes all of the layer data.
getDataExtent: function ()
Call the setOpacity method of the appropriate parent class to set the opacity.
setOpacity: function ( opacity )
{String} String with information on why layer is broken, how to get it working.
getWarningHTML:function()
Set the mapObject to the specified center and zoom
setMapObjectCenter: function( center, zoom )
{Object} The mapObject’s current center in Map Object format
getMapObjectCenter: function()
dragPanMapObject: function( dX, dY )
{Integer} The mapObject’s current zoom, in Map Object format
getMapObjectZoom: function()
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
getLongitudeFromMapObjectLonLat: function( moLonLat )
getLatitudeFromMapObjectLonLat: function( moLonLat )
getMapObjectLonLatFromLonLat: function( lon, lat )
getXFromMapObjectPixel: function( moPixel )
getYFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromXY: function( x, y )
Clean up the protocol.
destroy: function()
This should be overridden by specific subclasses
supported: function()
Clean up the protocol.
destroy: function()
Determine whether a browser supports Gears
supported: function()
Read all features from the database and return a OpenLayers.Protocol.Response instance.
read: function( options )
Create new features into the database.
create: function( features, options )
Construct a request updating modified feature.
update: function( features, options )
Delete features from the database.
"delete": function( features, options )
Go over the features and for each take action based on the feature state.
commit: function( features, options )
Overridden from EventPane because we need to remove this yahoo event pane which prohibits our drag and drop, and we can only do this once the map has been loaded and centered.
setMap: function( map )
{String} String with information on why layer is broken, how to get it working.
getWarningHTML:function()
getOLZoomFromMapObjectZoom: function( moZoom )
getMapObjectZoomFromOLZoom: function( olZoom )
Set the mapObject to the specified center and zoom
setMapObjectCenter: function( center, zoom )
{Object} The mapObject’s current center in Map Object format
getMapObjectCenter: function()
dragPanMapObject: function( dX, dY )
{Integer} The mapObject’s current zoom, in Map Object format
getMapObjectZoom: function()
getMapObjectLonLatFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromMapObjectLonLat: function( moLonLat )
getLongitudeFromMapObjectLonLat: function( moLonLat )
getLatitudeFromMapObjectLonLat: function( moLonLat )
getMapObjectLonLatFromLonLat: function( lon, lat )
getXFromMapObjectPixel: function( moPixel )
getYFromMapObjectPixel: function( moPixel )
getMapObjectPixelFromXY: function( x, y )
getMapObjectSizeFromOLSize: function( olSize )
Set the visibility flag for the layer and hide/show&redraw accordingly.
setVisibility: function( visibility, noEvent )
{Float} The length of the geometry
getLength: function()
{Float} The area of the geometry
getArea: function()
{Boolean} Whether or not the browser supports the SVG renderer
supported: function()
setSize:function( contentSize )
setBackgroundColor:function( color )
setOpacity:function( opacity )
Send an HTTP GET request.
GET: function( config )
Get the textual value of the node if it exists, or return an optional default string.
getChildValue: function( node, def )