openlayers/openlayers — pull request #410 by probins (2012-04-13 09:28:41+00:00)
Title: Fix Map so zoomChanged when zoom is constructor option

I access servers where the parameters depend on the zoomlevel/resolution. I use zoomChanged in moveTo to control this, which works fine when initial zoom is set by setCenter(), but doesn't work when zoom is passed as a constructor option. This is because of a similar problem to that with center: the options are set on the map object, so when the logic checks if the zoom has changed it compares two identical properties. You could fix this by passing forceZoomChange, but I delete this.zoom to make it consistent with center.