index.php
8.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?php
define ( "ONDEI3GEO", ".." );
include (dirname ( __FILE__ ) . "/../ms_configura.php");
//error_reporting ( 0 );
include "../init/head.php";
?>
<body style="padding-top: 60px;">
<nav id="navbar" class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../init/index.php"><?php echo $mensagemInicia;?> <i
class="fa fa-home fa-1x"></i></a>
</div>
</div>
</nav>
<div class="container-fluid migalha">
<div class="row">
<div class="btn-group btn-breadcrumb">
<a class="btn btn-default" href="../init/index.php?home=">i3Geo</a>
<a class="btn btn-default" style="pointer-events: none">Mashups</a>
</div>
</div>
</div>
<div class="container">
<div class="row center-block">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-body">
<fieldset>
<p>Mashups são pequenos programas que podem ser facilmente inseridos em páginas
HTML e que mostram determinados conteúdos.</p>
<p>No caso do i3Geo, os mashups mostram mapas tendo como base o conjunto de temas existentes
no diretório <samp>i3geo/temas</samp>.</p>
</fieldset>
<fieldset>
<legend>OpenLayers</legend>
<p>
O <a href="http://openlayers.org" target=_blank>OpenLayers</a> é uma biblioteca em
javascript bastante popular. Possui uma interface simples mas que pode conter um
grande número de funcionalidades.
</p>
<p>
Para ver todos os parâmetros: <a target=_blank href="openlayers.php">i3geo/mashups/openlayers.php</a>
</p>
<p>
Para usar o Open Street Map (OSM) utilize o endereço <a target=_blank href="osm.php">i3geo/mashups/osm.php</a>
</p>
<p>Nos exemplos, basta substituir <samp>openlayers.php</samp> por <samp>osm.php</samp>:</p>
<p class="m">
Windows: <a target=_blank href="osm.php?temas=_wbiomashp&largura=800&altura=500">osm.php?temas=_wbiomashp&largura=800&altura=500</a>
</p>
<p class="m">
Linux: <a target=_blank href="osm.php?temas=_lbiomashp&largura=800&altura=500">osm.php?temas=_lbiomashp&largura=800&altura=500</a>
</p>
<p>O gerador de Web Services do i3Geo pode ser utilizado para abrir o mashup.</p>
<p class="m">
Windows: <a target=_blank
href="../ogc.php?temas=_wbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10">ogc.php?temas=_wbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10</a>
</p>
<p class="m">
Linux: <a target=_blank
href="../ogc.php?temas=_lbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10">ogc.php?temas=_lbiomashp&format=application/openlayers&bbox=-54,-14,-50,-10</a>
</p>
</fieldset>
<fieldset>
<legend>Filtro</legend>
<p>
Cada tema pode receber filtros seguindo-se a sintaxe <code>&map_layer_{codigo do tema}_filter=</code><br>
Em camadas com origem em arquivos shapefile o valor do filtro segue o padrão
<code>(('[nome_da_coluna]'='valor_do_registro'))</code><br> Camadas baseadas em Postgis seguem o
padrão <code>nome_da_coluna=valor_do_registro</code>.
</p>
<p class="m">
Windows: <a target=_blank
href="http://localhost/i3geo/mashups/openlayers.php?map_layer__wbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_wbiomashp&layers=_wbiomashp">openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_wbiomashp&layers=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank
href="http://localhost/i3geo/mashups/openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_lbiomashp&layers=_lbiomashp">openlayers.php?map_layer__lbiomashp_filter=(('[CD_LEGENDA]'='CAATINGA'))&temas=_lbiomashp&layers=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>Todas as opções e um tema adicionado</legend>
<p class="m">
Windows: <a target=_blank href="openlayers.php?temas=_wbiomashp&largura=800&altura=500">openlayers.php?temas=_wbiomashp&largura=800&altura=500</a>
</p>
<p class="m">
Linux: <a target=_blank href="openlayers.php?temas=_lbiomashp&largura=800&altura=500">openlayers.php?temas=_lbiomashp&largura=800&altura=500</a>
</p>
</fieldset>
<fieldset>
<legend>Duas camadas mas com apenas uma visível na inicialização do mapa</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp,_wlocali&largura=800&altura=500&visiveis=_wbiomashp">openlayers.php?temas=_wbiomashp,_wlocali&largura=800&altura=500&visiveis=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp,_llocali&largura=800&altura=500&visiveis=_lbiomashp">openlayers.php?temas=_lbiomashp,_llocali&largura=800&altura=500&visiveis=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>Zoom para uma região</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=800&mapext=-68.39967%20-12.16172%20-62.67402%20-5.366808">openlayers.php?temas=_wbiomashp&largura=800&mapext=-68.39967
-12.16172 -62.67402 -5.366808</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=800&mapext=-68.39967%20-12.16172%20-62.67402%20-5.366808">openlayers.php?temas=_lbiomashp&largura=800&mapext=-68.39967
-12.16172 -62.67402 -5.366808</a>
</p>
</fieldset>
<fieldset>
<legend>Botões principais e barra de zoom maior</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10">openlayers.php?temas=_wbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10">openlayers.php?temas=_lbiomashp&largura=800&botoes=pan,zoombox,zoomtot,distancia,area,identifica&numzoomlevels=10</a>
</p>
</fieldset>
<fieldset>
<legend>Inclusão de pontos</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=800&pontos=-54%20-12%20-56%20-15">openlayers.php?temas=_wbiomashp&largura=800&pontos=-54
-12 -56 -15</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=800&pontos=-54%20-12%20-56%20-15">openlayers.php?temas=_lbiomashp&largura=800&pontos=-54
-12 -56 -15</a>
</p>
</fieldset>
<fieldset>
<legend>Camada adicional como fundo</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=800&fundo=_wbiomashp">openlayers.php?temas=_wbiomashp&largura=800&fundo=_wbiomashp</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=800&fundo=_lbiomashp&largura=800&fundo=_lbiomashp">openlayers.php?temas=_lbiomashp&largura=800&fundo=_lbiomashp</a>
</p>
</fieldset>
<fieldset>
<legend>KML</legend>
<p class="m">
Windows: <a target=_blank
href="openlayers.php?temas=_wbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml">openlayers.php?temas=_wbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml</a>
</p>
<p class="m">
Linux: <a target=_blank
href="openlayers.php?temas=_lbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml">openlayers.php?temas=_lbiomashp&largura=700&kml=http://localhost/i3geo/aplicmap/dados/sundials.kml</a>
</p>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<script src='../classesjs/compactados/mustache.js'></script>
<script src='../classesjs/compactados/dicionario_compacto.js'></script>
<script src='../classesjs/compactados/classe_util_compacto.js'></script>
<script src='../classesjs/compactados/classe_idioma_compacto.js'></script>
<script>
$(document).ready(function(){
i3GEO.configura = {"locaplic" : "..","sid": ""};
//$(".active").html($trad("util",g_traducao_util));
//mostraBotoesBT();
//$('.hidden').removeClass('hidden');
$.material.init();
});
</script>
</body>
</html>