OpenLayers OpenLayers

Changeset 8038

Show
Ignore:
Timestamp:
09/19/08 12:44:44 (2 months ago)
Author:
euzuro
Message:

Bringing up patches from trunk to branch for RC3. -r8012:HEAD. (Closes #1594) (Closes #1730) (Closes #1735) (Closes #1738) (Closes #1740)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/openlayers/2.7/apidoc_config/Menu.txt

    r6833 r8038  
    4646 
    4747 
    48 File: OpenLayers  (OpenLayers.js) 
    49  
    5048Group: OpenLayers  { 
    5149 
     50   File: OpenLayers  (no auto-title, OpenLayers.js) 
    5251   File: Ajax  (no auto-title, OpenLayers/Ajax.js) 
    5352 
     
    7776      File: KeyboardDefaults  (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 
    7877      File: LayerSwitcher  (no auto-title, OpenLayers/Control/LayerSwitcher.js) 
     78      File: Measure  (no auto-title, OpenLayers/Control/Measure.js) 
    7979      File: ModifyFeature  (no auto-title, OpenLayers/Control/ModifyFeature.js) 
    8080      File: MouseDefaults  (no auto-title, OpenLayers/Control/MouseDefaults.js) 
     
    8585      File: NavToolbar  (no auto-title, OpenLayers/Control/NavToolbar.js) 
    8686      File: OverviewMap  (no auto-title, OpenLayers/Control/OverviewMap.js) 
     87      File: Pan  (no auto-title, OpenLayers/Control/Pan.js) 
    8788      File: Panel  (no auto-title, OpenLayers/Control/Panel.js) 
     89      File: PanPanel  (no auto-title, OpenLayers/Control/PanPanel.js) 
    8890      File: PanZoom  (no auto-title, OpenLayers/Control/PanZoom.js) 
    8991      File: PanZoomBar  (no auto-title, OpenLayers/Control/PanZoomBar.js) 
     
    9395      File: SelectFeature  (no auto-title, OpenLayers/Control/SelectFeature.js) 
    9496      File: ZoomBox  (no auto-title, OpenLayers/Control/ZoomBox.js) 
     97      File: ZoomIn  (no auto-title, OpenLayers/Control/ZoomIn.js) 
     98      File: ZoomOut  (no auto-title, OpenLayers/Control/ZoomOut.js) 
     99      File: ZoomPanel  (no auto-title, OpenLayers/Control/ZoomPanel.js) 
    95100      File: ZoomToMaxExtent  (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 
    96101      }  # Group: Control 
     
    111116      File: FeatureId  (no auto-title, OpenLayers/Filter/FeatureId.js) 
    112117      File: Logical  (no auto-title, OpenLayers/Filter/Logical.js) 
     118      File: Spatial  (no auto-title, OpenLayers/Filter/Spatial.js) 
    113119      }  # Group: Filter 
    114120 
     
    116122 
    117123      File: Format  (no auto-title, OpenLayers/Format.js) 
     124 
     125      Group: Filter  { 
     126 
     127         File: Filter  (no auto-title, OpenLayers/Format/Filter.js) 
     128         File: v1  (no auto-title, OpenLayers/Format/Filter/v1.js) 
     129         File: v1_0_0  (no auto-title, OpenLayers/Format/Filter/v1_0_0.js) 
     130         }  # Group: Filter 
     131 
    118132      File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
    119133      File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
    120       File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     134 
     135      Group: GML  { 
     136 
     137         File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     138         File: Base  (no auto-title, OpenLayers/Format/GML/Base.js) 
     139         File: v2  (no auto-title, OpenLayers/Format/GML/v2.js) 
     140         File: v3  (no auto-title, OpenLayers/Format/GML/v3.js) 
     141         }  # Group: GML 
     142 
     143      File: GPX  (no auto-title, OpenLayers/Format/GPX.js) 
    121144      File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
    122145      File: KML  (no auto-title, OpenLayers/Format/KML.js) 
    123146      File: OSM  (no auto-title, OpenLayers/Format/OSM.js) 
     147      File: Text  (no auto-title, OpenLayers/Format/Text.js) 
     148      File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
     149      File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
     150      File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    124151 
    125152      Group: SLD  { 
     
    129156         File: v1_0_0  (no auto-title, OpenLayers/Format/SLD/v1_0_0.js) 
    130157         }  # Group: SLD 
    131  
    132       File: Text  (no auto-title, OpenLayers/Format/Text.js) 
    133       File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
    134       File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
    135       File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    136158 
    137159      Group: WMC  { 
     
    181203 
    182204      File: Lang  (no auto-title, OpenLayers/Lang.js) 
    183       File: Lang["cs-CZ"]  (OpenLayers/Lang/cs-CZ.js) 
    184       File: Lang["de"]  (no auto-title, OpenLayers/Lang/de.js) 
    185       File: Lang["en"]  (no auto-title, OpenLayers/Lang/en.js) 
    186       File: Lang["en-CA"]  (no auto-title, OpenLayers/Lang/en-CA.js) 
    187       File: Lang["fr"]  (no auto-title, OpenLayers/Lang/fr.js) 
     205      File: cs-CZ  (no auto-title, OpenLayers/Lang/cs-CZ.js) 
     206      File: de  (no auto-title, OpenLayers/Lang/de.js) 
     207      File: en  (no auto-title, OpenLayers/Lang/en.js) 
     208      File: en-CA  (no auto-title, OpenLayers/Lang/en-CA.js) 
     209      File: fr  (no auto-title, OpenLayers/Lang/fr.js) 
     210      File: it  (no auto-title, OpenLayers/Lang/it.js) 
     211      File: nb  (no auto-title, OpenLayers/Lang/nb.js) 
     212      File: nl  (no auto-title, OpenLayers/Lang/nl.js) 
     213      File: pt-BR  (no auto-title, OpenLayers/Lang/pt-BR.js) 
     214      File: sv-SE  (no auto-title, OpenLayers/Lang/sv-SE.js) 
     215      File: zh-CN  (no auto-title, OpenLayers/Lang/zh-CN.js) 
     216      File: zh-TW  (no auto-title, OpenLayers/Lang/zh-TW.js) 
    188217      }  # Group: Lang 
    189218 
     
    201230      File: Image  (no auto-title, OpenLayers/Layer/Image.js) 
    202231      File: KaMap  (no auto-title, OpenLayers/Layer/KaMap.js) 
     232      File: KaMapCache  (no auto-title, OpenLayers/Layer/KaMapCache.js) 
    203233      File: MapGuide  (no auto-title, OpenLayers/Layer/MapGuide.js) 
    204234      File: MapServer  (no auto-title, OpenLayers/Layer/MapServer.js) 
     
    233263      File: Anchored  (no auto-title, OpenLayers/Popup/Anchored.js) 
    234264      File: AnchoredBubble  (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 
    235       File: Framed  (OpenLayers/Popup/Framed.js) 
    236       File: FramedCloud  (OpenLayers/Popup/FramedCloud.js) 
     265      File: Framed  (no auto-title, OpenLayers/Popup/Framed.js) 
     266      File: FramedCloud  (no auto-title, OpenLayers/Popup/FramedCloud.js) 
    237267      }  # Group: Popup 
    238268 
    239269   File: Projection  (no auto-title, OpenLayers/Projection.js) 
    240270 
     271   Group: Protocol  { 
     272 
     273      File: Protocol  (no auto-title, OpenLayers/Protocol.js) 
     274      File: HTTP  (no auto-title, OpenLayers/Protocol/HTTP.js) 
     275 
     276      Group: SQL  { 
     277 
     278         File: SQL  (no auto-title, OpenLayers/Protocol/SQL.js) 
     279         File: Gears  (no auto-title, OpenLayers/Protocol/SQL/Gears.js) 
     280         }  # Group: SQL 
     281 
     282      }  # Group: Protocol 
     283 
    241284   Group: Renderer  { 
    242285 
    243286      File: Renderer  (no auto-title, OpenLayers/Renderer.js) 
     287      File: Canvas  (no auto-title, OpenLayers/Renderer/Canvas.js) 
    244288      File: Elements  (no auto-title, OpenLayers/Renderer/Elements.js) 
    245289      File: SVG  (no auto-title, OpenLayers/Renderer/SVG.js) 
     
    247291      }  # Group: Renderer 
    248292 
     293   Group: Request  { 
     294 
     295      File: Request  (no auto-title, OpenLayers/Request.js) 
     296      File: XMLHttpRequest  (no auto-title, OpenLayers/Request/XMLHttpRequest.js) 
     297      }  # Group: Request 
     298 
    249299   File: Rule  (no auto-title, OpenLayers/Rule.js) 
     300 
     301   Group: Strategy  { 
     302 
     303      File: Strategy  (no auto-title, OpenLayers/Strategy.js) 
     304      File: BBOX  (no auto-title, OpenLayers/Strategy/BBOX.js) 
     305      File: Cluster  (no auto-title, OpenLayers/Strategy/Cluster.js) 
     306      File: Fixed  (no auto-title, OpenLayers/Strategy/Fixed.js) 
     307      File: Paging  (no auto-title, OpenLayers/Strategy/Paging.js) 
     308      }  # Group: Strategy 
     309 
    250310   File: Style  (no auto-title, OpenLayers/Style.js) 
    251311   File: StyleMap  (no auto-title, OpenLayers/StyleMap.js) 
  • branches/openlayers/2.7/doc_config/Menu.txt

    r6833 r8038  
    4646 
    4747 
    48 File: OpenLayers  (OpenLayers.js) 
    49  
    5048Group: OpenLayers  { 
    5149 
     50   File: OpenLayers  (no auto-title, OpenLayers.js) 
    5251   File: Ajax  (no auto-title, OpenLayers/Ajax.js) 
    5352 
     
    7776      File: KeyboardDefaults  (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 
    7877      File: LayerSwitcher  (no auto-title, OpenLayers/Control/LayerSwitcher.js) 
     78      File: Measure  (no auto-title, OpenLayers/Control/Measure.js) 
    7979      File: ModifyFeature  (no auto-title, OpenLayers/Control/ModifyFeature.js) 
    8080      File: MouseDefaults  (no auto-title, OpenLayers/Control/MouseDefaults.js) 
     
    8585      File: NavToolbar  (no auto-title, OpenLayers/Control/NavToolbar.js) 
    8686      File: OverviewMap  (no auto-title, OpenLayers/Control/OverviewMap.js) 
     87      File: Pan  (no auto-title, OpenLayers/Control/Pan.js) 
    8788      File: Panel  (no auto-title, OpenLayers/Control/Panel.js) 
     89      File: PanPanel  (no auto-title, OpenLayers/Control/PanPanel.js) 
    8890      File: PanZoom  (no auto-title, OpenLayers/Control/PanZoom.js) 
    8991      File: PanZoomBar  (no auto-title, OpenLayers/Control/PanZoomBar.js) 
     
    9395      File: SelectFeature  (no auto-title, OpenLayers/Control/SelectFeature.js) 
    9496      File: ZoomBox  (no auto-title, OpenLayers/Control/ZoomBox.js) 
     97      File: ZoomIn  (no auto-title, OpenLayers/Control/ZoomIn.js) 
     98      File: ZoomOut  (no auto-title, OpenLayers/Control/ZoomOut.js) 
     99      File: ZoomPanel  (no auto-title, OpenLayers/Control/ZoomPanel.js) 
    95100      File: ZoomToMaxExtent  (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 
    96101      }  # Group: Control 
     
    111116      File: FeatureId  (no auto-title, OpenLayers/Filter/FeatureId.js) 
    112117      File: Logical  (no auto-title, OpenLayers/Filter/Logical.js) 
     118      File: Spatial  (no auto-title, OpenLayers/Filter/Spatial.js) 
    113119      }  # Group: Filter 
    114120 
     
    116122 
    117123      File: Format  (no auto-title, OpenLayers/Format.js) 
     124 
     125      Group: Filter  { 
     126 
     127         File: Filter  (no auto-title, OpenLayers/Format/Filter.js) 
     128         File: v1  (no auto-title, OpenLayers/Format/Filter/v1.js) 
     129         File: v1_0_0  (no auto-title, OpenLayers/Format/Filter/v1_0_0.js) 
     130         }  # Group: Filter 
     131 
    118132      File: GeoJSON  (no auto-title, OpenLayers/Format/GeoJSON.js) 
    119133      File: GeoRSS  (no auto-title, OpenLayers/Format/GeoRSS.js) 
    120       File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     134 
     135      Group: GML  { 
     136 
     137         File: GML  (no auto-title, OpenLayers/Format/GML.js) 
     138         File: Base  (no auto-title, OpenLayers/Format/GML/Base.js) 
     139         File: v2  (no auto-title, OpenLayers/Format/GML/v2.js) 
     140         File: v3  (no auto-title, OpenLayers/Format/GML/v3.js) 
     141         }  # Group: GML 
     142 
     143      File: GPX  (no auto-title, OpenLayers/Format/GPX.js) 
    121144      File: JSON  (no auto-title, OpenLayers/Format/JSON.js) 
    122145      File: KML  (no auto-title, OpenLayers/Format/KML.js) 
    123146      File: OSM  (no auto-title, OpenLayers/Format/OSM.js) 
     147      File: Text  (no auto-title, OpenLayers/Format/Text.js) 
     148      File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
     149      File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
     150      File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    124151 
    125152      Group: SLD  { 
     
    129156         File: v1_0_0  (no auto-title, OpenLayers/Format/SLD/v1_0_0.js) 
    130157         }  # Group: SLD 
    131  
    132       File: Text  (no auto-title, OpenLayers/Format/Text.js) 
    133       File: WFS  (no auto-title, OpenLayers/Format/WFS.js) 
    134       File: WKT  (no auto-title, OpenLayers/Format/WKT.js) 
    135       File: XML  (no auto-title, OpenLayers/Format/XML.js) 
    136158 
    137159      Group: WMC  { 
     
    181203 
    182204      File: Lang  (no auto-title, OpenLayers/Lang.js) 
    183       File: Lang["cs-CZ"]  (OpenLayers/Lang/cs-CZ.js) 
    184       File: Lang["de"]  (no auto-title, OpenLayers/Lang/de.js) 
    185       File: Lang["en"]  (no auto-title, OpenLayers/Lang/en.js) 
    186       File: Lang["en-CA"]  (no auto-title, OpenLayers/Lang/en-CA.js) 
    187       File: Lang["fr"]  (no auto-title, OpenLayers/Lang/fr.js) 
     205      File: cs-CZ  (no auto-title, OpenLayers/Lang/cs-CZ.js) 
     206      File: de  (no auto-title, OpenLayers/Lang/de.js) 
     207      File: en  (no auto-title, OpenLayers/Lang/en.js) 
     208      File: en-CA  (no auto-title, OpenLayers/Lang/en-CA.js) 
     209      File: fr  (no auto-title, OpenLayers/Lang/fr.js) 
     210      File: it  (no auto-title, OpenLayers/Lang/it.js) 
     211      File: nb  (no auto-title, OpenLayers/Lang/nb.js) 
     212      File: nl  (no auto-title, OpenLayers/Lang/nl.js) 
     213      File: pt-BR  (no auto-title, OpenLayers/Lang/pt-BR.js) 
     214      File: sv-SE  (no auto-title, OpenLayers/Lang/sv-SE.js) 
     215      File: zh-CN  (no auto-title, OpenLayers/Lang/zh-CN.js) 
     216      File: zh-TW  (no auto-title, OpenLayers/Lang/zh-TW.js) 
    188217      }  # Group: Lang 
    189218 
     
    201230      File: Image  (no auto-title, OpenLayers/Layer/Image.js) 
    202231      File: KaMap  (no auto-title, OpenLayers/Layer/KaMap.js) 
     232      File: KaMapCache  (no auto-title, OpenLayers/Layer/KaMapCache.js) 
    203233      File: MapGuide  (no auto-title, OpenLayers/Layer/MapGuide.js) 
    204234      File: MapServer  (no auto-title, OpenLayers/Layer/MapServer.js) 
     
    233263      File: Anchored  (no auto-title, OpenLayers/Popup/Anchored.js) 
    234264      File: AnchoredBubble  (no auto-title, OpenLayers/Popup/AnchoredBubble.js) 
    235       File: Framed  (OpenLayers/Popup/Framed.js) 
    236       File: FramedCloud  (OpenLayers/Popup/FramedCloud.js) 
     265      File: Framed  (no auto-title, OpenLayers/Popup/Framed.js) 
     266      File: FramedCloud  (no auto-title, OpenLayers/Popup/FramedCloud.js) 
    237267      }  # Group: Popup 
    238268 
    239269   File: Projection  (no auto-title, OpenLayers/Projection.js) 
    240270 
     271   Group: Protocol  { 
     272 
     273      File: Protocol  (no auto-title, OpenLayers/Protocol.js) 
     274      File: HTTP  (no auto-title, OpenLayers/Protocol/HTTP.js) 
     275 
     276      Group: SQL  { 
     277 
     278         File: SQL  (no auto-title, OpenLayers/Protocol/SQL.js) 
     279         File: Gears  (no auto-title, OpenLayers/Protocol/SQL/Gears.js) 
     280         }  # Group: SQL 
     281 
     282      }  # Group: Protocol 
     283 
    241284   Group: Renderer  { 
    242285 
    243286      File: Renderer  (no auto-title, OpenLayers/Renderer.js) 
     287      File: Canvas  (no auto-title, OpenLayers/Renderer/Canvas.js) 
    244288      File: Elements  (no auto-title, OpenLayers/Renderer/Elements.js) 
    245289      File: SVG  (no auto-title, OpenLayers/Renderer/SVG.js) 
     
    247291      }  # Group: Renderer 
    248292 
     293   Group: Request  { 
     294 
     295      File: Request  (no auto-title, OpenLayers/Request.js) 
     296      File: XMLHttpRequest  (no auto-title, OpenLayers/Request/XMLHttpRequest.js) 
     297      }  # Group: Request 
     298 
    249299   File: Rule  (no auto-title, OpenLayers/Rule.js) 
     300 
     301   Group: Strategy  { 
     302 
     303      File: Strategy  (no auto-title, OpenLayers/Strategy.js) 
     304      File: BBOX  (no auto-title, OpenLayers/Strategy/BBOX.js) 
     305      File: Cluster  (no auto-title, OpenLayers/Strategy/Cluster.js) 
     306      File: Fixed  (no auto-title, OpenLayers/Strategy/Fixed.js) 
     307      File: Paging  (no auto-title, OpenLayers/Strategy/Paging.js) 
     308      }  # Group: Strategy 
     309 
    250310   File: Style  (no auto-title, OpenLayers/Style.js) 
    251311   File: StyleMap  (no auto-title, OpenLayers/StyleMap.js) 
  • branches/openlayers/2.7/lib/OpenLayers/BaseTypes.js

    r7627 r8038  
    341341    Number.prototype.limitSigDigs = function(sig) { 
    342342        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    343                               {'newMethod':'OpenLayers.String.limitSigDigs'})); 
     343                              {'newMethod':'OpenLayers.Number.limitSigDigs'})); 
    344344        return OpenLayers.Number.limitSigDigs(this, sig); 
    345345    }; 
     
    410410    Function.prototype.bind = function() { 
    411411        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    412                                 {'newMethod':'OpenLayers.String.bind'})); 
     412                                {'newMethod':'OpenLayers.Function.bind'})); 
    413413        // new function takes the same arguments with this function up front 
    414414        Array.prototype.unshift.apply(arguments, [this]); 
     
    431431    Function.prototype.bindAsEventListener = function(object) { 
    432432        OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 
    433                         {'newMethod':'OpenLayers.String.bindAsEventListener'})); 
     433                        {'newMethod':'OpenLayers.Function.bindAsEventListener'})); 
    434434        return OpenLayers.Function.bindAsEventListener(this, object); 
    435435    }; 
  • branches/openlayers/2.7/lib/OpenLayers/Console.js

    r7675 r8038  
    234234     * OpenLayers.Console calls to the console object. 
    235235     */ 
    236     if(window.console) { 
    237         var scripts = document.getElementsByTagName("script"); 
    238         for(var i=0, len=scripts.length; i<len; ++i) { 
    239             if(scripts[i].src.indexOf("firebug.js") != -1) { 
     236    var scripts = document.getElementsByTagName("script"); 
     237    for(var i=0, len=scripts.length; i<len; ++i) { 
     238        if(scripts[i].src.indexOf("firebug.js") != -1) { 
     239            if(console) { 
    240240                OpenLayers.Util.extend(OpenLayers.Console, console); 
    241241                break; 
  • branches/openlayers/2.7/lib/OpenLayers/Control/Attribution.js

    r7627 r8038  
    1111 * Add attribution from layers to the map display. Uses 'attribution' property 
    1212 * of each layer. 
     13 * 
     14 * Inherits from: 
     15 *  - <OpenLayers.Control> 
    1316 */ 
    1417OpenLayers.Control.Attribution =  
  • branches/openlayers/2.7/lib/OpenLayers/Control/EditingToolbar.js

    r7627 r8038  
    1414/** 
    1515 * Class: OpenLayers.Control.EditingToolbar  
     16 * 
     17 * Inherits from: 
     18 *  - <OpenLayers.Control.Panel> 
    1619 */ 
    1720OpenLayers.Control.EditingToolbar = OpenLayers.Class( 
  • branches/openlayers/2.7/lib/OpenLayers/Control/MousePosition.js

    r7163 r8038  
    1010/** 
    1111 * Class: OpenLayers.Control.MousePosition 
     12 * 
     13 * Inherits from: 
     14 *  - <OpenLayers.Control> 
    1215 */ 
    1316OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/Navigation.js

    r7872 r8038  
    5353     * {Boolean} Whether or not to handle right clicks. Default is false. 
    5454     */ 
    55     handleRightClicks: true, 
     55    handleRightClicks: false, 
    5656     
    5757    /** 
  • branches/openlayers/2.7/lib/OpenLayers/Control/Pan.js

    r7950 r8038  
     1/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD 
     2 * license.  See http://svn.openlayers.org/trunk/openlayers/license.txt for the 
     3 * full text of the license. */ 
     4 
    15/** 
    26 * @requires OpenLayers/Control.js 
     
    59/** 
    610 * Class: OpenLayers.Control.Pan 
     11 * 
     12 * Inherits from: 
     13 *  - <OpenLayers.Control> 
    714 */ 
    815OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/PanPanel.js

    r7956 r8038  
    1414 *   <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" /> 
    1515 * <![endif]--> 
    16  *  
     16 * 
     17 * Inherits from: 
     18 *  - <OpenLayers.Control.Panel>  
    1719 */ 
    1820OpenLayers.Control.PanPanel = OpenLayers.Class(OpenLayers.Control.Panel, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/Scale.js

    r6727 r8038  
    1111 * Class: OpenLayers.Control.Scale 
    1212 * Display a small scale indicator on the map. 
     13 * 
    1314 * Inherits from: 
    1415 *  - <OpenLayers.Control> 
  • branches/openlayers/2.7/lib/OpenLayers/Control/ZoomIn.js

    r7950 r8038  
     1/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD 
     2 * license.  See http://svn.openlayers.org/trunk/openlayers/license.txt for the 
     3 * full text of the license. */ 
     4 
    15/** 
    26 * @requires OpenLayers/Control.js 
     
    59/** 
    610 * Class: OpenLayers.Control.ZoomIn 
     11 * 
     12 * Inherits from: 
     13 *  - <OpenLayers.Control> 
    714 */ 
    815OpenLayers.Control.ZoomIn = OpenLayers.Class(OpenLayers.Control, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/ZoomOut.js

    r7950 r8038  
     1/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD 
     2 * license.  See http://svn.openlayers.org/trunk/openlayers/license.txt for the 
     3 * full text of the license. */ 
     4 
    15/** 
    26 * @requires OpenLayers/Control.js 
     
    59/** 
    610 * Class: OpenLayers.Control.ZoomOut 
     11 * 
     12 * Inherits from: 
     13 *  - <OpenLayers.Control> 
    714 */ 
    815OpenLayers.Control.ZoomOut = OpenLayers.Class(OpenLayers.Control, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/ZoomPanel.js

    r7956 r8038  
     1/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD 
     2 * license.  See http://svn.openlayers.org/trunk/openlayers/license.txt for the 
     3 * full text of the license. */ 
     4 
    15/** 
    26 * @requires OpenLayers/Control/Panel.js 
     
    1721 * <![endif]--> 
    1822 *  
     23 * Inherits from: 
     24 *  - <OpenLayers.Control.Panel> 
    1925 */ 
    2026OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, { 
  • branches/openlayers/2.7/lib/OpenLayers/Control/ZoomToMaxExtent.js

    r7950 r8038  
    99/** 
    1010 * Class: OpenLayers.Control.ZoomToMaxExtent  
    11  * Imlements a very simple button control. Designed to be used with a  
     11 * Implements a very simple button control. Designed to be used with a  
    1212 * <OpenLayers.Control.Panel>. 
    1313 *  
  • branches/openlayers/2.7/lib/OpenLayers/Format/GML/Base.js

    r8012 r8038  
    55/** 
    66 * @requires OpenLayers/Format/XML.js 
     7 * @requires OpenLayers/Format/GML.js 
    78 */ 
    8  
    9 /** 
    10  * Eventually, this will require the OpenLayers.Format.GML.  For now, since 
    11  *     this parser can be included in a lib without the old GML parser, we 
    12  *     declare the namespace if it doesn't exist. 
    13  */ 
    14 if(!OpenLayers.Format.GML) { 
    15     OpenLayers.Format.GML = {}; 
    16 } 
    179 
    1810/** 
  • branches/openlayers/2.7/lib/OpenLayers/Format/WFS.js

    r7675 r8038  
    1010 * Class: OpenLayers.Format.WFS 
    1111 * Read/Write WFS.  
     12 * 
     13 * Inherits from: 
     14 *  - <OpenLayers.Format.GML> 
    1215 */ 
    1316OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, { 
  • branches/openlayers/2.7/lib/OpenLayers/Protocol.js

    r7883 r8038  
    1212    /** 
    1313     * Property: format 
    14      * {<OpenLayers.Format>} 
     14     * {<OpenLayers.Format>} The format used by this protocol. 
    1515     */ 
    1616    format: null, 
     
    1818    /** 
    1919     * Property: options 
    20      * Any options sent to the constructor. 
     20     * {Object} Any options sent to the constructor. 
    2121     */ 
    2222    options: null, 
  • branches/openlayers/2.7/lib/OpenLayers/Protocol/HTTP.js

    r8012 r8038  
    2020    /** 
    2121     * Property: url 
    22      * {String} - Service URL, read-only, set through the options 
     22     * {String} Service URL, read-only, set through the options 
    2323     *     passed to constructor. 
    2424     */ 
     
    2727    /** 
    2828     * Property: headers 
    29      * {Object} - HTTP request headers, read-only, set through the options 
     29     * {Object} HTTP request headers, read-only, set through the options 
    3030     *     passed to the constructor, 
    3131     *     Example: {'Content-Type': 'plain/text'} 
     
    3535    /** 
    3636     * Property: params 
    37      * {Object} - Parameters of GET requests, read-only, set through the options 
     37     * {Object} Parameters of GET requests, read-only, set through the options 
    3838     *     passed to the constructor, 
    3939     *     Example: {'bbox': '5,5,5,5'} 
     
    4343    /** 
    4444     * Property: callback 
    45      * {Object} - Function to be called when the <read>, <create>, 
     45     * {Object} Function to be called when the <read>, <create>, 
    4646     *     <update>, <delete> or <commit> operation completes, read-only, 
    4747     *     set through the options passed to the constructor. 
     
    5151    /** 
    5252     * Property: scope 
    53      * {Object} - Callback execution scope, read-only, set through the 
     53     * {Object} Callback execution scope, read-only, set through the 
    5454     *     options passed to the constructor. 
    5555     */ 
  • branches/openlayers/2.7/lib/OpenLayers/Renderer/SVG.js

    r8012 r8038  
    662662                // valid range bounds. 
    663663                if (i > 0) { 
    664                     if (this.getShortString(components[i + 1])) { 
     664                    if (this.getShortString(components[i - 1])) { 
    665665                        strings.push(this.clipLine(components[i], 
    666666                            components[i-1])); 
  • branches/openlayers/2.7/lib/OpenLayers/Strategy.js

    r7708 r8038  
    1212    /** 
    1313     * Property: layer 
    14      * {<OpenLayers.Layer.Vector>} 
     14     * {<OpenLayers.Layer.Vector>} The layer this strategy belongs to. 
    1515     */ 
    1616    layer: null, 
     
    7070 
    7171    /** 
    72      * Method: setLayer. 
     72     * Method: setLayer 
     73     * Called to set the <layer> property. 
    7374     * 
    7475     * Parameters: 
  • branches/openlayers/2.7/tests/Control/Navigation.html

    r6719 r8038  
    55 
    66    function test_Control_Navigation_constructor (t) { 
    7         t.plan( 2 ); 
     7        t.plan( 3 ); 
    88        var temp = OpenLayers.Control.prototype.initialize; 
    99        OpenLayers.Control.prototype.initialize = function() { 
     
    1313        var control = new OpenLayers.Control.Navigation(); 
    1414        t.ok( control instanceof OpenLayers.Control.Navigation, "new OpenLayers.Control returns object" ); 
     15 
     16        t.ok( !control.handleRightClicks, "'handleRightClicks' property is disabled by default"); 
    1517 
    1618        OpenLayers.Control.prototype.initialize = temp; 
  • branches/openlayers/2.7/tests/Renderer/SVG.html

    r7930 r8038  
    438438        } 
    439439         
    440         t.plan(1); 
     440        t.plan(3); 
    441441         
    442442        var r = new OpenLayers.Renderer.SVG(document.body); 
     
    449449        r.setExtent(new OpenLayers.Bounds(0, 0, 0, 0)); 
    450450 
     451        var node = document.createElement('div'); 
     452 
    451453        var geometry = new OpenLayers.Geometry.LineString([ 
    452454            new OpenLayers.Geometry.Point(0, -5000), 
     
    454456            new OpenLayers.Geometry.Point(0, 5000) 
    455457        ]); 
    456          
    457         var node = document.createElement('div'); 
    458          
    459458        r.drawLineString(node, geometry); 
    460         t.eq(node.getAttribute("points"), "0,10000,15000,2500,15000,-2500,0,-10000", "Geometry correctly clipped at inValidRange bounds"); 
     459        t.eq(node.getAttribute("points"), "0,10000,15000,2500,15000,-2500,0,-10000", "Line with 3 points correctly clipped at inValidRange bounds"); 
     460         
     461        geometry = new OpenLayers.Geometry.LineString([ 
     462            new OpenLayers.Geometry.Point(0, -5000), 
     463            new OpenLayers.Geometry.Point(10000, 0) 
     464        ]); 
     465        r.drawLineString(node, geometry); 
     466        t.eq(node.getAttribute("points"), "0,10000,15000,2500", "2-point line with 2nd point outside range correctly clipped at inValidRange bounds"); 
     467 
     468        var geometry = new OpenLayers.Geometry.LineString([ 
     469            new OpenLayers.Geometry.Point(10000, 0), 
     470            new OpenLayers.Geometry.Point(0, 5000) 
     471        ]); 
     472        r.drawLineString(node, geometry); 
     473        t.eq(node.getAttribute("points"), "15000,-2500,0,-10000", "2-point line with 1st point outside range correctly clipped at inValidRange bounds"); 
    461474    } 
    462475