Commit 66a3a7bf3d162c1482cc311bfc1e736d0988983d
1 parent
3a36fa57
Exists in
master
and in
7 other branches
Correção na transparencia dos layers no Google Earth
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
admin/admin.db
No preview for this file type
pacotes/kmlmapserver/classes/layerserver.class.php
... | ... | @@ -215,7 +215,6 @@ class LayerServer { |
215 | 215 | $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); |
216 | 216 | $protocolo = strtolower($protocolo[0]); |
217 | 217 | $this->endpoint = $protocolo . '://'.$_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] ? ':'.$_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; |
218 | - | |
219 | 218 | // Process request |
220 | 219 | if(!$this->has_error()) { |
221 | 220 | $this->process_request(); |
... | ... | @@ -355,7 +354,7 @@ class LayerServer { |
355 | 354 | // Add parameters to OGC server call |
356 | 355 | // Fix & |
357 | 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 | 358 | // Link ok, create folder |
360 | 359 | //$folder =& $this->_xml->Document->addChild('GroundOverlay'); |
361 | 360 | $folder =& $this->simplexml_addChild($this->_xml->Document,'GroundOverlay'); |
... | ... | @@ -1030,7 +1029,7 @@ class LayerServer { |
1030 | 1029 | |
1031 | 1030 | $this->map_object = ms_newMapObj($this->map); |
1032 | 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 | 1033 | $this->map_object->setmetadata("ows_enable_request","*"); |
1035 | 1034 | } |
1036 | 1035 | $n = $this->map_object->numlayers; |
... | ... | @@ -1047,7 +1046,7 @@ class LayerServer { |
1047 | 1046 | if(!$this->_zipped) |
1048 | 1047 | { |
1049 | 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 | 1050 | $l->setmetadata("ows_enable_request","*"); |
1052 | 1051 | } |
1053 | 1052 | ms_newLayerObj($this->map_object, $l); |
... | ... | @@ -1059,7 +1058,8 @@ class LayerServer { |
1059 | 1058 | //$w->set("template","none.htm"); |
1060 | 1059 | |
1061 | 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 | 1063 | $this->map_object->setmetadata("ows_enable_request","*"); |
1064 | 1064 | } |
1065 | 1065 | $n = $this->map_object->numlayers; | ... | ... |