Ticket #966: attribution_default.patch
| File attribution_default.patch, 1.6 kB (added by crschmidt, 10 months ago) |
|---|
-
tests/test_Map.html
old new 7 7 var map; 8 8 9 9 function test_01_Map_constructor (t) { 10 t.plan( 9);10 t.plan( 10 ); 11 11 12 12 map = new OpenLayers.Map('map'); 13 13 var baseLayer = new OpenLayers.Layer.WMS("Test Layer", … … 27 27 } 28 28 t.ok( map.layers instanceof Array, "map.layers is an Array" ); 29 29 t.ok( map.controls instanceof Array, "map.controls is an Array" ); 30 t.eq( map.controls.length, 4, "Default map has 4 controls." ); 30 31 t.ok( map.events instanceof OpenLayers.Events, "map.events is an OpenLayers.Events" ); 31 32 t.ok( map.getMaxExtent() instanceof OpenLayers.Bounds, "map.maxExtent is an OpenLayers.Bounds" ); 32 33 t.ok( map.getNumZoomLevels() > 0, "map has a default numZoomLevels" ); -
lib/OpenLayers/Map.js
old new 330 330 if (OpenLayers.Control != null) { // running full or lite? 331 331 this.controls = [ new OpenLayers.Control.Navigation(), 332 332 new OpenLayers.Control.PanZoom(), 333 new OpenLayers.Control.ArgParser() 333 new OpenLayers.Control.ArgParser(), 334 new OpenLayers.Control.Attribution() 334 335 ]; 335 336 } else { 336 337 this.controls = [];
