set the options *after* the call to updateSize() has been made
git-svn-id: http://svn.openlayers.org/trunk/openlayers@809 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -113,8 +113,6 @@ OpenLayers.Map.prototype = {
|
||||
*/
|
||||
initialize: function (div, options) {
|
||||
|
||||
this.setOptions(options);
|
||||
|
||||
this.div = div = $(div);
|
||||
|
||||
// the viewPortDiv is the outermost div we modify
|
||||
@@ -138,6 +136,9 @@ OpenLayers.Map.prototype = {
|
||||
// update the internal size register whenever the div is resized
|
||||
this.events.register("resize", this, this.updateSize);
|
||||
|
||||
//set the default options
|
||||
this.setOptions(options);
|
||||
|
||||
this.layers = [];
|
||||
|
||||
if (!this.controls) {
|
||||
@@ -152,6 +153,7 @@ OpenLayers.Map.prototype = {
|
||||
Event.observe(window,
|
||||
'unload',
|
||||
this.destroy.bindAsEventListener(this));
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user