From 7a22bd5c207fe0f5fc04918d4541f672b749541a Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Sun, 19 Jun 2016 21:18:14 -0300 Subject: [PATCH] pagina do mashup migrada para bootstrap --- init/index.js | 2 +- mashups/index.php | 183 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+), 1 deletion(-) create mode 100755 mashups/index.php diff --git a/init/index.js b/init/index.js index 99c4e8a..15474ed 100755 --- a/init/index.js +++ b/init/index.js @@ -22,7 +22,7 @@ botoesIni = [ "target": "_blank" },{ "img":"mashup.png", - "href": "../mashups", + "href": "../mashups/index.php", "titulo":$trad(18,g_traducao_init) + "
OSM" + " - OpenLayers", "subtitulo": $trad("18a",g_traducao_init), "fa": "map-o", diff --git a/mashups/index.php b/mashups/index.php new file mode 100755 index 0000000..415fde1 --- /dev/null +++ b/mashups/index.php @@ -0,0 +1,183 @@ + + + +
+
+ +
+
+
+
+
+
+
+
+

Mashups são pequenos programas que podem ser facilmente inseridos em páginas + HTML e que mostram determinados conteúdos.

+

No caso do i3Geo, os mashups mostram mapas tendo como base o conjunto de temas existentes + no diretório i3geo/temas.

+
+
+ OpenLayers +

+ O OpenLayers é uma biblioteca em + javascript bastante popular. Possuí uma interface simples mas que pode conter um + grande número de funcionalidades. +

+

+ Para ver todos os parâmetros: i3geo/mashups/openlayers.php +

+

+ Para usar o Open Street Map (OSM) utilize o endereço i3geo/mashups/osm.php +

+

Nos exemplos, basta substituir openlayers.php por osm.php:

+

+ Windows: osm.php?temas=_wbiomashp&largura=800&altura=500 +

+

+ Linux: osm.php?temas=_lbiomashp&largura=800&altura=500 +

+

O gerador de Web Services do i3GEO pode ser utilizado para abrir o mashup.

+

+ Windows: ogc.php?temas=_wbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10 +

+

+ Linux: ogc.php?temas=_lbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10 +

+
+
+ Filtro +

+ Cada tema pode receber filtros seguindo-se a sintaxe &map_layer_{codigo do tema}_filter=
+ Em camadas com origem em arquivos shapefile o valor do filtro segue o padrão + (('[nome_da_coluna]'='valor_do_registro'))
Camadas baseadas em Postgis seguem o + padrão nome_da_coluna=valor_do_registro. +

+

+ Windows: openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_wbiomashp&layers=_wbiomashp +

+

+ Linux: openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_lbiomashp&layers=_lbiomashp +

+
+
+ Todas as opções e um tema adicionado +

+ Windows: openlayers.php?temas=_wbiomashp&largura=800&altura=500 +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=800&altura=500 +

+
+
+ Duas camadas mas com apenas uma visível na inicialização do mapa +

+ Windows: openlayers.php?temas=_wbiomashp,_wlocali&largura=800&altura=500&visiveis=_wbiomashp +

+

+ Linux: openlayers.php?temas=_lbiomashp,_llocali&largura=800&altura=500&visiveis=_lbiomashp +

+
+
+ Zoom para uma região +

+ Windows: openlayers.php?temas=_wbiomashp&largura=800&mapext=-68.39967 + -12.16172 -62.67402 -5.366808 +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=800&mapext=-68.39967 + -12.16172 -62.67402 -5.366808 +

+
+
+ Botões principais e barra de zoom maior +

+ Windows: openlayers.php?temas=_wbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10 +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10 +

+
+
+ Inclusão de pontos +

+ Windows: openlayers.php?temas=_wbiomashp&largura=800&pontos=-54 + -12 -56 -15 +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=800&pontos=-54 + -12 -56 -15 +

+
+
+ Camada adicional como fundo +

+ Windows: openlayers.php?temas=_wbiomashp&largura=800&fundo=_wbiomashp +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=800&fundo=_lbiomashp +

+
+
+ KML +

+ Windows: openlayers.php?temas=_wbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml +

+

+ Linux: openlayers.php?temas=_lbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml +

+ +
+ +
+
+
+
+
+ + + + + + + + -- libgit2 0.21.2