Commit 34df73b72735f5fe48a71754d9a56e59ffd8dbc0
1 parent
e347e93c
Exists in
master
and in
7 other branches
Compactação dos códigos do mashup
Showing
7 changed files
with
28 additions
and
26 deletions
Show diff stats
aplicmap/ogcws.map
| @@ -11,8 +11,7 @@ MAP | @@ -11,8 +11,7 @@ MAP | ||
| 11 | #CONFIG MS_NONSQUARE "YES" | 11 | #CONFIG MS_NONSQUARE "YES" |
| 12 | #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | 12 | #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" |
| 13 | NAME "i3geoogc" | 13 | NAME "i3geoogc" |
| 14 | - | ||
| 15 | - DEBUG 5 | 14 | + #DEBUG 5 |
| 16 | OUTPUTFORMAT | 15 | OUTPUTFORMAT |
| 17 | NAME "png" | 16 | NAME "png" |
| 18 | MIMETYPE "image/png" | 17 | MIMETYPE "image/png" |
aplicmap/ogcwsv5.map
| @@ -12,17 +12,18 @@ MAP | @@ -12,17 +12,18 @@ MAP | ||
| 12 | #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" | 12 | #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" |
| 13 | NAME "i3geoogc" | 13 | NAME "i3geoogc" |
| 14 | DEBUG OFF | 14 | DEBUG OFF |
| 15 | - #DEBUG 5 | ||
| 16 | - OUTPUTFORMAT | ||
| 17 | - NAME "png" | ||
| 18 | - MIMETYPE "image/png" | ||
| 19 | - DRIVER "GD/PNG" | ||
| 20 | - EXTENSION "png" | ||
| 21 | - IMAGEMODE "RGBA" | ||
| 22 | - TRANSPARENT TRUE | ||
| 23 | - FORMATOPTION "INTERLACE=OFF" | ||
| 24 | - END | ||
| 25 | - | 15 | + #DEBUG 5 |
| 16 | + OUTPUTFORMAT | ||
| 17 | + NAME 'png' | ||
| 18 | + MIMETYPE "image/png" | ||
| 19 | + DRIVER AGG/PNG | ||
| 20 | + IMAGEMODE RGB | ||
| 21 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
| 22 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
| 23 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
| 24 | + FORMATOPTION "INTERLACE=OFF" | ||
| 25 | + TRANSPARENT TRUE | ||
| 26 | + END | ||
| 26 | PROJECTION | 27 | PROJECTION |
| 27 | "init=epsg:4291" | 28 | "init=epsg:4291" |
| 28 | END | 29 | END |
aplicmap/ogcwsv6.map
| @@ -14,16 +14,17 @@ MAP | @@ -14,16 +14,17 @@ MAP | ||
| 14 | NAME "i3geoogc" | 14 | NAME "i3geoogc" |
| 15 | DEBUG OFF | 15 | DEBUG OFF |
| 16 | #DEBUG 5 | 16 | #DEBUG 5 |
| 17 | - OUTPUTFORMAT | ||
| 18 | - NAME "png" | ||
| 19 | - MIMETYPE "image/png" | ||
| 20 | - DRIVER "AGG/PNG" | ||
| 21 | - EXTENSION "png" | ||
| 22 | - IMAGEMODE "RGBA" | ||
| 23 | - TRANSPARENT TRUE | ||
| 24 | - #FORMATOPTION "INTERLACE=OFF" | ||
| 25 | - END | ||
| 26 | - | 17 | + OUTPUTFORMAT |
| 18 | + NAME 'png' | ||
| 19 | + MIMETYPE "image/png" | ||
| 20 | + DRIVER AGG/PNG | ||
| 21 | + IMAGEMODE RGB | ||
| 22 | + FORMATOPTION "QUANTIZE_FORCE=ON" | ||
| 23 | + FORMATOPTION "QUANTIZE_DITHER=OFF" | ||
| 24 | + FORMATOPTION "QUANTIZE_COLORS=256" | ||
| 25 | + FORMATOPTION "INTERLACE=OFF" | ||
| 26 | + TRANSPARENT TRUE | ||
| 27 | + END | ||
| 27 | PROJECTION | 28 | PROJECTION |
| 28 | "init=epsg:4291" | 29 | "init=epsg:4291" |
| 29 | END | 30 | END |
mashups/index.html
| @@ -25,6 +25,7 @@ body,td | @@ -25,6 +25,7 @@ body,td | ||
| 25 | <p>O <a href='http://openlayers.org' >OpenLayers</a> é uma biblioteca em javascript bastante popular. Possuí uma interface simples mas que pode | 25 | <p>O <a href='http://openlayers.org' >OpenLayers</a> é uma biblioteca em javascript bastante popular. Possuí uma interface simples mas que pode |
| 26 | conter um grande número de funcionalidades.</p> | 26 | conter um grande número de funcionalidades.</p> |
| 27 | <p>Para ver todos os parâmetros: <a href='openlayers.php'>i3geo/mashups/openlayers.php</a></p> | 27 | <p>Para ver todos os parâmetros: <a href='openlayers.php'>i3geo/mashups/openlayers.php</a></p> |
| 28 | +<p>O gerador de Web Services do i3GEO pode ser utilizado para abrir o mashup. Exemplo: <a href="http://localhost/i3geo/ogc.php?temas=biomashp&format=application/openlayers&bbox=-54,-14,-50,-10" >ogc.php?temas=biomashp&format=application/openlayers&bbox=-54,-14,-50,-10</a></p> | ||
| 28 | <p>Exemplo: todas as opções e um tema adicionado <a href='openlayers.php?temas=biomashp&largura=600'>openlayers.php?temas=biomashp&largura=600</a></p> | 29 | <p>Exemplo: todas as opções e um tema adicionado <a href='openlayers.php?temas=biomashp&largura=600'>openlayers.php?temas=biomashp&largura=600</a></p> |
| 29 | <p>Exemplo: zoom para uma região <a href='openlayers.php?temas=biomashp&largura=600&mapext=-68.39967 -12.16172 -62.67402 -5.366808'>openlayers.php?temas=biomashp&largura=600&mapext=-68.39967 -12.16172 -62.67402 -5.366808</a></p> | 30 | <p>Exemplo: zoom para uma região <a href='openlayers.php?temas=biomashp&largura=600&mapext=-68.39967 -12.16172 -62.67402 -5.366808'>openlayers.php?temas=biomashp&largura=600&mapext=-68.39967 -12.16172 -62.67402 -5.366808</a></p> |
| 30 | <p>Exemplo: Botões principais e barra de zoom maior <a href='openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10'>openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a> | 31 | <p>Exemplo: Botões principais e barra de zoom maior <a href='openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10'>openlayers.php?temas=biomashp&largura=600&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a> |
mashups/openlayers.js.php
| @@ -197,7 +197,7 @@ i3GEO.editorOL = { | @@ -197,7 +197,7 @@ i3GEO.editorOL = { | ||
| 197 | i3GEO.editorOL.adicionaMarcas(); | 197 | i3GEO.editorOL.adicionaMarcas(); |
| 198 | if(i3GEO.editorOL.maxext !== "") | 198 | if(i3GEO.editorOL.maxext !== "") |
| 199 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} | 199 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
| 200 | - else | 200 | + if(i3GEO.editorOL.mapext != "") |
| 201 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} | 201 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
| 202 | i3GEO.editorOL.coordenadas(); | 202 | i3GEO.editorOL.coordenadas(); |
| 203 | i3GEO.editorOL.criaJanelaBusca(); | 203 | i3GEO.editorOL.criaJanelaBusca(); |
mashups/openlayers_compacto.js
| @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { | @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { | ||
| 2382 | i3GEO.editorOL.adicionaMarcas(); | 2382 | i3GEO.editorOL.adicionaMarcas(); |
| 2383 | if(i3GEO.editorOL.maxext !== "") | 2383 | if(i3GEO.editorOL.maxext !== "") |
| 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} | 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
| 2385 | - else | 2385 | + if(i3GEO.editorOL.mapext != "") |
| 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} | 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
| 2387 | i3GEO.editorOL.coordenadas(); | 2387 | i3GEO.editorOL.coordenadas(); |
| 2388 | i3GEO.editorOL.criaJanelaBusca(); | 2388 | i3GEO.editorOL.criaJanelaBusca(); |
mashups/openlayers_compacto.js.php
| @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { | @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { | ||
| 2382 | i3GEO.editorOL.adicionaMarcas(); | 2382 | i3GEO.editorOL.adicionaMarcas(); |
| 2383 | if(i3GEO.editorOL.maxext !== "") | 2383 | if(i3GEO.editorOL.maxext !== "") |
| 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} | 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
| 2385 | - else | 2385 | + if(i3GEO.editorOL.mapext != "") |
| 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} | 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
| 2387 | i3GEO.editorOL.coordenadas(); | 2387 | i3GEO.editorOL.coordenadas(); |
| 2388 | i3GEO.editorOL.criaJanelaBusca(); | 2388 | i3GEO.editorOL.criaJanelaBusca(); |