Hi, transitionEffect is not supported for Layer.Google (and also not for Layer.Yahoo and Layer.VirtualEarth).
If you want animated zooming for Google layers, you have to enable it using the GMaps API. Regards, Andreas. On May 14, 2010, at 20:05 , aymankoo wrote: > > Thank you very much, I tried it but It didn't work > here is my code > > var zoomAttributes = { > numZoomLevels : 19, > minZoomLevel : 5, > transitionEffect : 'resize' > } > map = new OpenLayers.Map('map'); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > > gphy = new OpenLayers.Layer.Google( > "Google Physical", > OpenLayers.Util.extend(zoomAttributes, {type: > G_PHYSICAL_MAP}) > ); > > map.addLayers([gphy]); > > map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 5); > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Animated-Zoom-tp5046165p5052005.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev