Commit 5eb63282bd9b1bac618d229e2db556676b933436

Authored by Edmar Moretti
1 parent 2596a22c

correção na opção transitionefects

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
mashups/openlayers.js.php
... ... @@ -15,7 +15,6 @@ i3GEOOL = {
15 15 "http://mapas.mma.gov.br/cgi-bin/mapserv?map=/opt/www/html/webservices/baseraster.map&",
16 16 {layers:'baseraster',SRS:'EPSG:4291',FORMAT:'image/png'}
17 17 ),
18   - ol_mma.transitionEffect ="resize";
19 18 ol_wms: new OpenLayers.Layer.WMS.Untiled(
20 19 "OpenLayers WMS",
21 20 "http://labs.metacarta.com/wms/vmap0",
... ... @@ -43,8 +42,10 @@ i3GEOOL = {
43 42 }),
44 43 inicia: function(){
45 44 var alayers = [];
46   - if(i3GEOOL.ol_mma != "")
47   - {alayers.push(i3GEOOL.ol_mma);}
  45 + if(i3GEOOL.ol_mma != ""){
  46 + i3GEOOL.ol_mma.transitionEffect = "resize";
  47 + alayers.push(i3GEOOL.ol_mma);
  48 + }
48 49 if(i3GEOOL.ol_wms != ""){
49 50 i3GEOOL.ol_wms.setVisibility(false);
50 51 alayers.push(i3GEOOL.ol_wms);
... ...