Fix Map so zoomChanged when zoom is constructor option

This commit is contained in:
Peter Robins
2012-04-13 10:16:24 +01:00
parent 6adac12fab
commit b672a58c35

View File

@@ -662,6 +662,7 @@ OpenLayers.Map = OpenLayers.Class({
* be properly set below.
*/
delete this.center;
delete this.zoom;
this.addLayers(options.layers);
// set center (and optionally zoom)
if (options.center && !this.getCenter()) {