Changeset 788
- Timestamp:
- 06/27/06 00:40:52 (2 years ago)
- Files:
-
- trunk/openlayers/doc/authors.txt (modified) (1 diff)
- trunk/openlayers/examples/ciesin.html (modified) (2 diffs)
- trunk/openlayers/examples/click.html (modified) (2 diffs)
- trunk/openlayers/examples/controls.html (modified) (2 diffs)
- trunk/openlayers/examples/example.html (modified) (2 diffs)
- trunk/openlayers/examples/google.html (modified) (1 diff)
- trunk/openlayers/examples/markerResize.html (modified) (2 diffs)
- trunk/openlayers/examples/markers.html (modified) (2 diffs)
- trunk/openlayers/examples/markersTextLayer.html (modified) (2 diffs)
- trunk/openlayers/examples/markerss.html (modified) (2 diffs)
- trunk/openlayers/examples/mvs.html (modified) (4 diffs)
- trunk/openlayers/examples/notile.html (modified) (2 diffs)
- trunk/openlayers/examples/popups.html (modified) (2 diffs)
- trunk/openlayers/examples/tiger.html (modified) (1 diff)
- trunk/openlayers/examples/ve.html (modified) (1 diff)
- trunk/openlayers/examples/wfs.html (modified) (3 diffs)
- trunk/openlayers/examples/yahoo.html (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Ajax.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Control/MouseDefaults.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Control/MouseToolbar.js (modified) (4 diffs)
- trunk/openlayers/lib/OpenLayers/Control/PanZoom.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js (modified) (3 diffs)
- trunk/openlayers/lib/OpenLayers/Feature/WFS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Layer/WFS.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Popup/AnchoredBubble.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Tile/Image.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Tile/WFS.js (modified) (1 diff)
- trunk/openlayers/tests/test_Control_PanZoom.html (modified) (2 diffs)
- trunk/openlayers/tests/test_Map.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/doc/authors.txt
r716 r788 7 7 Schuyler Erle 8 8 9 Patch contributors 10 ------------------ 11 Corey Puffault 12 9 13 OpenLayers is graciously supported by MetaCarta, Inc. 10 14 <http://www.metacarta.com>. trunk/openlayers/examples/ciesin.html
r583 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 28 28 map.addLayers([ol_wms, jpl_wms, cie_wms]); 29 29 map.addControl(new OpenLayers.Control.LayerSwitcher()); 30 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 30 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 31 map.zoomToFullExtent(); 31 32 } 32 33 // --> trunk/openlayers/examples/click.html
r630 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 25 25 map.addLayers([ol_wms, jpl_wms]); 26 26 map.addControl(new OpenLayers.Control.LayerSwitcher()); 27 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 27 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 28 map.zoomToFullExtent(); 28 29 map.events.register("click", map, function(e) { 29 30 var lonlat = map.getLonLatFromViewPortPx(e.xy); trunk/openlayers/examples/controls.html
r562 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 35 35 map.addControl(new OpenLayers.Control.MouseToolbar()); 36 36 map.addControl(new OpenLayers.Control.LayerSwitcher()); 37 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 37 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 38 map.zoomToFullExtent(); 38 39 } 39 40 // --> trunk/openlayers/examples/example.html
r562 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 32 32 map.addLayers([ol_wms, jpl_wms, dm_wms]); 33 33 map.addControl(new OpenLayers.Control.LayerSwitcher()); 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0); 34 // map.setCenter(new OpenLayers.LonLat(0, 0), 0); 35 map.zoomToFullExtent(); 35 36 } 36 37 // --> trunk/openlayers/examples/google.html
r610 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 background-color: red; trunk/openlayers/examples/markerResize.html
r562 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 26 26 size = new OpenLayers.Size(50,50); 27 27 calculateOffset = function(size) { 28 return new OpenLayers.Pixel(-(size.w/2), -size.h); 29 }; 30 icon = new OpenLayers.Icon('http://boston.openguides.org/markers/AQUA.png',size,null, calculateOffset); 31 markers.addMarker(new OpenLayers.Marker(new OpenLayers.LonLat(-180,90), 32 icon)); 28 return new OpenLayers.Pixel(-(size.w/2), -size.h); }; 29 icon = new OpenLayers.Icon( 30 'http://boston.openguides.org/markers/AQUA.png', 31 size, null, calculateOffset); 32 markers.addMarker( 33 new OpenLayers.Marker(new OpenLayers.LonLat(-180,90), icon)); 33 34 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0);35 35 map.addControl(new OpenLayers.Control.LayerSwitcher()); 36 map.zoomToFullExtent(); 36 37 } 37 38 trunk/openlayers/examples/markers.html
r562 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 32 32 marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); Event.stop(evt); }); 33 33 markers.addMarker(marker); 34 map.setCenter(new OpenLayers.LonLat(0, 0), 0);35 34 map.addControl(new OpenLayers.Control.LayerSwitcher()); 35 map.zoomToFullExtent(); 36 36 } 37 37 // --> trunk/openlayers/examples/markersTextLayer.html
r562 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 24 24 map.addLayer(newl); 25 25 26 map.setCenter(new OpenLayers.LonLat(0, 0), 0);27 26 map.addControl(new OpenLayers.Control.LayerSwitcher()); 27 map.zoomToFullExtent(); 28 28 } 29 29 // --> trunk/openlayers/examples/markerss.html
r630 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 35 35 map.addLayer(markers); 36 36 37 map.setCenter(new OpenLayers.LonLat(0, 0), 0);38 37 map.addControl(new OpenLayers.Control.LayerSwitcher()); 38 map.zoomToFullExtent(); 39 39 } 40 40 trunk/openlayers/examples/mvs.html
r562 r788 12 12 <head> 13 13 14 <script src=" ../lib/OpenLayers.js"></script>14 <script src="http://openlayers.org/dev/lib/OpenLayers.js"></script> 15 15 16 16 <script> … … 49 49 theArgs.zoom = "0"; 50 50 theArgs.data = "textfile.txt"; 51 theArgs.controls = ['panzoom','mouse'];52 theArgs.layers = ['openlayers', 'nasa'];53 51 } 54 52 … … 61 59 var DEFAULT_LON = 0; 62 60 var DEFAULT_ZOOM_LEVEL = 0; 63 var DEFAULT_CONTROLS = ['panzoom','mouse']; 64 var DEFAULT_LAYERS = ['openlayers', 'nasa']; 65 61 66 62 var IDX_LAT = 0; 67 63 var IDX_LON = 1; … … 74 70 75 71 safeArgs.zoom = theArgs.zoom ? parseInt(theArgs.zoom) : DEFAULT_ZOOM_LEVEL; 76 77 safeArgs.controls = theArgs.controls ?78 theArgs.controls.split(",") : DEFAULT_CONTROLS;79 80 safeArgs.controls = theArgs.controls ?81 theArgs.controls.split(",") : DEFAULT_CONTROLS;82 72 83 safeArgs.layers = theArgs.layers ?84 theArgs.layers.split(",") : DEFAULT_LAYERS;85 86 73 safeArgs.data = theArgs.data; // TODO: Make this "safe". 87 74 88 75 // ----- 89 var theMVS = new OpenLayers.Map($('map'), {controls: []}); 90 for(var i = 0; i < safeArgs.controls.length; i++) { 91 switch(safeArgs.controls[i]) { 92 case 'panzoombar': 93 theMVS.addControl(new OpenLayers.Control.PanZoomBar()); 94 break; 95 case 'panzoom': 96 theMVS.addControl(new OpenLayers.Control.PanZoom()); 97 break; 98 case 'layerswitcher': 99 theMVS.addControl(new OpenLayers.Control.LayerSwitcher()); 100 break; 101 case 'mouse': 102 theMVS.addControl(new OpenLayers.Control.MouseDefaults()); 103 break; 104 } 105 } 106 for(var i = 0; i < safeArgs.layers.length; i++) { 107 switch(safeArgs.layers[i]) { 108 case 'openlayers': 109 theMVS.addLayer( 110 new OpenLayers.Layer.WMS( "OpenLayers WMS", 111 "http://labs.metacarta.com/wms/vmap0", 112 {layers: 'basic'} ) 113 ); 114 break; 115 case 'nasa': 116 theMVS.addLayer( 117 new OpenLayers.Layer.WMS("NASA Mosaic", 118 "http://wms.jpl.nasa.gov/wms.cgi", 119 {"EXCEPTIONS" : "application/vnd.ogc.se_inimage", 120 "format" : "image/jpeg", 121 layers:"modis,global_mosaic"} 122 )); 123 break; 124 } 125 } 126 theMVS.setCenter(new OpenLayers.LonLat(safeArgs.centerLon, safeArgs.centerLat), safeArgs.zoom); 76 var theMVS = new OpenLayers.Map('map', {maxResolution: 'auto'}); 77 theMVS.addLayer( 78 new OpenLayers.Layer.WMS("OpenLayers WMS", 79 "http://labs.metacarta.com/wms/vmap0?", 80 {layers: 'basic'} 81 )); 82 83 /* not yet..... 84 85 theMVS.addLayer( 86 new OpenLayers.Layer.WMS("NASA Mosaic", 87 "http://wms.jpl.nasa.gov/wms.cgi", 88 {"EXCEPTIONS" : "application/vnd.ogc.se_inimage", 89 "format" : "image/jpeg", 90 layers:"modis,global_mosaic"} 91 )); 92 */ 93 theMVS.setCenter( 94 new OpenLayers.LonLat(safeArgs.centerLon, safeArgs.centerLat), 95 safeArgs.zoom); 127 96 128 97 if (safeArgs.data) { trunk/openlayers/examples/notile.html
r675 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } … … 12 12 <!-- 13 13 function init(){ 14 var map = new OpenLayers.Map('map' );14 var map = new OpenLayers.Map('map', {maxResolution: 'auto'}); 15 15 16 16 var ol_wms = new OpenLayers.Layer.WMS.Untiled( "OpenLayers WMS", trunk/openlayers/examples/popups.html
r562 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 21 21 map.addLayer(layer); 22 22 23 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS2",24 "http://octo.metacarta.com/cgi-bin/mapserv",25 {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'} );26 27 map.addLayer(layer);28 29 map.setCenter(new OpenLayers.LonLat(0, 0), 0);30 23 map.addControl(new OpenLayers.Control.LayerSwitcher()); 24 map.zoomToFullExtent(); 31 25 } 32 26 trunk/openlayers/examples/tiger.html
r764 r788 3 3 <style type="text/css"> 4 4 #map { 5 width: 800px;6 height: 475px;5 width: 512px; 6 height: 512px; 7 7 border: 1px solid black; 8 8 } trunk/openlayers/examples/ve.html
r592 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } trunk/openlayers/examples/wfs.html
r586 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } … … 15 15 16 16 function init(){ 17 OpenLayers.ProxyHost = '/dev/examples/proxy.cgi?url=';18 17 map = new OpenLayers.Map('map'); 19 18 layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", … … 21 20 map.addLayer(layer); 22 21 23 layer = new OpenLayers.Layer.WFS( "O penLayers WFS",24 "http:// labs.metacarta.com/search/WFS?",25 { q: 'dolphins', maxfeatures: 10} );26 22 layer = new OpenLayers.Layer.WFS( "Owl Survey", 23 "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?", 24 {typename: "OWLS", maxfeatures: 10}, 25 OpenLayers.Feature.WFS ); 27 26 map.addLayer(layer); 28 29 map.setCenter(new OpenLayers.LonLat(0, 0), 0);30 27 map.addControl(new OpenLayers.Control.LayerSwitcher()); 28 map.setCenter(new OpenLayers.LonLat(-100, 60), 3); 31 29 } 32 30 // --> trunk/openlayers/examples/yahoo.html
r614 r788 4 4 <style type="text/css"> 5 5 #map { 6 width: 800px;7 height: 475px;6 width: 512px; 7 height: 512px; 8 8 border: 1px solid black; 9 9 } trunk/openlayers/lib/OpenLayers.js
r778 r788 7 7 8 8 OpenLayers = new Object(); 9 OpenLayers._scriptName = "lib/OpenLayers.js"; 9 10 OpenLayers._scriptName = ( 11 typeof(_OPENLAYERS_SFL_) == "undefined" ? "lib/OpenLayers.js" 12 : "OpenLayers.js" ); 13 10 14 OpenLayers._getScriptLocation = function () { 11 15 var scriptLocation = ""; trunk/openlayers/lib/OpenLayers/Ajax.js
r657 r788 3 3 * text of the license. */ 4 4 5 OpenLayers.ProxyHost = "/ viewer/Crossbrowser/blindproxy.py?url=";5 OpenLayers.ProxyHost = "/proxy/?url="; 6 6 //OpenLayers.ProxyHost = "examples/proxy.cgi?url="; 7 7 … … 52 52 if (OpenLayers.ProxyHost && uri.startsWith("http")) { 53 53 uri = OpenLayers.ProxyHost + escape(uri); 54 55 if (!params) {56 params="";57 }58 params += "&cachehack=" + new Date().getTime();59 54 } 60 55 trunk/openlayers/lib/OpenLayers/Control/LayerSwitcher.js
r657 r788 144 144 backdropLabelOuter.style.marginBottom = "4px"; 145 145 146 this._setEventHandlers(backdropLabelOuter); 147 146 148 // Inner Label - for Rico Corners 147 149 // … … 192 194 193 195 // We only want to respond to a mousedown event. 194 element.onclick = this.ignoreEvent.bindAsEventListener(this); 195 element.ondblclick = this.ignoreEvent.bindAsEventListener(this); 196 element.onmousedown = this.singleClick.bindAsEventListener(this); 196 element.onclick = this.singleClick.bindAsEventListener(this); 197 element.ondblclick = this.singleClick.bindAsEventListener(this); 198 element.onmouseup = this.ignoreEvent.bindAsEventListener(this); 199 element.onmousedown = this.ignoreEvent.bindAsEventListener(this); 197 200 198 201 // If we are operating on a corner span we need to store a trunk/openlayers/lib/OpenLayers/Control/MouseDefaults.js
r680 r788 23 23 24 24 defaultClick: function (evt) { 25 if (!Event.isLeftClick(evt)) return; 25 26 var notAfterDrag = !this.performedDrag; 26 27 this.performedDrag = false; … … 40 41 */ 41 42 defaultMouseDown: function (evt) { 43 if (!Event.isLeftClick(evt)) return; 42 44 this.mouseDragStart = evt.xy.copyOf(); 43 45 this.performedDrag = false; … … 95 97 */ 96 98 defaultMouseUp: function (evt) { 99 if (!Event.isLeftClick(evt)) return; 97 100 if (this.zoomBox) { 98 101 var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); trunk/openlayers/lib/OpenLayers/Control/MouseToolbar.js
r680 r788 64 64 btn.events = new OpenLayers.Events(this, btn); 65 65 btn.events.register("mousedown", this, this.buttonClick); 66 btn.events.register("mouseup", this, this.stopAction);66 btn.events.register("mouseup", this, Event.stop); 67 67 btn.action = id; 68 68 btn.title = title; … … 75 75 }, 76 76 77 stopAction: function(evt) {78 Event.stop(evt);79 },80 81 77 buttonClick: function(evt) { 78 if (!Event.isLeftClick(evt)) return; 82 79 this.switchModeTo(evt.div.action); 83 80 Event.stop(evt); … … 97 94 */ 98 95 defaultMouseDown: function (evt) { 96 if (!Event.isLeftClick(evt)) return; 99 97 this.mouseDragStart = evt.xy.copyOf(); 100 98 if (evt.shiftKey && this.mode !="zoombox") { … … 227 225 */ 228 226 defaultMouseUp: function (evt) { 227 if (!Event.isLeftClick(evt)) return; 229 228 switch (this.mode) { 230 229 case "zoombox": trunk/openlayers/lib/OpenLayers/Control/PanZoom.js
r663 r788 112 112 */ 113 113 buttonDown: function (evt) { 114 if (!Event.isLeftClick(evt)) return; 114 115 115 116 var slide = this.map.getResolution() * this.slideFactor; trunk/openlayers/lib/OpenLayers/Control/PanZoomBar.js
r657 r788 128 128 */ 129 129 divClick: function (evt) { 130 if (!Event.isLeftClick(evt)) return; 130 131 var y = evt.xy.y; 131 132 var top = Position.page(evt.object)[1]; … … 140 141 */ 141 142 zoomBarDown:function(evt) { 143 if (!Event.isLeftClick(evt)) return; 142 144 this.map.events.register("mousemove", this, this.passEventToSlider); 143 145 this.map.events.register("mouseup", this, this.passEventToSlider); … … 174 176 */ 175 177 zoomBarUp:function(evt) { 178 if (!Event.isLeftClick(evt)) return; 176 179 if (this.zoomStart) { 177 180 this.div.style.cursor="default"; trunk/openlayers/lib/OpenLayers/Feature/WFS.js
r657 r788 44 44 processXMLNode: function(xmlNode) { 45 45 //this should be overridden by subclasses 46 // must return an Object with 'id' and 'lonlat' values set 47 var point = xmlNode.getElementsByTagName("Point"); 48 var text = point[0].textContent; 49 var floats = text.split(","); 46 50 47 // must return an Object with 'id' and 'lonlat' values set 51 return {lonlat: new OpenLayers.LonLat(parseFloat(floats[0]), 52 parseFloat(floats[1])), 53 id: null}; 54 48 55 }, 49 56 trunk/openlayers/lib/OpenLayers/Layer/WFS.js
r657 r788 13 13 14 14 /** @type Object */ 15 featureClass: null,15 featureClass: OpenLayers.Feature.WFS, 16 16 17 17 /** @final @type hash */ … … 31 31 */ 32 32 initialize: function(name, url, params, featureClass) { 33 this.featureClass = featureClass;33 if (featureClass != null) this.featureClass = featureClass; 34 34 35 35 var newArguments = new Array(); trunk/openlayers/lib/OpenLayers/Map.js
r674 r788 546 546 zoomToFullExtent: function() { 547 547 var fullExtent = this.getFullExtent(); 548 var oldZoom = this.zoom;549 548 this.setCenter( 550 549 new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2, 551 550 (fullExtent.bottom+fullExtent.top)/2), 552 0553 );551 this.getZoomForExtent(fullExtent) 552 ); 554 553 }, 555 554 trunk/openlayers/lib/OpenLayers/Popup/AnchoredBubble.js
r657 r788 52 52 this.contentDiv = OpenLayers.Util.createDiv(id, null, contentSize, 53 53 null, "relative", null, 54 " none");54 "hidden"); 55 55 this.div.appendChild(this.contentDiv); 56 56 this.setContentHTML(); trunk/openlayers/lib/OpenLayers/Tile/Image.js
r681 r788 37 37 */ 38 38 draw:function(transparent) { 39 if (transparent) { 39 if (false) { // don't actually use the alpha PNG hack right now 40 // it has a fiercely bad effect on IE6's performance 41 // if (transparent) { 40 42 this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, 41 43 this.position, trunk/openlayers/lib/OpenLayers/Tile/WFS.js
r657 r788 80 80 } 81 81 82 var resultFeatures = OpenLayers.Util.getNodes(doc, "gml:featureMember");82 var resultFeatures = doc.getElementsByTagName("featureMember"); 83 83 84 84 //clear old featureList trunk/openlayers/tests/test_Control_PanZoom.html
r658 r788 29 29 function test_03_Control_PanZoom_control_events (t) { 30 30 t.plan( 7 ); 31 var evt = new Object();31 var evt = {which: 1}; // control expects left-click 32 32 map = new OpenLayers.Map('map'); 33 33 control = new OpenLayers.Control.PanZoom(); 34 34 map.addControl(control, 35 35 new OpenLayers.Pixel(20,20)); 36 map.setCenter(new OpenLayers.LonLat(0,0), 0);36 map.setCenter(new OpenLayers.LonLat(0,0), 4); 37 37 var res = map.getResolution(); 38 38 control.buttons[0].onmousedown(evt); … … 46 46 control.buttons[4].onmousedown(evt); 47 47 control.buttons[4].onmousedown(evt); 48 t.eq( map.getZoom(), 2, "zoomin workds correctly" );48 t.eq( map.getZoom(), 6, "zoomin works correctly" ); 49 49 control.buttons[6].onmousedown(evt); 50 t.eq( map.getZoom(), 1, "zoomout workds correctly" );50 t.eq( map.getZoom(), 5, "zoomout works correctly" ); 51 51 control.buttons[4].onmousedown(evt); 52 52 control.buttons[5].onmousedown(evt); 53 t.eq( map.getZoom(), 0, "zoomworld workds correctly" );53 t.eq( map.getZoom(), 2, "zoomworld works correctly" ); 54 54 55 55 } trunk/openlayers/tests/test_Map.html
r663 r788 72 72 t.eq( map.getZoom(), 5, "map.zoom is correct after calling zoomTo" ); 73 73 map.zoomToFullExtent(); 74 t.eq( map.getZoom(), 0, "map.zoom is correct after calling zoomToFullExtent" );74 t.eq( map.getZoom(), 2, "map.zoom is correct after calling zoomToFullExtent" ); 75 75 var lonlat = map.getCenter(); 76 76 var zero = new OpenLayers.LonLat(0, 0);
