[OpenLayers-Users] Re: how to animate layers on OpenLayers 2.11?

Andreas Hocevar ahocevar at opengeo.org
Tue Aug 9 13:19:31 EDT 2011


On Aug 9, 2011, at 18:53 , ggarcia wrote:

> Thanks for your quick answer xD but I've already tried that "possible
> solution" without any change, my tiles continued without animation. Maybe
> "TMS Layer" cannot be animated with the resize transition effect. I don't
> undestand why not because that option is in the API:
> http://dev.openlayers.org/docs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.transitionEffect
> 
> Here is what I'm doing:
> [CODE]
>  // "TMS Layer" 
>  var layer = new OpenLayers.Layer.TMS( "TMS Layer","",
>    {url: '', serviceVersion: '.', layername: '.', alpha: true,
>      type: 'png', getURL: map_overlay_getTileURL},
>    {transitionEffect:"resize"} 
>  );

Instead, try:

var layer = new OpenLayers.Layer.TMS( "TMS Layer","",
   {url: '', serviceVersion: '.', layername: '.', alpha: true,
     type: 'png', getURL: map_overlay_getTileURL,
     transitionEffect:"resize"} 
 );

Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list