From 80e0c14d7a7f5c8d3ea3178e49f41741e7c90dba Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 12 Feb 2010 00:16:54 +0000 Subject: [PATCH] Novo botão no mashup OpenLayers que permite capturar features de um layer e editar --- aplicmap/ogcws.map | 4 ++-- mashups/openlayers.css | 6 ++++++ mashups/openlayers.php | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------- mashups/openlayers.png | Bin 14534 -> 0 bytes mashups/theme/default/framedCloud.css | 0 mashups/theme/default/google.css | 9 +++++++++ mashups/theme/default/ie6-style.css | 7 +++++++ mashups/theme/default/img/add_point_off.png | Bin 0 -> 1616 bytes mashups/theme/default/img/add_point_on.png | Bin 0 -> 1464 bytes mashups/theme/default/img/blank.gif | Bin 0 -> 42 bytes mashups/theme/default/img/close.gif | Bin 0 -> 1078 bytes mashups/theme/default/img/drag-rectangle-off.png | Bin 0 -> 1202 bytes mashups/theme/default/img/drag-rectangle-on.png | Bin 0 -> 1218 bytes mashups/theme/default/img/draw_line_off.png | Bin 0 -> 1567 bytes mashups/theme/default/img/draw_line_on.png | Bin 0 -> 1399 bytes mashups/theme/default/img/draw_point_off.png | Bin 0 -> 1612 bytes mashups/theme/default/img/draw_point_on.png | Bin 0 -> 1460 bytes mashups/theme/default/img/draw_polygon_off.png | Bin 0 -> 1546 bytes mashups/theme/default/img/draw_polygon_on.png | Bin 0 -> 1407 bytes mashups/theme/default/img/editing_tool_bar.png | Bin 0 -> 3901 bytes mashups/theme/default/img/move_feature_off.png | Bin 0 -> 1543 bytes mashups/theme/default/img/move_feature_on.png | Bin 0 -> 1379 bytes mashups/theme/default/img/navigation_history.png | Bin 0 -> 7021 bytes mashups/theme/default/img/overview_replacement.gif | Bin 0 -> 79 bytes mashups/theme/default/img/pan-panel-NOALPHA.png | Bin 0 -> 566 bytes mashups/theme/default/img/pan-panel.png | Bin 0 -> 1287 bytes mashups/theme/default/img/pan_off.png | Bin 0 -> 1696 bytes mashups/theme/default/img/pan_on.png | Bin 0 -> 1568 bytes mashups/theme/default/img/panning-hand-off.png | Bin 0 -> 3875 bytes mashups/theme/default/img/panning-hand-on.png | Bin 0 -> 3977 bytes mashups/theme/default/img/remove_point_off.png | Bin 0 -> 1612 bytes mashups/theme/default/img/remove_point_on.png | Bin 0 -> 1464 bytes mashups/theme/default/img/ruler.png | Bin 0 -> 1211 bytes mashups/theme/default/img/save_features_off.png | Bin 0 -> 357 bytes mashups/theme/default/img/save_features_on.png | Bin 0 -> 364 bytes mashups/theme/default/img/view_next_off.png | Bin 0 -> 1644 bytes mashups/theme/default/img/view_next_on.png | Bin 0 -> 1686 bytes mashups/theme/default/img/view_previous_off.png | Bin 0 -> 1553 bytes mashups/theme/default/img/view_previous_on.png | Bin 0 -> 1592 bytes mashups/theme/default/img/zoom-panel-NOALPHA.png | Bin 0 -> 1173 bytes mashups/theme/default/img/zoom-panel.png | Bin 0 -> 1624 bytes mashups/theme/default/style.css | 343 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ogc.php | 2 +- 43 files changed, 435 insertions(+), 14 deletions(-) create mode 100644 mashups/theme/default/framedCloud.css create mode 100644 mashups/theme/default/google.css create mode 100644 mashups/theme/default/ie6-style.css create mode 100644 mashups/theme/default/img/add_point_off.png create mode 100644 mashups/theme/default/img/add_point_on.png create mode 100644 mashups/theme/default/img/blank.gif create mode 100644 mashups/theme/default/img/close.gif create mode 100644 mashups/theme/default/img/drag-rectangle-off.png create mode 100644 mashups/theme/default/img/drag-rectangle-on.png create mode 100644 mashups/theme/default/img/draw_line_off.png create mode 100644 mashups/theme/default/img/draw_line_on.png create mode 100644 mashups/theme/default/img/draw_point_off.png create mode 100644 mashups/theme/default/img/draw_point_on.png create mode 100644 mashups/theme/default/img/draw_polygon_off.png create mode 100644 mashups/theme/default/img/draw_polygon_on.png create mode 100644 mashups/theme/default/img/editing_tool_bar.png create mode 100644 mashups/theme/default/img/move_feature_off.png create mode 100644 mashups/theme/default/img/move_feature_on.png create mode 100644 mashups/theme/default/img/navigation_history.png create mode 100644 mashups/theme/default/img/overview_replacement.gif create mode 100644 mashups/theme/default/img/pan-panel-NOALPHA.png create mode 100644 mashups/theme/default/img/pan-panel.png create mode 100644 mashups/theme/default/img/pan_off.png create mode 100644 mashups/theme/default/img/pan_on.png create mode 100644 mashups/theme/default/img/panning-hand-off.png create mode 100644 mashups/theme/default/img/panning-hand-on.png create mode 100644 mashups/theme/default/img/remove_point_off.png create mode 100644 mashups/theme/default/img/remove_point_on.png create mode 100644 mashups/theme/default/img/ruler.png create mode 100644 mashups/theme/default/img/save_features_off.png create mode 100644 mashups/theme/default/img/save_features_on.png create mode 100644 mashups/theme/default/img/view_next_off.png create mode 100644 mashups/theme/default/img/view_next_on.png create mode 100644 mashups/theme/default/img/view_previous_off.png create mode 100644 mashups/theme/default/img/view_previous_on.png create mode 100644 mashups/theme/default/img/zoom-panel-NOALPHA.png create mode 100644 mashups/theme/default/img/zoom-panel.png create mode 100644 mashups/theme/default/style.css diff --git a/aplicmap/ogcws.map b/aplicmap/ogcws.map index 5e4698e..26573fb 100644 --- a/aplicmap/ogcws.map +++ b/aplicmap/ogcws.map @@ -50,7 +50,7 @@ WEB METADATA "ows_title" "I3Geo Brasil MMA" "wms_title" "I3Geo Brasil MMA" - "ows_abstract" "Web services gerados da base de dados do I3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando ogc.php?ajuda=, para uma lista compacta de todos os serviços, digite ogc.php?lista=temas" + "ows_abstract" "Web services gerados da base de dados do I3Geo. Para chamar um tema especificamente, veja o sistema de ajuda, digitando ogc.php?ajuda=, para uma lista compacta de todos os servicos, digite ogc.php?lista=temas" "ows_keywordlist" "i3Geo" "ows_onlineresource" "" "ows_fees" "none" @@ -60,7 +60,7 @@ WEB "ows_contactposition" "" "ows_addresstype" "" "ows_address" "" - "ows_city" "Brasília" + "ows_city" "Brasilia" "ows_stateorprovince" "DF" "ows_postcode" "" "ows_country" "Brasil" diff --git a/mashups/openlayers.css b/mashups/openlayers.css index fc5e80e..321beda 100644 --- a/mashups/openlayers.css +++ b/mashups/openlayers.css @@ -76,6 +76,12 @@ background-position:-348px 0; .olControlEditingToolbar .selecaoItemActive { background-position:-348px -28px; } +.olControlEditingToolbar .capturaItemInactive { +background-position:-377px 0; +} +.olControlEditingToolbar .capturaItemActive { +background-position:-377px -28px; +} diff --git a/mashups/openlayers.php b/mashups/openlayers.php index 9d8d206..ef69e9b 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -90,7 +90,7 @@ if(!isset($botoes)){ $objBotoes[] = "'poligono':true"; $objBotoes[] = "'edita':true"; $objBotoes[] = "'apaga':true"; - + $objBotoes[] = "'captura':false"; } else{ $botoes = str_replace(" ",",",$botoes); @@ -120,7 +120,8 @@ else{ {$objBotoes[] = "'edita':true";} if(in_array("apaga",$botoes)) {$objBotoes[] = "'apaga':true";} - + if(in_array("captura",$botoes)) + {$objBotoes[] = "'captura':false";} } $botoes = "{".implode(",",$objBotoes)."}"; // @@ -185,6 +186,7 @@ Parâmetros: poligono edita apaga + captura Para ver a lista de códigos de temas, que podem ser utilizados no parâmetro 'temas', acesse: lista de temas. Os códigos são mostrados em vermelho. @@ -202,7 +204,7 @@ Parâmetros: - + @@ -256,9 +258,9 @@ function i3GeoMapaInicia(){ }); } var botoes = ; - criaBotoes(botoes); + i3GEOOLcriaBotoes(botoes); }; -function criaBotoes(botoes){ +function i3GEOOLcriaBotoes(botoes){ var sketchSymbolizers = { "Point": { pointRadius: 4, @@ -314,7 +316,7 @@ function criaBotoes(botoes){ if(botoes.legenda==true){ var button = new OpenLayers.Control.Button({ displayClass: "legenda", - trigger: function(){mostraLegenda();}, + trigger: function(){i3GEOOLmostraLegenda();}, title: "Legenda" }); controles.push(button); @@ -364,17 +366,19 @@ function criaBotoes(botoes){ button = new OpenLayers.Control.WMSGetFeatureInfo({ maxFeatures:1, infoFormat:'text/plain', //'application/vnd.ogc.gml', - layers: pegaLayers(), + layers: i3GEOOLpegaLayers(), queryVisible: true, title: "Identificar", displayClass: "identifica", eventListeners: { getfeatureinfo: function(event) { + var lonlat = i3geoOL.getLonLatFromPixel(event.xy); + var lonlattexto = "
captura
"; i3geoOL.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", i3geoOL.getLonLatFromPixel(event.xy), null, - "
"+event.text+"
", + lonlattexto+"
"+event.text+"
", null, true )); @@ -468,7 +472,33 @@ function criaBotoes(botoes){ controles.push(button); var adiciona = true; } - + if(botoes.captura==true){ + botaoCapturaOL = new OpenLayers.Control.GetFeature({ + protocol: "", + displayClass: "captura", + title: "Captura geometria", + eventListeners: { + featureselected: function(e) { + layergrafico.addFeatures([e.feature]); + } + } + }); + botaoCapturaOL.events.register( + "activate", + this, + function(e){ + var layers = i3GEOOLpegaLayers(); + var u = layers[0].url+"&request=getfeature&service=wfs"; + u += "&typename="+layers[0].params.LAYERS; + u += "&filter=Geometry-54,-12"; + botaoCapturaOL.protocol = OpenLayers.Protocol.WFS({ + url:u + }); + } + ); + controles.push(botaoCapturaOL); + var adiciona = true; + } // //adiciona o painel ao mapa se alguma op��o foi inserida // @@ -477,7 +507,7 @@ function criaBotoes(botoes){ i3geoOL.addControl(panel); } } -function mostraLegenda(){ +function i3GEOOLmostraLegenda(){ var layers = pegaLayers() var nlayers = layers.length; var ins = ""; @@ -491,7 +521,7 @@ function mostraLegenda(){ w.document.close(); } -function pegaLayers(){ +function i3GEOOLpegaLayers(){ var layers = i3geoOL.layers; var nlayers = layers.length; var ins = new Array(); @@ -502,6 +532,32 @@ function pegaLayers(){ } return ins; } +function i3GEOOLcaptura(lonlat){ + var layers = i3GEOOLpegaLayers(); + var u = layers[0].url+"&request=getfeature&service=wfs&version=1.0.0"; + u += "&OUTPUTFORMAT=gml2&typename="+layers[0].params.LAYERS; + u += "&filter=Geometry"+lonlat+""; + document.body.style.cursor="wait"; + document.getElementById("i3geoMapa").style.cursor = "wait"; + OpenLayers.Request.issue({ + method: "GET", + url: u, + callback: function(retorno){ + document.body.style.cursor="default"; + document.getElementById("i3geoMapa").style.cursor = "default"; + var fromgml = new OpenLayers.Format.GML({ + geometryName: "msGeometry" + }); + var gml = fromgml.read(retorno.responseText); + layergrafico.addFeatures(gml); + }, + failure: function(){ + document.body.style.cursor="default"; + document.getElementById("i3geoMapa").style.cursor = "default"; + alert("Erro"); + } + }) +} i3GeoMapaInicia(); diff --git a/mashups/openlayers.png b/mashups/openlayers.png index 950cba2..d7e8c3d 100644 Binary files a/mashups/openlayers.png and b/mashups/openlayers.png differ diff --git a/mashups/theme/default/framedCloud.css b/mashups/theme/default/framedCloud.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/mashups/theme/default/framedCloud.css diff --git a/mashups/theme/default/google.css b/mashups/theme/default/google.css new file mode 100644 index 0000000..7f3c369 --- /dev/null +++ b/mashups/theme/default/google.css @@ -0,0 +1,9 @@ +.olLayerGoogleCopyright { + right: 3px; + bottom: 2px; +} +.olLayerGooglePoweredBy { + left: 2px; + bottom: 2px; +} + diff --git a/mashups/theme/default/ie6-style.css b/mashups/theme/default/ie6-style.css new file mode 100644 index 0000000..65f6b19 --- /dev/null +++ b/mashups/theme/default/ie6-style.css @@ -0,0 +1,7 @@ +.olControlZoomPanel div { + background-image: url(img/zoom-panel-NOALPHA.png); +} +.olControlPanPanel div { + background-image: url(img/pan-panel-NOALPHA.png); +} + diff --git a/mashups/theme/default/img/add_point_off.png b/mashups/theme/default/img/add_point_off.png new file mode 100644 index 0000000..aefd09c Binary files /dev/null and b/mashups/theme/default/img/add_point_off.png differ diff --git a/mashups/theme/default/img/add_point_on.png b/mashups/theme/default/img/add_point_on.png new file mode 100644 index 0000000..1294a2c Binary files /dev/null and b/mashups/theme/default/img/add_point_on.png differ diff --git a/mashups/theme/default/img/blank.gif b/mashups/theme/default/img/blank.gif new file mode 100644 index 0000000..4bcc753 Binary files /dev/null and b/mashups/theme/default/img/blank.gif differ diff --git a/mashups/theme/default/img/close.gif b/mashups/theme/default/img/close.gif new file mode 100644 index 0000000..a8958de Binary files /dev/null and b/mashups/theme/default/img/close.gif differ diff --git a/mashups/theme/default/img/drag-rectangle-off.png b/mashups/theme/default/img/drag-rectangle-off.png new file mode 100644 index 0000000..fc6daf4 Binary files /dev/null and b/mashups/theme/default/img/drag-rectangle-off.png differ diff --git a/mashups/theme/default/img/drag-rectangle-on.png b/mashups/theme/default/img/drag-rectangle-on.png new file mode 100644 index 0000000..7f783ce Binary files /dev/null and b/mashups/theme/default/img/drag-rectangle-on.png differ diff --git a/mashups/theme/default/img/draw_line_off.png b/mashups/theme/default/img/draw_line_off.png new file mode 100644 index 0000000..7f15612 Binary files /dev/null and b/mashups/theme/default/img/draw_line_off.png differ diff --git a/mashups/theme/default/img/draw_line_on.png b/mashups/theme/default/img/draw_line_on.png new file mode 100644 index 0000000..ba09186 Binary files /dev/null and b/mashups/theme/default/img/draw_line_on.png differ diff --git a/mashups/theme/default/img/draw_point_off.png b/mashups/theme/default/img/draw_point_off.png new file mode 100644 index 0000000..fde94bd Binary files /dev/null and b/mashups/theme/default/img/draw_point_off.png differ diff --git a/mashups/theme/default/img/draw_point_on.png b/mashups/theme/default/img/draw_point_on.png new file mode 100644 index 0000000..8804221 Binary files /dev/null and b/mashups/theme/default/img/draw_point_on.png differ diff --git a/mashups/theme/default/img/draw_polygon_off.png b/mashups/theme/default/img/draw_polygon_off.png new file mode 100644 index 0000000..53ce9d7 Binary files /dev/null and b/mashups/theme/default/img/draw_polygon_off.png differ diff --git a/mashups/theme/default/img/draw_polygon_on.png b/mashups/theme/default/img/draw_polygon_on.png new file mode 100644 index 0000000..2a33376 Binary files /dev/null and b/mashups/theme/default/img/draw_polygon_on.png differ diff --git a/mashups/theme/default/img/editing_tool_bar.png b/mashups/theme/default/img/editing_tool_bar.png new file mode 100644 index 0000000..464340e Binary files /dev/null and b/mashups/theme/default/img/editing_tool_bar.png differ diff --git a/mashups/theme/default/img/move_feature_off.png b/mashups/theme/default/img/move_feature_off.png new file mode 100644 index 0000000..9f588db Binary files /dev/null and b/mashups/theme/default/img/move_feature_off.png differ diff --git a/mashups/theme/default/img/move_feature_on.png b/mashups/theme/default/img/move_feature_on.png new file mode 100644 index 0000000..072f066 Binary files /dev/null and b/mashups/theme/default/img/move_feature_on.png differ diff --git a/mashups/theme/default/img/navigation_history.png b/mashups/theme/default/img/navigation_history.png new file mode 100644 index 0000000..053d1e0 Binary files /dev/null and b/mashups/theme/default/img/navigation_history.png differ diff --git a/mashups/theme/default/img/overview_replacement.gif b/mashups/theme/default/img/overview_replacement.gif new file mode 100644 index 0000000..a82cf5f Binary files /dev/null and b/mashups/theme/default/img/overview_replacement.gif differ diff --git a/mashups/theme/default/img/pan-panel-NOALPHA.png b/mashups/theme/default/img/pan-panel-NOALPHA.png new file mode 100644 index 0000000..2740d8b Binary files /dev/null and b/mashups/theme/default/img/pan-panel-NOALPHA.png differ diff --git a/mashups/theme/default/img/pan-panel.png b/mashups/theme/default/img/pan-panel.png new file mode 100644 index 0000000..9910121 Binary files /dev/null and b/mashups/theme/default/img/pan-panel.png differ diff --git a/mashups/theme/default/img/pan_off.png b/mashups/theme/default/img/pan_off.png new file mode 100644 index 0000000..30b2aed Binary files /dev/null and b/mashups/theme/default/img/pan_off.png differ diff --git a/mashups/theme/default/img/pan_on.png b/mashups/theme/default/img/pan_on.png new file mode 100644 index 0000000..d73e7dd Binary files /dev/null and b/mashups/theme/default/img/pan_on.png differ diff --git a/mashups/theme/default/img/panning-hand-off.png b/mashups/theme/default/img/panning-hand-off.png new file mode 100644 index 0000000..4c912ac Binary files /dev/null and b/mashups/theme/default/img/panning-hand-off.png differ diff --git a/mashups/theme/default/img/panning-hand-on.png b/mashups/theme/default/img/panning-hand-on.png new file mode 100644 index 0000000..6094c64 Binary files /dev/null and b/mashups/theme/default/img/panning-hand-on.png differ diff --git a/mashups/theme/default/img/remove_point_off.png b/mashups/theme/default/img/remove_point_off.png new file mode 100644 index 0000000..76c8606 Binary files /dev/null and b/mashups/theme/default/img/remove_point_off.png differ diff --git a/mashups/theme/default/img/remove_point_on.png b/mashups/theme/default/img/remove_point_on.png new file mode 100644 index 0000000..0ff28fc Binary files /dev/null and b/mashups/theme/default/img/remove_point_on.png differ diff --git a/mashups/theme/default/img/ruler.png b/mashups/theme/default/img/ruler.png new file mode 100644 index 0000000..aa4883b Binary files /dev/null and b/mashups/theme/default/img/ruler.png differ diff --git a/mashups/theme/default/img/save_features_off.png b/mashups/theme/default/img/save_features_off.png new file mode 100644 index 0000000..2bf2906 Binary files /dev/null and b/mashups/theme/default/img/save_features_off.png differ diff --git a/mashups/theme/default/img/save_features_on.png b/mashups/theme/default/img/save_features_on.png new file mode 100644 index 0000000..93c8f08 Binary files /dev/null and b/mashups/theme/default/img/save_features_on.png differ diff --git a/mashups/theme/default/img/view_next_off.png b/mashups/theme/default/img/view_next_off.png new file mode 100644 index 0000000..23c5ac1 Binary files /dev/null and b/mashups/theme/default/img/view_next_off.png differ diff --git a/mashups/theme/default/img/view_next_on.png b/mashups/theme/default/img/view_next_on.png new file mode 100644 index 0000000..e41fb7b Binary files /dev/null and b/mashups/theme/default/img/view_next_on.png differ diff --git a/mashups/theme/default/img/view_previous_off.png b/mashups/theme/default/img/view_previous_off.png new file mode 100644 index 0000000..b9c230f Binary files /dev/null and b/mashups/theme/default/img/view_previous_off.png differ diff --git a/mashups/theme/default/img/view_previous_on.png b/mashups/theme/default/img/view_previous_on.png new file mode 100644 index 0000000..c009c25 Binary files /dev/null and b/mashups/theme/default/img/view_previous_on.png differ diff --git a/mashups/theme/default/img/zoom-panel-NOALPHA.png b/mashups/theme/default/img/zoom-panel-NOALPHA.png new file mode 100644 index 0000000..cdde6fc Binary files /dev/null and b/mashups/theme/default/img/zoom-panel-NOALPHA.png differ diff --git a/mashups/theme/default/img/zoom-panel.png b/mashups/theme/default/img/zoom-panel.png new file mode 100644 index 0000000..f2c7c51 Binary files /dev/null and b/mashups/theme/default/img/zoom-panel.png differ diff --git a/mashups/theme/default/style.css b/mashups/theme/default/style.css new file mode 100644 index 0000000..cd29d4d --- /dev/null +++ b/mashups/theme/default/style.css @@ -0,0 +1,343 @@ +div.olMap { + z-index: 0; + padding: 0px!important; + margin: 0px!important; + cursor: default; +} + +div.olMapViewport { + text-align: left; +} + +div.olLayerDiv { + -moz-user-select: none; +} + +.olLayerGoogleCopyright { + left: 2px; + bottom: 2px; +} +.olLayerGooglePoweredBy { + left: 2px; + bottom: 15px; +} +.olControlAttribution { + font-size: smaller; + right: 3px; + bottom: 4.5em; + position: absolute; + display: block; +} +.olControlScale { + right: 3px; + bottom: 3em; + display: block; + position: absolute; + font-size: smaller; +} +.olControlScaleLine { + left: 10px; + bottom: 15px; + font-size: xx-small; +} +.olControlScaleLineBottom { + border: solid 2px black; + border-bottom: none; + margin-top:-2px; + text-align: center; +} +.olControlScaleLineTop { + border: solid 2px black; + border-top: none; + text-align: center; +} + +.olControlPermalink { + right: 3px; + bottom: 1.5em; + display: block; + position: absolute; + font-size: smaller; +} + +div.olControlMousePosition { + bottom: 0em; + right: 3px; + display: block; + position: absolute; + font-family: Arial; + font-size: smaller; +} + +.olControlOverviewMapContainer { + position: absolute; + bottom: 0px; + right: 0px; +} + +.olControlOverviewMapElement { + padding: 10px 18px 10px 10px; + background-color: #00008B; + -moz-border-radius: 1em 0 0 0; +} + +.olControlOverviewMapMinimizeButton { + right: 0px; + bottom: 80px; +} + +.olControlOverviewMapMaximizeButton { + right: 0px; + bottom: 80px; +} + +.olControlOverviewMapExtentRectangle { + overflow: hidden; + background-image: url("img/blank.gif"); + cursor: move; + border: 2px dotted red; +} +.olControlOverviewMapRectReplacement { + overflow: hidden; + cursor: move; + background-image: url("img/overview_replacement.gif"); + background-repeat: no-repeat; + background-position: center; +} + +.olLayerGeoRSSDescription { + float:left; + width:100%; + overflow:auto; + font-size:1.0em; +} +.olLayerGeoRSSClose { + float:right; + color:gray; + font-size:1.2em; + margin-right:6px; + font-family:sans-serif; +} +.olLayerGeoRSSTitle { + float:left;font-size:1.2em; +} + +.olPopupContent { + padding:5px; + overflow: auto; +} +.olControlNavToolbar { + width:0px; + height:0px; +} +.olControlNavToolbar div { + display:block; + width: 28px; + height: 28px; + top: 300px; + left: 6px; + position: relative; +} + +.olControlNavigationHistory { + background-image: url("img/navigation_history.png"); + background-repeat: no-repeat; + width: 24px; + height: 24px; + +} +.olControlNavigationHistoryPreviousItemActive { + background-position: 0px 0px; +} +.olControlNavigationHistoryPreviousItemInactive { + background-position: 0px -24px; +} +.olControlNavigationHistoryNextItemActive { + background-position: -24px 0px; +} +.olControlNavigationHistoryNextItemInactive { + background-position: -24px -24px; +} + +.olControlNavToolbar .olControlNavigationItemActive { + background-image: url("img/panning-hand-on.png"); + background-repeat: no-repeat; +} +.olControlNavToolbar .olControlNavigationItemInactive { + background-image: url("img/panning-hand-off.png"); + background-repeat: no-repeat; +} +.olControlNavToolbar .olControlZoomBoxItemActive { + background-image: url("img/drag-rectangle-on.png"); + background-color: orange; + background-repeat: no-repeat; +} +.olControlNavToolbar .olControlZoomBoxItemInactive { + background-image: url("img/drag-rectangle-off.png"); + background-repeat: no-repeat; +} +.olControlEditingToolbar { + float:right; + right: 0px; + height: 30px; + width: 200px; +} +.olControlEditingToolbar div { + background-image: url("img/editing_tool_bar.png"); + background-repeat: no-repeat; + float:right; + width: 24px; + height: 24px; + margin: 5px; +} +.olControlEditingToolbar .olControlNavigationItemActive { + background-position: -103px -23px; +} +.olControlEditingToolbar .olControlNavigationItemInactive { + background-position: -103px -0px; +} +.olControlEditingToolbar .olControlDrawFeaturePointItemActive { + background-position: -77px -23px; +} +.olControlEditingToolbar .olControlDrawFeaturePointItemInactive { + background-position: -77px -0px; +} +.olControlEditingToolbar .olControlDrawFeaturePathItemInactive { + background-position: -51px 0px; +} +.olControlEditingToolbar .olControlDrawFeaturePathItemActive { + background-position: -51px -23px; +} +.olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive { + background-position: -26px 0px; +} +.olControlEditingToolbar .olControlDrawFeaturePolygonItemActive { + background-position: -26px -23px ; +} +.olControlSaveFeaturesItemActive { + background-image: url(img/save_features_on.png); + background-repeat: no-repeat; + background-position: 0px 1px; +} +.olControlSaveFeaturesItemInactive { + background-image: url(img/save_features_off.png); + background-repeat: no-repeat; + background-position: 0px 1px; +} + +.olHandlerBoxZoomBox { + border: 2px solid red; + position: absolute; + background-color: white; + opacity: 0.50; + font-size: 1px; + filter: alpha(opacity=50); +} +.olHandlerBoxSelectFeature { + border: 2px solid blue; + position: absolute; + background-color: white; + opacity: 0.50; + font-size: 1px; + filter: alpha(opacity=50); +} + +.olControlPanPanel { + top: 10px; + left: 5px; +} + +.olControlPanPanel div { + background-image: url(img/pan-panel.png); + height: 18px; + width: 18px; + cursor: pointer; + position: absolute; +} + +.olControlPanPanel .olControlPanNorthItemInactive { + top: 0px; + left: 9px; + background-position: 0px 0px; +} +.olControlPanPanel .olControlPanSouthItemInactive { + top: 36px; + left: 9px; + background-position: 18px 0px; +} +.olControlPanPanel .olControlPanWestItemInactive { + position: absolute; + top: 18px; + left: 0px; + background-position: 0px 18px; +} +.olControlPanPanel .olControlPanEastItemInactive { + top: 18px; + left: 18px; + background-position: 18px 18px; +} + +.olControlZoomPanel { + top: 71px; + left: 14px; +} + +.olControlZoomPanel div { + background-image: url(img/zoom-panel.png); + position: absolute; + height: 18px; + width: 18px; + cursor: pointer; +} + +.olControlZoomPanel .olControlZoomInItemInactive { + top: 0px; + left: 0px; + background-position: 0px 0px; +} + +.olControlZoomPanel .olControlZoomToMaxExtentItemInactive { + top: 18px; + left: 0px; + background-position: 0px -18px; +} + +.olControlZoomPanel .olControlZoomOutItemInactive { + top: 36px; + left: 0px; + background-position: 0px 18px; +} + +.olPopupCloseBox { + background: url("img/close.gif") no-repeat; + cursor: pointer; +} + +.olFramedCloudPopupContent { + padding: 5px; + overflow: auto; +} + +.olControlNoSelect { + -moz-user-select: none; +} + +/** + * Cursor styles + */ + +.olCursorWait { + cursor: wait; +} +.olDragDown { + cursor: move; +} +.olDrawBox { + cursor: crosshair; +} +.olControlDragFeatureOver { + cursor: move; +} +.olControlDragFeatureActive.olControlDragFeatureOver.olDragDown { + cursor: -moz-grabbing; +} diff --git a/ogc.php b/ogc.php index 0de6b85..296c13a 100644 --- a/ogc.php +++ b/ogc.php @@ -48,7 +48,6 @@ ogc.php?tema=bioma ogc.php?intervalo=0,50 */ - // //validações e includes // @@ -109,6 +108,7 @@ foreach ($_GET as $k=>$v) if(strtolower($k) == "layer") {$tema = $v;} } +//$filter = html_entity_decode($filter); if(count($_GET) == 0){ $tipo="intervalo"; $req->setParameter("REQUEST", "getCapabilities"); -- libgit2 0.21.2