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
aplicmap/ogcwsv5.map
... | ... | @@ -12,17 +12,18 @@ MAP |
12 | 12 | #CONFIG MS_ERRORFILE "/ms4w/tmp/ms_error.txt" |
13 | 13 | NAME "i3geoogc" |
14 | 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 | 27 | PROJECTION |
27 | 28 | "init=epsg:4291" |
28 | 29 | END | ... | ... |
aplicmap/ogcwsv6.map
... | ... | @@ -14,16 +14,17 @@ MAP |
14 | 14 | NAME "i3geoogc" |
15 | 15 | DEBUG OFF |
16 | 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 | 28 | PROJECTION |
28 | 29 | "init=epsg:4291" |
29 | 30 | END | ... | ... |
mashups/index.html
... | ... | @@ -25,6 +25,7 @@ body,td |
25 | 25 | <p>O <a href='http://openlayers.org' >OpenLayers</a> é uma biblioteca em javascript bastante popular. Possuí uma interface simples mas que pode |
26 | 26 | conter um grande número de funcionalidades.</p> |
27 | 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 | 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 | 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 | 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 | 197 | i3GEO.editorOL.adicionaMarcas(); |
198 | 198 | if(i3GEO.editorOL.maxext !== "") |
199 | 199 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
200 | - else | |
200 | + if(i3GEO.editorOL.mapext != "") | |
201 | 201 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
202 | 202 | i3GEO.editorOL.coordenadas(); |
203 | 203 | i3GEO.editorOL.criaJanelaBusca(); | ... | ... |
mashups/openlayers_compacto.js
... | ... | @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { |
2382 | 2382 | i3GEO.editorOL.adicionaMarcas(); |
2383 | 2383 | if(i3GEO.editorOL.maxext !== "") |
2384 | 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
2385 | - else | |
2385 | + if(i3GEO.editorOL.mapext != "") | |
2386 | 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
2387 | 2387 | i3GEO.editorOL.coordenadas(); |
2388 | 2388 | i3GEO.editorOL.criaJanelaBusca(); | ... | ... |
mashups/openlayers_compacto.js.php
... | ... | @@ -2382,7 +2382,7 @@ i3GEO.editorOL = { |
2382 | 2382 | i3GEO.editorOL.adicionaMarcas(); |
2383 | 2383 | if(i3GEO.editorOL.maxext !== "") |
2384 | 2384 | {i3GEO.editorOL.mapa.zoomToMaxExtent();} |
2385 | - else | |
2385 | + if(i3GEO.editorOL.mapext != "") | |
2386 | 2386 | {i3GEO.editorOL.mapa.zoomToExtent(i3GEO.editorOL.mapext);} |
2387 | 2387 | i3GEO.editorOL.coordenadas(); |
2388 | 2388 | i3GEO.editorOL.criaJanelaBusca(); | ... | ... |