Commit d7f21506617c0f5e35cb5383a82002834c07a372
1 parent
455fb4cd
Exists in
master
and in
7 other branches
Inclusão de variável que permite incluir qualquer opção da API do google Maps na…
… criação do mapa (na interface GoogleMaps)
Showing
1 changed file
with
16 additions
and
1 deletions
Show diff stats
classesjs/classe_interface.js
... | ... | @@ -1253,6 +1253,21 @@ i3GEO.Interface = { |
1253 | 1253 | */ |
1254 | 1254 | googlemaps:{ |
1255 | 1255 | /* |
1256 | + Propriedade: MAPOPTIONS | |
1257 | + | |
1258 | + Objeto contendo opções que serão utilizadas no construtor do mapa conforme a API do GoogleMaps | |
1259 | + | |
1260 | + Exemplo de uso | |
1261 | + | |
1262 | + i3GEO.Interface.googlemaps.MAPOPTIONS = {maxZoom:5}; | |
1263 | + | |
1264 | + https://developers.google.com/maps/documentation/javascript/reference#MapOptions | |
1265 | + | |
1266 | + Tipo: | |
1267 | + {MapOptions} | |
1268 | + */ | |
1269 | + MAPOPTIONS: {scaleControl:true}, | |
1270 | + /* | |
1256 | 1271 | Propriedade: OPACIDADE |
1257 | 1272 | |
1258 | 1273 | Valor da opacidade das camadas i3geo do mapa |
... | ... | @@ -1384,7 +1399,7 @@ i3GEO.Interface = { |
1384 | 1399 | var sw,ne, |
1385 | 1400 | dobra = $i("i3GEOdobraPagina"); |
1386 | 1401 | try{ |
1387 | - i3GeoMap = new google.maps.Map($i(i3GEO.Interface.IDMAPA),{scaleControl:true}); | |
1402 | + i3GeoMap = new google.maps.Map($i(i3GEO.Interface.IDMAPA),i3GEO.Interface.googlemaps.MAPOPTIONS); | |
1388 | 1403 | } |
1389 | 1404 | catch(e){alert(e);return;} |
1390 | 1405 | if(dobra) | ... | ... |