Changeset 7975
- Timestamp:
- 09/07/08 10:02:25 (3 months ago)
- Files:
-
- branches/openlayers/2.7/lib/OpenLayers/Filter/Comparison.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Format/Filter/v1.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Format/GPX.js (modified) (2 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Handler/Box.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Layer/FixedZoomLevels.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Renderer/VML.js (modified) (3 diffs)
- branches/openlayers/2.7/lib/OpenLayers/Request.js (modified) (1 diff)
- branches/openlayers/2.7/lib/OpenLayers/Util.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/openlayers/2.7/lib/OpenLayers/Filter/Comparison.js
r7866 r7975 145 145 146 146 this.value = this.value.replace( 147 new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1") 147 new RegExp("\\"+escapeChar+"(.|$)", "g"), "\\$1"); 148 148 this.value = this.value.replace( 149 149 new RegExp("\\"+singleChar, "g"), "."); branches/openlayers/2.7/lib/OpenLayers/Format/Filter/v1.js
r7951 r7975 60 60 */ 61 61 read: function(data) { 62 var obj = {} 62 var obj = {}; 63 63 var filter = this.readers.ogc["Filter"].apply(this, [data, obj]); 64 64 return obj.filter; branches/openlayers/2.7/lib/OpenLayers/Format/GPX.js
r7627 r7975 87 87 for (var i=0, len=tracks.length; i<len; i++) { 88 88 // Attributes are only in trk nodes, not trkseg nodes 89 var attrs = {} 89 var attrs = {}; 90 90 if(this.extractAttributes) { 91 91 attrs = this.parseAttributes(tracks[i]); … … 105 105 var routes = doc.getElementsByTagName("rte"); 106 106 for (var k=0, klen=routes.length; k<klen; k++) { 107 var attrs = {} 107 var attrs = {}; 108 108 if(this.extractAttributes) { 109 109 attrs = this.parseAttributes(routes[k]); branches/openlayers/2.7/lib/OpenLayers/Handler/Box.js
r7649 r7975 189 189 yOffset: yOffset, 190 190 newBoxModel: newBoxModel 191 } 191 }; 192 192 } 193 193 return this.boxCharacteristics; branches/openlayers/2.7/lib/OpenLayers/Layer/FixedZoomLevels.js
r7948 r7975 160 160 // set on either the layer or the map. So we just use the 161 161 // maximum limit as calculated by the layer's constants. 162 this.numZoomLevels = limitZoomLevels 162 this.numZoomLevels = limitZoomLevels; 163 163 } 164 164 branches/openlayers/2.7/lib/OpenLayers/Renderer/VML.js
r7930 r7975 340 340 style.graphicWidth = size * aspectRatio; 341 341 style.graphicHeight = size; 342 this.graphicRotate(node, xOffset, yOffset) 342 this.graphicRotate(node, xOffset, yOffset); 343 343 } 344 344 }, this); … … 386 386 "progid:DXImageTransform.Microsoft.Matrix(M11=" + costheta + 387 387 ",M12=" + (-sintheta) + ",M21=" + sintheta + ",M22=" + costheta + 388 ",SizingMethod='auto expand')\n" 388 ",SizingMethod='auto expand')\n"; 389 389 390 390 // set the opacity (needed for the imagedata) … … 494 494 } else if (parts.length == 4) { 495 495 return (1*parts[0] >= 2*parts[1]) ? "longdashdot" : 496 "dashdot" 496 "dashdot"; 497 497 } 498 498 return "solid"; branches/openlayers/2.7/lib/OpenLayers/Request.js
r7609 r7975 133 133 } 134 134 } 135 } 135 }; 136 136 137 137 // send request (optionally with data) and return branches/openlayers/2.7/lib/OpenLayers/Util.js
r7943 r7975 374 374 } 375 375 } 376 var guess = Math.floor(urls.length * Math.random()) 376 var guess = Math.floor(urls.length * Math.random()); 377 377 var new_url = urls[guess]; 378 378 k = 0; 379 379 while(new_url == current_url && k++ < 4){ 380 guess = Math.floor(urls.length * Math.random()) 380 guess = Math.floor(urls.length * Math.random()); 381 381 new_url = urls[guess]; 382 382 } … … 1398 1398 container.style.width = w + "px"; 1399 1399 } else if (size.h) { 1400 h = size.h 1400 h = size.h; 1401 1401 container.style.height = h + "px"; 1402 1402 }
