Changeset 8038
- Timestamp:
- 09/19/08 12:44:44 (2 months ago)
- Files:
-
- branches/openlayers/2.7/apidoc_config/Menu.txt (modified) (11 diffs)
- branches/openlayers/2.7/doc_config/Menu.txt (modified) (11 diffs)
- branches/openlayers/2.7/lib/OpenLayers/BaseTypes.js (modified) (3 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Console.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/Attribution.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/EditingToolbar.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/MousePosition.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/Navigation.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/Pan.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Control/PanPanel.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/Scale.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Control/ZoomIn.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Control/ZoomOut.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Control/ZoomPanel.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Control/ZoomToMaxExtent.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Format/GML/Base.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Format/WFS.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Protocol.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Protocol/HTTP.js (modified) (5 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Renderer/SVG.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Strategy.js (modified) (2 diffs)
- branches/openlayers/2.7/tests/Control/Navigation.html (modified) (2 diffs)
- branches/openlayers/2.7/tests/Renderer/SVG.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.7/apidoc_config/Menu.txt
r6833 r8038 46 46 47 47 48 File: OpenLayers (OpenLayers.js)49 50 48 Group: OpenLayers { 51 49 50 File: OpenLayers (no auto-title, OpenLayers.js) 52 51 File: Ajax (no auto-title, OpenLayers/Ajax.js) 53 52 … … 77 76 File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 78 77 File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) 78 File: Measure (no auto-title, OpenLayers/Control/Measure.js) 79 79 File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) 80 80 File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js) … … 85 85 File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) 86 86 File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js) 87 File: Pan (no auto-title, OpenLayers/Control/Pan.js) 87 88 File: Panel (no auto-title, OpenLayers/Control/Panel.js) 89 File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js) 88 90 File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js) 89 91 File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js) … … 93 95 File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js) 94 96 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) 95 100 File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 96 101 } # Group: Control … … 111 116 File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js) 112 117 File: Logical (no auto-title, OpenLayers/Filter/Logical.js) 118 File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js) 113 119 } # Group: Filter 114 120 … … 116 122 117 123 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 118 132 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 119 133 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) 121 144 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 122 145 File: KML (no auto-title, OpenLayers/Format/KML.js) 123 146 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) 124 151 125 152 Group: SLD { … … 129 156 File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js) 130 157 } # 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)136 158 137 159 Group: WMC { … … 181 203 182 204 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) 188 217 } # Group: Lang 189 218 … … 201 230 File: Image (no auto-title, OpenLayers/Layer/Image.js) 202 231 File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js) 232 File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) 203 233 File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) 204 234 File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) … … 233 263 File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) 234 264 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) 237 267 } # Group: Popup 238 268 239 269 File: Projection (no auto-title, OpenLayers/Projection.js) 240 270 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 241 284 Group: Renderer { 242 285 243 286 File: Renderer (no auto-title, OpenLayers/Renderer.js) 287 File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) 244 288 File: Elements (no auto-title, OpenLayers/Renderer/Elements.js) 245 289 File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) … … 247 291 } # Group: Renderer 248 292 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 249 299 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 250 310 File: Style (no auto-title, OpenLayers/Style.js) 251 311 File: StyleMap (no auto-title, OpenLayers/StyleMap.js) branches/openlayers/2.7/doc_config/Menu.txt
r6833 r8038 46 46 47 47 48 File: OpenLayers (OpenLayers.js)49 50 48 Group: OpenLayers { 51 49 50 File: OpenLayers (no auto-title, OpenLayers.js) 52 51 File: Ajax (no auto-title, OpenLayers/Ajax.js) 53 52 … … 77 76 File: KeyboardDefaults (no auto-title, OpenLayers/Control/KeyboardDefaults.js) 78 77 File: LayerSwitcher (no auto-title, OpenLayers/Control/LayerSwitcher.js) 78 File: Measure (no auto-title, OpenLayers/Control/Measure.js) 79 79 File: ModifyFeature (no auto-title, OpenLayers/Control/ModifyFeature.js) 80 80 File: MouseDefaults (no auto-title, OpenLayers/Control/MouseDefaults.js) … … 85 85 File: NavToolbar (no auto-title, OpenLayers/Control/NavToolbar.js) 86 86 File: OverviewMap (no auto-title, OpenLayers/Control/OverviewMap.js) 87 File: Pan (no auto-title, OpenLayers/Control/Pan.js) 87 88 File: Panel (no auto-title, OpenLayers/Control/Panel.js) 89 File: PanPanel (no auto-title, OpenLayers/Control/PanPanel.js) 88 90 File: PanZoom (no auto-title, OpenLayers/Control/PanZoom.js) 89 91 File: PanZoomBar (no auto-title, OpenLayers/Control/PanZoomBar.js) … … 93 95 File: SelectFeature (no auto-title, OpenLayers/Control/SelectFeature.js) 94 96 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) 95 100 File: ZoomToMaxExtent (no auto-title, OpenLayers/Control/ZoomToMaxExtent.js) 96 101 } # Group: Control … … 111 116 File: FeatureId (no auto-title, OpenLayers/Filter/FeatureId.js) 112 117 File: Logical (no auto-title, OpenLayers/Filter/Logical.js) 118 File: Spatial (no auto-title, OpenLayers/Filter/Spatial.js) 113 119 } # Group: Filter 114 120 … … 116 122 117 123 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 118 132 File: GeoJSON (no auto-title, OpenLayers/Format/GeoJSON.js) 119 133 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) 121 144 File: JSON (no auto-title, OpenLayers/Format/JSON.js) 122 145 File: KML (no auto-title, OpenLayers/Format/KML.js) 123 146 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) 124 151 125 152 Group: SLD { … … 129 156 File: v1_0_0 (no auto-title, OpenLayers/Format/SLD/v1_0_0.js) 130 157 } # 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)136 158 137 159 Group: WMC { … … 181 203 182 204 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) 188 217 } # Group: Lang 189 218 … … 201 230 File: Image (no auto-title, OpenLayers/Layer/Image.js) 202 231 File: KaMap (no auto-title, OpenLayers/Layer/KaMap.js) 232 File: KaMapCache (no auto-title, OpenLayers/Layer/KaMapCache.js) 203 233 File: MapGuide (no auto-title, OpenLayers/Layer/MapGuide.js) 204 234 File: MapServer (no auto-title, OpenLayers/Layer/MapServer.js) … … 233 263 File: Anchored (no auto-title, OpenLayers/Popup/Anchored.js) 234 264 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) 237 267 } # Group: Popup 238 268 239 269 File: Projection (no auto-title, OpenLayers/Projection.js) 240 270 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 241 284 Group: Renderer { 242 285 243 286 File: Renderer (no auto-title, OpenLayers/Renderer.js) 287 File: Canvas (no auto-title, OpenLayers/Renderer/Canvas.js) 244 288 File: Elements (no auto-title, OpenLayers/Renderer/Elements.js) 245 289 File: SVG (no auto-title, OpenLayers/Renderer/SVG.js) … … 247 291 } # Group: Renderer 248 292 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 249 299 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 250 310 File: Style (no auto-title, OpenLayers/Style.js) 251 311 File: StyleMap (no auto-title, OpenLayers/StyleMap.js) branches/openlayers/2.7/lib/OpenLayers/BaseTypes.js
r7627 r8038 341 341 Number.prototype.limitSigDigs = function(sig) { 342 342 OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 343 {'newMethod':'OpenLayers. String.limitSigDigs'}));343 {'newMethod':'OpenLayers.Number.limitSigDigs'})); 344 344 return OpenLayers.Number.limitSigDigs(this, sig); 345 345 }; … … 410 410 Function.prototype.bind = function() { 411 411 OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 412 {'newMethod':'OpenLayers. String.bind'}));412 {'newMethod':'OpenLayers.Function.bind'})); 413 413 // new function takes the same arguments with this function up front 414 414 Array.prototype.unshift.apply(arguments, [this]); … … 431 431 Function.prototype.bindAsEventListener = function(object) { 432 432 OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated", 433 {'newMethod':'OpenLayers. String.bindAsEventListener'}));433 {'newMethod':'OpenLayers.Function.bindAsEventListener'})); 434 434 return OpenLayers.Function.bindAsEventListener(this, object); 435 435 }; branches/openlayers/2.7/lib/OpenLayers/Console.js
r7675 r8038 234 234 * OpenLayers.Console calls to the console object. 235 235 */ 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) { 240 240 OpenLayers.Util.extend(OpenLayers.Console, console); 241 241 break; branches/openlayers/2.7/lib/OpenLayers/Control/Attribution.js
r7627 r8038 11 11 * Add attribution from layers to the map display. Uses 'attribution' property 12 12 * of each layer. 13 * 14 * Inherits from: 15 * - <OpenLayers.Control> 13 16 */ 14 17 OpenLayers.Control.Attribution = branches/openlayers/2.7/lib/OpenLayers/Control/EditingToolbar.js
r7627 r8038 14 14 /** 15 15 * Class: OpenLayers.Control.EditingToolbar 16 * 17 * Inherits from: 18 * - <OpenLayers.Control.Panel> 16 19 */ 17 20 OpenLayers.Control.EditingToolbar = OpenLayers.Class( branches/openlayers/2.7/lib/OpenLayers/Control/MousePosition.js
r7163 r8038 10 10 /** 11 11 * Class: OpenLayers.Control.MousePosition 12 * 13 * Inherits from: 14 * - <OpenLayers.Control> 12 15 */ 13 16 OpenLayers.Control.MousePosition = OpenLayers.Class(OpenLayers.Control, { branches/openlayers/2.7/lib/OpenLayers/Control/Navigation.js
r7872 r8038 53 53 * {Boolean} Whether or not to handle right clicks. Default is false. 54 54 */ 55 handleRightClicks: true,55 handleRightClicks: false, 56 56 57 57 /** 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 1 5 /** 2 6 * @requires OpenLayers/Control.js … … 5 9 /** 6 10 * Class: OpenLayers.Control.Pan 11 * 12 * Inherits from: 13 * - <OpenLayers.Control> 7 14 */ 8 15 OpenLayers.Control.Pan = OpenLayers.Class(OpenLayers.Control, { branches/openlayers/2.7/lib/OpenLayers/Control/PanPanel.js
r7956 r8038 14 14 * <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" /> 15 15 * <![endif]--> 16 * 16 * 17 * Inherits from: 18 * - <OpenLayers.Control.Panel> 17 19 */ 18 20 OpenLayers.Control.PanPanel = OpenLayers.Class(OpenLayers.Control.Panel, { branches/openlayers/2.7/lib/OpenLayers/Control/Scale.js
r6727 r8038 11 11 * Class: OpenLayers.Control.Scale 12 12 * Display a small scale indicator on the map. 13 * 13 14 * Inherits from: 14 15 * - <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 1 5 /** 2 6 * @requires OpenLayers/Control.js … … 5 9 /** 6 10 * Class: OpenLayers.Control.ZoomIn 11 * 12 * Inherits from: 13 * - <OpenLayers.Control> 7 14 */ 8 15 OpenLayers.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 1 5 /** 2 6 * @requires OpenLayers/Control.js … … 5 9 /** 6 10 * Class: OpenLayers.Control.ZoomOut 11 * 12 * Inherits from: 13 * - <OpenLayers.Control> 7 14 */ 8 15 OpenLayers.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 1 5 /** 2 6 * @requires OpenLayers/Control/Panel.js … … 17 21 * <![endif]--> 18 22 * 23 * Inherits from: 24 * - <OpenLayers.Control.Panel> 19 25 */ 20 26 OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, { branches/openlayers/2.7/lib/OpenLayers/Control/ZoomToMaxExtent.js
r7950 r8038 9 9 /** 10 10 * Class: OpenLayers.Control.ZoomToMaxExtent 11 * Im lements a very simple button control. Designed to be used with a11 * Implements a very simple button control. Designed to be used with a 12 12 * <OpenLayers.Control.Panel>. 13 13 * branches/openlayers/2.7/lib/OpenLayers/Format/GML/Base.js
r8012 r8038 5 5 /** 6 6 * @requires OpenLayers/Format/XML.js 7 * @requires OpenLayers/Format/GML.js 7 8 */ 8 9 /**10 * Eventually, this will require the OpenLayers.Format.GML. For now, since11 * this parser can be included in a lib without the old GML parser, we12 * declare the namespace if it doesn't exist.13 */14 if(!OpenLayers.Format.GML) {15 OpenLayers.Format.GML = {};16 }17 9 18 10 /** branches/openlayers/2.7/lib/OpenLayers/Format/WFS.js
r7675 r8038 10 10 * Class: OpenLayers.Format.WFS 11 11 * Read/Write WFS. 12 * 13 * Inherits from: 14 * - <OpenLayers.Format.GML> 12 15 */ 13 16 OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, { branches/openlayers/2.7/lib/OpenLayers/Protocol.js
r7883 r8038 12 12 /** 13 13 * Property: format 14 * {<OpenLayers.Format>} 14 * {<OpenLayers.Format>} The format used by this protocol. 15 15 */ 16 16 format: null, … … 18 18 /** 19 19 * Property: options 20 * Any options sent to the constructor.20 * {Object} Any options sent to the constructor. 21 21 */ 22 22 options: null, branches/openlayers/2.7/lib/OpenLayers/Protocol/HTTP.js
r8012 r8038 20 20 /** 21 21 * Property: url 22 * {String} -Service URL, read-only, set through the options22 * {String} Service URL, read-only, set through the options 23 23 * passed to constructor. 24 24 */ … … 27 27 /** 28 28 * Property: headers 29 * {Object} -HTTP request headers, read-only, set through the options29 * {Object} HTTP request headers, read-only, set through the options 30 30 * passed to the constructor, 31 31 * Example: {'Content-Type': 'plain/text'} … … 35 35 /** 36 36 * Property: params 37 * {Object} -Parameters of GET requests, read-only, set through the options37 * {Object} Parameters of GET requests, read-only, set through the options 38 38 * passed to the constructor, 39 39 * Example: {'bbox': '5,5,5,5'} … … 43 43 /** 44 44 * Property: callback 45 * {Object} -Function to be called when the <read>, <create>,45 * {Object} Function to be called when the <read>, <create>, 46 46 * <update>, <delete> or <commit> operation completes, read-only, 47 47 * set through the options passed to the constructor. … … 51 51 /** 52 52 * Property: scope 53 * {Object} -Callback execution scope, read-only, set through the53 * {Object} Callback execution scope, read-only, set through the 54 54 * options passed to the constructor. 55 55 */ branches/openlayers/2.7/lib/OpenLayers/Renderer/SVG.js
r8012 r8038 662 662 // valid range bounds. 663 663 if (i > 0) { 664 if (this.getShortString(components[i +1])) {664 if (this.getShortString(components[i - 1])) { 665 665 strings.push(this.clipLine(components[i], 666 666 components[i-1])); branches/openlayers/2.7/lib/OpenLayers/Strategy.js
r7708 r8038 12 12 /** 13 13 * Property: layer 14 * {<OpenLayers.Layer.Vector>} 14 * {<OpenLayers.Layer.Vector>} The layer this strategy belongs to. 15 15 */ 16 16 layer: null, … … 70 70 71 71 /** 72 * Method: setLayer. 72 * Method: setLayer 73 * Called to set the <layer> property. 73 74 * 74 75 * Parameters: branches/openlayers/2.7/tests/Control/Navigation.html
r6719 r8038 5 5 6 6 function test_Control_Navigation_constructor (t) { 7 t.plan( 2);7 t.plan( 3 ); 8 8 var temp = OpenLayers.Control.prototype.initialize; 9 9 OpenLayers.Control.prototype.initialize = function() { … … 13 13 var control = new OpenLayers.Control.Navigation(); 14 14 t.ok( control instanceof OpenLayers.Control.Navigation, "new OpenLayers.Control returns object" ); 15 16 t.ok( !control.handleRightClicks, "'handleRightClicks' property is disabled by default"); 15 17 16 18 OpenLayers.Control.prototype.initialize = temp; branches/openlayers/2.7/tests/Renderer/SVG.html
r7930 r8038 438 438 } 439 439 440 t.plan( 1);440 t.plan(3); 441 441 442 442 var r = new OpenLayers.Renderer.SVG(document.body); … … 449 449 r.setExtent(new OpenLayers.Bounds(0, 0, 0, 0)); 450 450 451 var node = document.createElement('div'); 452 451 453 var geometry = new OpenLayers.Geometry.LineString([ 452 454 new OpenLayers.Geometry.Point(0, -5000), … … 454 456 new OpenLayers.Geometry.Point(0, 5000) 455 457 ]); 456 457 var node = document.createElement('div');458 459 458 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"); 461 474 } 462 475
