[OpenLayers-Users] Transition Effect
Eric Lemoine
eric.lemoine at camptocamp.com
Sun Oct 30 12:16:13 EDT 2011
On Sunday, October 30, 2011, Ricardo Bayley <ricardo.bayley at gmail.com>
wrote:
> Ho everyone,
> Does anybody know why the transitionEffect is not working ?
> this is my config
> gwcLayer : new OpenLayers.Layer.WMS(
> "myGWC",
> ["http://localhost:8080/geowebcache/service/wms" ],
>
> {
>
> sphericalMercator: true,
> tileSize: new OpenLayers.Size(256,256),
> layers: "Argentina",
> format: 'image/png',
> tileLoadingDelay:0,
> transitionEffect: 'resize',
> minZoomLevel: 0,
> maxZoomLevel: 8
> }
The signature of OpenLayers.Layer.WMS is:
OpenLayers.Layer.WMS(name, url, params, options)
"params" include parameters sent in WMS GetMap requests. "layers" and
"format" should indeed be params.
"options" include options for the OpenLayers.Layer.WMS instance.
In your case tileLoadingDelay, transitionEffect, minZoomLevel, and
maxZoomLevel should be *options* as opposed to params.
PS: this has been confusing people since very early stages of OpenLayers.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111030/ef748dca/attachment.html
More information about the Users
mailing list