[OpenLayers-Users] how to animate layers on OpenLayers 2.11?
Greg Allensworth
gregor at greeninfo.org
Tue Aug 9 11:31:34 EDT 2011
On 8/9/2011 8:24 AM, ggarcia wrote:
> Hi friends! xD
> Someone knows if there is a custom solution to animate layers on OL 2.11?
Try transitionEffect:'resize'
This goes into your layer options (not the WMS params) in your Layer
constructor, like this:
map.addLayer(new OpenLayers.Layer.WMS(
"Stuff",
"http://wms/",
{ layers:'world' },
{ transitionEffect:'resize' }
);
http://dev.openlayers.org/apidocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.transitionEffect
--
Greg Allensworth, Web GIS Developer
BS A+ Network+ Security+ Linux+ Server+
GreenInfo Network - Information and Mapping in the Public Interest
564 Market Street, Suite 510 San Francisco CA 94104
PH: 415-979-0343 x302 FX: 415-979-0371 email: gregor at greeninfo.org
Web: www.GreenInfo.org www.MapsPortal.org
Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org
More information about the Users
mailing list