Commit b27cc31fe3db4a7946167aa1013462cfac3a56ae
1 parent
aec9d366
Exists in
master
Correção na transparencia dos layers no Google Earth
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
pacotes/kmlmapserver/classes/layerserver.class.php
| @@ -215,7 +215,6 @@ class LayerServer { | @@ -215,7 +215,6 @@ class LayerServer { | ||
| 215 | $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); | 215 | $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); |
| 216 | $protocolo = strtolower($protocolo[0]); | 216 | $protocolo = strtolower($protocolo[0]); |
| 217 | $this->endpoint = $protocolo . '://'.$_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] ? ':'.$_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; | 217 | $this->endpoint = $protocolo . '://'.$_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] ? ':'.$_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; |
| 218 | - | ||
| 219 | // Process request | 218 | // Process request |
| 220 | if(!$this->has_error()) { | 219 | if(!$this->has_error()) { |
| 221 | $this->process_request(); | 220 | $this->process_request(); |
| @@ -355,7 +354,7 @@ class LayerServer { | @@ -355,7 +354,7 @@ class LayerServer { | ||
| 355 | // Add parameters to OGC server call | 354 | // Add parameters to OGC server call |
| 356 | // Fix & | 355 | // Fix & |
| 357 | $wms_link = preg_replace('/&/', '&', $wms_link); | 356 | $wms_link = preg_replace('/&/', '&', $wms_link); |
| 358 | - $wms_link .= 'VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4618&STYLES=&FORMAT=image/jpeg&TRANSPARENT=TRUE&'; | 357 | + $wms_link .= 'VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4618&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE&'; |
| 359 | // Link ok, create folder | 358 | // Link ok, create folder |
| 360 | //$folder =& $this->_xml->Document->addChild('GroundOverlay'); | 359 | //$folder =& $this->_xml->Document->addChild('GroundOverlay'); |
| 361 | $folder =& $this->simplexml_addChild($this->_xml->Document,'GroundOverlay'); | 360 | $folder =& $this->simplexml_addChild($this->_xml->Document,'GroundOverlay'); |
| @@ -1030,7 +1029,7 @@ class LayerServer { | @@ -1030,7 +1029,7 @@ class LayerServer { | ||
| 1030 | 1029 | ||
| 1031 | $this->map_object = ms_newMapObj($this->map); | 1030 | $this->map_object = ms_newMapObj($this->map); |
| 1032 | if(!$this->_zipped){ | 1031 | if(!$this->_zipped){ |
| 1033 | - $this->map_object->setmetadata('wms_onlineresource',$servidor.":80/i3geo/ogc.php?tema=".$temp."&width=1500&height=1500&"); | 1032 | + $this->map_object->setmetadata('wms_onlineresource',$servidor.":80/i3geo/ogc.php?tema=".$temp."&width=1500&height=1500&TRANSPARENT=true&FORMAT=image/png&"); |
| 1034 | $this->map_object->setmetadata("ows_enable_request","*"); | 1033 | $this->map_object->setmetadata("ows_enable_request","*"); |
| 1035 | } | 1034 | } |
| 1036 | $n = $this->map_object->numlayers; | 1035 | $n = $this->map_object->numlayers; |
| @@ -1047,7 +1046,7 @@ class LayerServer { | @@ -1047,7 +1046,7 @@ class LayerServer { | ||
| 1047 | if(!$this->_zipped) | 1046 | if(!$this->_zipped) |
| 1048 | { | 1047 | { |
| 1049 | $l->set("type",MS_LAYER_RASTER); | 1048 | $l->set("type",MS_LAYER_RASTER); |
| 1050 | - $l->setmetadata('wms_onlineresource',"../../ogc.php?tema=".$temp."&width=500&height=500&"); | 1049 | + $l->setmetadata('wms_onlineresource',"../../ogc.php?tema=".$temp."&width=1500&height=1500&TRANSPARENT=true&FORMAT=image/png&"); |
| 1051 | $l->setmetadata("ows_enable_request","*"); | 1050 | $l->setmetadata("ows_enable_request","*"); |
| 1052 | } | 1051 | } |
| 1053 | ms_newLayerObj($this->map_object, $l); | 1052 | ms_newLayerObj($this->map_object, $l); |
| @@ -1059,7 +1058,8 @@ class LayerServer { | @@ -1059,7 +1058,8 @@ class LayerServer { | ||
| 1059 | //$w->set("template","none.htm"); | 1058 | //$w->set("template","none.htm"); |
| 1060 | 1059 | ||
| 1061 | if(!$this->_zipped){ | 1060 | if(!$this->_zipped){ |
| 1062 | - $this->map_object->setmetadata('wms_onlineresource',$servidor.":80".$locmapserv."?map=".$temp."&width=1500&height=1500&"); | 1061 | + //$this->map_object->setmetadata('wms_onlineresource',$servidor.":80".$locmapserv."?map=".$temp."&width=1500&height=1500&"); |
| 1062 | + $this->map_object->setmetadata('wms_onlineresource',"../../ogc.php?tema=".$temp."&width=1500&height=1500&TRANSPARENT=true&FORMAT=image/png&"); | ||
| 1063 | $this->map_object->setmetadata("ows_enable_request","*"); | 1063 | $this->map_object->setmetadata("ows_enable_request","*"); |
| 1064 | } | 1064 | } |
| 1065 | $n = $this->map_object->numlayers; | 1065 | $n = $this->map_object->numlayers; |