Changeset 1639
- Timestamp:
- 10/06/06 00:03:58 (2 years ago)
- Files:
-
- trunk/openlayers/doc/customization (copied) (copied from sandbox/crschmidt/skinning/openlayers/doc/customization)
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (3 diffs)
- trunk/openlayers/tests/test_Map.html (modified) (1 diff)
- trunk/openlayers/theme (copied) (copied from sandbox/crschmidt/skinning/openlayers/theme)
- trunk/openlayers/theme/default (copied) (copied from sandbox/crschmidt/skinning/openlayers/theme/default)
- trunk/openlayers/theme/default/img (copied) (copied from sandbox/crschmidt/skinning/openlayers/theme/default/img)
- trunk/openlayers/theme/default/style.css (copied) (copied from sandbox/crschmidt/skinning/openlayers/theme/default/style.css)
- trunk/openlayers/tools/release.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r1634 r1639 112 112 numZoomLevels: 16, 113 113 114 /** @type string */ 115 theme: null, 114 116 115 117 /** … … 159 161 //set the default options 160 162 this.setOptions(options); 163 164 var cssNode = document.createElement('link'); 165 cssNode.setAttribute('rel', 'stylesheet'); 166 cssNode.setAttribute('type', 'text/css'); 167 cssNode.setAttribute('href', this.theme); 168 document.getElementsByTagName('head')[0].appendChild(cssNode); 161 169 162 170 this.layers = []; … … 217 225 218 226 this.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90); 227 228 this.theme = OpenLayers._getScriptLocation() + 229 'theme/default/style.css'; 219 230 220 231 // now add the options declared by the user trunk/openlayers/tests/test_Map.html
r1604 r1639 64 64 function test_04_Map_options(t) { 65 65 t.plan(2); 66 map = new OpenLayers.Map($('map'), {numZoomLevels: 6, maxResolution: 3.14159 });66 map = new OpenLayers.Map($('map'), {numZoomLevels: 6, maxResolution: 3.14159, theme: 'foo'}); 67 67 t.eq( map.numZoomLevels, 6, "map.numZoomLevels set correctly via options hashtable" ); 68 68 t.eq( map.maxResolution, 3.14159, "map.maxResolution set correctly via options hashtable" ); 69 t.eq( map.theme, 'foo', "map theme set correctly." ); 69 70 } 70 71 function test_05_Map_center(t) { trunk/openlayers/tools/release.sh
r1515 r1639 9 9 cd .. 10 10 cp -a img/ /www/openlayers/htdocs/api/$VERSION 11 cp -a theme/ /www/openlayers/htdocs/api/$VERSION 11 12 rm tools/*.pyc 12 13 cd ..
