diff --git a/js/analise.js b/js/analise.js index ef0203a..f8e9da8 100644 --- a/js/analise.js +++ b/js/analise.js @@ -1011,158 +1011,6 @@ i3GEO.analise = mostra.innerHTML = texto; } } - }, - googleearth : { - pontosdistobj : { - xpt : [], - ypt : [], - dist : [], - distV : [], - xtela : [], - ytela : [], - ximg : [], - yimg : [], - linhas : [], - linhastemp : [] - }, - inicia : function() { - i3GEO.eventos.adicionaEventos("MOUSECLIQUE", [ - "i3GEO.analise.medeDistancia.googleearth.clique()" - ]); - i3GEO.eventos.adicionaEventos("MOUSEMOVE", [ - "i3GEO.analise.medeDistancia.googleearth.movimento()" - ]); - i3GEO.eventos.adicionaEventos("NAVEGAMAPA", [ - "i3GEO.analise.medeDistancia.fechaJanela()" - ]); - }, - clique : function() { - var pontosdistobj = i3GEO.analise.medeDistancia.googleearth.pontosdistobj, n, d, dd; - n = pontosdistobj.xpt.length; - pontosdistobj.xpt[n] = objposicaocursor.ddx; - pontosdistobj.ypt[n] = objposicaocursor.ddy; - pontosdistobj.xtela[n] = objposicaocursor.telax; - pontosdistobj.ytela[n] = objposicaocursor.telay; - pontosdistobj.ximg[n] = objposicaocursor.imgx; - pontosdistobj.yimg[n] = objposicaocursor.imgy; - pontosdistobj.dist[n] = 0; - if (n > 0) { - d = - i3GEO.calculo.distancia( - pontosdistobj.xpt[n - 1], - pontosdistobj.ypt[n - 1], - objposicaocursor.ddx, - objposicaocursor.ddy); - pontosdistobj.dist[n] = d + pontosdistobj.dist[n - 1]; - if ($i("pararraios") && $i("pararraios").checked === true) { - dd = - Math.sqrt(((Math.pow((pontosdistobj.xpt[n] - pontosdistobj.xpt[n - 1]), 2)) + (Math.pow( - (pontosdistobj.ypt[n] - pontosdistobj.ypt[n - 1]), - 2)))); - i3GEO.desenho.googleearth - .insereCirculo(pontosdistobj.xpt[n], pontosdistobj.ypt[n], dd, "", "divGeometriasTemp"); - } - if ($i("parartextos") && $i("parartextos").checked === true) { - i3GEO.desenho.googleearth.insereMarca( - d + " km", - objposicaocursor.ddx, - objposicaocursor.ddy, - "", - "divGeometriasTemp"); - } - // cria a linha ligando os dois ultimos pontos - i3GEO.desenho.googleearth.insereLinha( - pontosdistobj.xpt[n - 1], - pontosdistobj.ypt[n - 1], - pontosdistobj.xpt[n], - pontosdistobj.ypt[n], - "", - "divGeometriasTemp"); - } - }, - movimento : function() { - var n, d, r, da, pontosdistobj = i3GEO.analise.medeDistancia.googleearth.pontosdistobj, calculo = i3GEO.calculo; - n = pontosdistobj.xpt.length; - if (n > 0) { - d = - calculo.distancia( - pontosdistobj.xpt[n - 1], - pontosdistobj.ypt[n - 1], - objposicaocursor.ddx, - objposicaocursor.ddy); - r = calculo.direcao(pontosdistobj.xpt[n - 1], pontosdistobj.ypt[n - 1], objposicaocursor.ddx, objposicaocursor.ddy); - r = calculo.dd2dms(r, r); - r = r[0]; - d = d * 1; - da = d + pontosdistobj.dist[n - 1]; - i3GEO.analise.medeDistancia.googleearth.mostraParcial(d, da, r); - } - }, - /** - * Fecha a janela que mostra os dados Pergunta ao usuario se os graficos devem ser removidos Os graficos sao marcados com o - * atributo "origem" Os raios e pontos sao sempre removidos - */ - fechaJanela : function() { - temp = window.confirm($trad("x94")); - if (temp) { - i3GEO.desenho.googleearth.removePlacemark("divGeometriasTemp"); - } - i3GEO.eventos.removeEventos("MOUSECLIQUE", [ - "i3GEO.analise.medeDistancia.googleearth.clique()" - ]); - i3GEO.eventos.removeEventos("MOUSEMOVE", [ - "i3GEO.analise.medeDistancia.movimento.googleearth()" - ]); - i3GEO.eventos.removeEventos("NAVEGAMAPA", [ - "i3GEO.analise.medeDistancia.fechaJanela()" - ]); - }, - /** - * Mostra a totalizacao das linhas ja digitalizadas - */ - mostraTotal : function(trecho, total) { - var mostra = $i("mostradistancia_calculo"), texto; - if (mostra) { - texto = - "" + $trad("x96") - + ": " - + total.toFixed(3) - + " km" - + "
" - + $trad("x96") - + ": " - + (total * 1000).toFixed(2) - + " m" - + "
" - + $trad("x25") - + ": " - + i3GEO.calculo.metododistancia; - mostra.innerHTML = texto; - } - }, - /** - * Mostra o valor do trecho entre o ultimo ponto clicado e a posicao do mouse - */ - mostraParcial : function(trecho, parcial, direcao) { - var mostra = $i("mostradistancia_calculo_movel"), texto; - if (mostra) { - texto = - "" + $trad("x95") - + ": " - + trecho.toFixed(3) - + " km" - + "
" - + $trad("x97") - + ": " - + (parcial + trecho).toFixed(3) - + " km" - + "
" - + $trad("x23") - + " (DMS): " - + direcao; - mostra.innerHTML = texto; - } - } } }, /** @@ -1761,7 +1609,6 @@ i3GEO.analise = mostra.innerHTML = texto; } } - }, - googleearth : {} + } } }; \ No newline at end of file diff --git a/js/arvoredecamadas.js b/js/arvoredecamadas.js index 6350574..8f02da0 100644 --- a/js/arvoredecamadas.js +++ b/js/arvoredecamadas.js @@ -1874,23 +1874,11 @@ i3GEO.arvoreDeCamadas = } if (tipo === "ligartodos") { t = i3GEO.arvoreDeCamadas.listaLigadosDesligados("marca"); - if (i3GEO.util.in_array(i3GEO.Interface.ATUAL, [ - "googleearth", - "openlayers", - "googlemaps" - ])) { - return; - } + return; } if (tipo === "desligartodos") { t = i3GEO.arvoreDeCamadas.listaLigadosDesligados("desmarca"); - if (i3GEO.util.in_array(i3GEO.Interface.ATUAL, [ - "googleearth", - "openlayers", - "googlemaps" - ])) { - return; - } + return; } // // zera o contador de tempo @@ -1956,23 +1944,11 @@ i3GEO.arvoreDeCamadas = todos.push(c.value); if (tipo === "marca") { c.checked = true; - if (i3GEO.util.in_array(ATUAL, [ - "googleearth", - "openlayers", - "googlemaps" - ])) { - i3GEO.Interface[ATUAL].ligaDesliga(c); - } + i3GEO.Interface[ATUAL].ligaDesliga(c); } if (tipo === "desmarca") { c.checked = false; - if (i3GEO.util.in_array(ATUAL, [ - "googleearth", - "openlayers", - "googlemaps" - ])) { - i3GEO.Interface[ATUAL].ligaDesliga(c); - } + i3GEO.Interface[ATUAL].ligaDesliga(c); } } } diff --git a/js/barradebotoes.js b/js/barradebotoes.js index acb81bb..9fbb933 100755 --- a/js/barradebotoes.js +++ b/js/barradebotoes.js @@ -1601,10 +1601,6 @@ i3GEO.barraDeBotoes = i3GEO.barraDeBotoes.escondeJanelaAjuda(); return; } - if (i3GEO.Interface.ATUAL === "googleearth") { - objeto.title = mensagem; - return; - } if (!divmensagem && this.TIPOAJUDA !== "balao") { divmensagem = document.createElement("div"); divmensagem.id = "divMensagemBarraDeBotoes"; diff --git a/js/configura.js b/js/configura.js index cc75196..e7f2f89 100755 --- a/js/configura.js +++ b/js/configura.js @@ -415,11 +415,6 @@ i3GEO.configura = id : "omenudataInterface4", text : "Google Maps", url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/black_gm.phtml?'+i3GEO.configura.sid" - }, - { - id : "omenudataInterface5", - text : "Google Earth", - url : "javascript:window.location = i3GEO.configura.locaplic+'/interface/googleearth.phtml?'+i3GEO.configura.sid" } ] ] @@ -1395,7 +1390,7 @@ i3GEO.configura = i3GEO.util.mudaCursor(i3GEO.configura.cursores, temp, i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); } i3GEO.barraDeBotoes.ativaIcone("identifica"); - if (i3GEO.Interface.ATUAL === "googleearth" || i3GEO.eventos.cliquePerm.ativo === false) { + if (i3GEO.eventos.cliquePerm.ativo === false) { // caso seja um clique para desativar if (i3GEO.eventos.MOUSECLIQUE.toString().search(i3GEO.configura.funcaoIdentifica) >= 0) { i3GEO.eventos.MOUSECLIQUE.remove(i3GEO.configura.funcaoIdentifica); @@ -1431,7 +1426,7 @@ i3GEO.configura = i3GEO.util.mudaCursor(i3GEO.configura.cursores, temp, i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); } i3GEO.barraDeBotoes.ativaIcone("identificaBalao"); - if (i3GEO.Interface.ATUAL === "googleearth" || i3GEO.eventos.cliquePerm.ativo === false) { + if (i3GEO.eventos.cliquePerm.ativo === false) { // na opcao de identificacao so e permitido um evento i3GEO.eventos.MOUSECLIQUE = [ i3GEO.configura.funcaoTip diff --git a/js/desenho.js b/js/desenho.js index ec19b6b..b7681c6 100755 --- a/js/desenho.js +++ b/js/desenho.js @@ -170,11 +170,7 @@ i3GEO.desenho = * {string} - expessura do contorno */ addBox : function(xmin, ymin, xmax, ymax, namespace, strokeColor, strokeWidth) { - if (i3GEO.Interface.ATUAL != "googleearth") { - return i3GEO.desenho[i3GEO.Interface.ATUAL].addBox(xmin, ymin, xmax, ymax, namespace, strokeColor, strokeWidth); - } else { - return false; - } + return i3GEO.desenho[i3GEO.Interface.ATUAL].addBox(xmin, ymin, xmax, ymax, namespace, strokeColor, strokeWidth); }, /** * Function: moveBox @@ -194,11 +190,7 @@ i3GEO.desenho = * {numeric} - novo ymax */ moveBox : function(box, xmin, ymin, xmax, ymax) { - if (i3GEO.Interface.ATUAL != "googleearth") { - return i3GEO.desenho[i3GEO.Interface.ATUAL].moveBox(box, xmin, ymin, xmax, ymax); - } else { - return false; - } + return i3GEO.desenho[i3GEO.Interface.ATUAL].moveBox(box, xmin, ymin, xmax, ymax); }, /** * Function: removeBox @@ -239,11 +231,7 @@ i3GEO.desenho = * */ addPin : function(x, y, w, h, imagem, namespace, centro, funcaoclick) { - if (i3GEO.Interface.ATUAL != "googleearth") { - return i3GEO.desenho[i3GEO.Interface.ATUAL].addPin(x, y, w, h, imagem, namespace, centro); - } else { - return false; - } + return i3GEO.desenho[i3GEO.Interface.ATUAL].addPin(x, y, w, h, imagem, namespace, centro); }, /** * Function: removePins @@ -255,9 +243,7 @@ i3GEO.desenho = * {string} - namespace que identifica o grupo de marcas que serao removidas */ removePins : function(namespace) { - if (i3GEO.Interface.ATUAL != "googleearth") { - i3GEO.desenho[i3GEO.Interface.ATUAL].removePins(namespace); - } + i3GEO.desenho[i3GEO.Interface.ATUAL].removePins(namespace); }, /** * Function: movePin @@ -273,9 +259,7 @@ i3GEO.desenho = * {numeric} - novo y */ movePin : function(pin, x, y) { - if (i3GEO.Interface.ATUAL != "googleearth") { - i3GEO.desenho[i3GEO.Interface.ATUAL].movePin(pin, x, y); - } + i3GEO.desenho[i3GEO.Interface.ATUAL].movePin(pin, x, y); }, /** * Section: i3GEO.desenho.openlayers @@ -650,87 +634,6 @@ i3GEO.desenho = } } } - }, - /** - * Section: i3GEO.desenho.googleearth - * - * Funções utilizadas quando o mapa baseia-se na interface GoogleEarth - */ - googleearth : { - insereMarca : function(description, ddx, ddy, name, snippet) { - if (typeof (console) !== 'undefined') - console.info("i3GEO.Interface.googleearth.insereMarca()"); - - var placemark = i3GeoMap.createPlacemark(''), point = i3GeoMap.createPoint(''); - placemark.setName(name); - point.setLatitude(ddy); - point.setLongitude(ddx); - placemark.setGeometry(point); - if (description !== "") { - placemark.setDescription(description); - } - placemark.setSnippet(snippet); - i3GeoMap.getFeatures().appendChild(placemark); - }, - // - // código obtido em - // http://code.google.com/intl/pt-BR/apis/earth/documentation/geometries.html - // - insereCirculo : function(centerLng, centerLat, radius, name, snippet) { - function makeCircle(centerLat, centerLng, radius) { - var ring = i3GeoMap.createLinearRing(''), steps = 25, i, pi2 = Math.PI * 2, lat, lng; - for (i = 0; i < steps; i++) { - lat = centerLat + radius * Math.cos(i / steps * pi2); - lng = centerLng + radius * Math.sin(i / steps * pi2); - ring.getCoordinates().pushLatLngAlt(lat, lng, 0); - } - return ring; - } - var polygonPlacemark = i3GeoMap.createPlacemark(''), poly = i3GeoMap.createPolygon(''), polyStyle; - poly.setAltitudeMode(i3GeoMap.ALTITUDE_RELATIVE_TO_GROUND); - polygonPlacemark.setGeometry(poly); - polygonPlacemark.getGeometry().setOuterBoundary(makeCircle(centerLat, centerLng, radius)); - polygonPlacemark.setName(name); - polygonPlacemark.setSnippet(snippet); - polygonPlacemark.setStyleSelector(i3GeoMap.createStyle('')); - polyStyle = polygonPlacemark.getStyleSelector().getPolyStyle(); - polyStyle.setFill(0); - i3GeoMap.getFeatures().appendChild(polygonPlacemark); - }, - insereLinha : function(xi, yi, xf, yf, name, snippet) { - var lineStringPlacemark = i3GeoMap.createPlacemark(''), lineString, lineStyle; - lineStringPlacemark.setName(name); - lineString = i3GeoMap.createLineString(''); - lineString.setAltitudeMode(i3GeoMap.ALTITUDE_RELATIVE_TO_GROUND); - lineStringPlacemark.setGeometry(lineString); - lineString.getCoordinates().pushLatLngAlt(yi, xi, 0); - lineString.getCoordinates().pushLatLngAlt(yf, xf, 0); - - lineStringPlacemark.setStyleSelector(i3GeoMap.createStyle('')); - lineStringPlacemark.setSnippet(snippet); - lineStyle = lineStringPlacemark.getStyleSelector().getLineStyle(); - lineStyle.setWidth(3); - - i3GeoMap.getFeatures().appendChild(lineStringPlacemark); - }, - removePlacemark : function(nome) { - var features = i3GeoMap.getFeatures(), n = features.getChildNodes().getLength(), i, nfeatures = []; - for (i = 0; i < n; i++) { - try { - if (features.getChildNodes().item(i).getName() === nome || features.getChildNodes().item(i).getDescription() === nome - || features.getChildNodes().item(i).getSnippet() === nome) { - // features.getChildNodes().item(i).setVisibility(false); - nfeatures.push(features.getChildNodes().item(i)); - // features.removeChild(features.getChildNodes().item(i)); - } - } catch (e) { - } - } - n = nfeatures.length; - for (i = 0; i < n; i++) { - features.removeChild(nfeatures[i]); - } - } } }; // YAHOO.log("carregou classe desenho", "Classes i3geo"); diff --git a/js/eventos.js b/js/eventos.js index aba5459..3d29384 100644 --- a/js/eventos.js +++ b/js/eventos.js @@ -435,7 +435,7 @@ i3GEO.eventos = posicaoMouseMapa : function(e) { // Utilizado pelo mapa de referencia // os eventos da interface googlemaps são definidos em i3GEO.Interface - // se a interface for googleearth, googlemaps ou openlayers, os eventos são controlados + // se a interface for googlemaps ou openlayers, os eventos são controlados // pelas respectivas apis // caso contrário, o i3geo irá controlar os cálculos // diff --git a/js/gadgets.js b/js/gadgets.js index e0addb8..bceb118 100644 --- a/js/gadgets.js +++ b/js/gadgets.js @@ -676,9 +676,6 @@ i3GEO.gadgets = ins += ''; ins += ''; objid.innerHTML = ins; - if (i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.parametrosYUI.iframe = true; - } i3GEOoMenuBarLocal = new YAHOO.widget.MenuBar(id, i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.parametrosYUI); onMenuBarBeforeRender = function(p_sType, p_sArgs) { var nomeMenu = "", nomeSub, subs = i3GEO.configura.oMenuData.submenus, conta = 0; @@ -736,9 +733,6 @@ i3GEO.gadgets = case "googlemaps": temp = "omenudataInterface4"; break; - case "googleearth": - temp = "omenudataInterface5"; - break; } if (temp != "" && $i(temp)) { i3GEOoMenuBar.getMenuItem(temp).cfg.setProperty("checked", true); @@ -775,11 +769,6 @@ i3GEO.gadgets = "omenudataArquivos3", "omenudataJanelas1", "omenudataJanelas3" ]; break; - case "googleearth": - temp = [ - "omenudataFerramentas7b", "omenudataArquivos3", "omenudataJanelas3", "omenudataFerramentas2a" - ]; - break; } ; n = temp.length; diff --git a/js/ini_i3geo.js b/js/ini_i3geo.js index 648a96f..411bf47 100644 --- a/js/ini_i3geo.js +++ b/js/ini_i3geo.js @@ -446,10 +446,6 @@ var i3GEO = { temp = i3GEO.util.base64decode(preferencias.preferenciasbase64); i3GEO.mapa.aplicaPreferencias(temp); } - - if (i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.configura.guardaExtensao = false; - } // obtem o cookie com a ultima extensao geografica if (i3GEO.configura.guardaExtensao === true) { if (i3GEO.Interface.openlayers.googleLike === true) { @@ -979,9 +975,6 @@ var i3GEO = { case "googlemaps": i3GEO.Interface.googlemaps.zoom2extent(i3GEO.parametros.mapexten); break; - case "googleearth": - i3GEO.Interface.googleearth.zoom2extent(i3GEO.parametros.mapexten); - break; case "openlayers": i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.mapexten); i3geoOL.updateSize(); diff --git a/js/interface.js b/js/interface.js index c913b3e..61636be 100755 --- a/js/interface.js +++ b/js/interface.js @@ -196,7 +196,7 @@ i3GEO.Interface = * * Valores: * - * openlayers|googlemaps|googleearth + * openlayers|googlemaps * * Default: * @@ -414,9 +414,6 @@ i3GEO.Interface = if (i3GEO.Interface.ATUAL === "googlemaps") { i3GEO.Interface.googlemaps.adicionaKml("foo"); } - if (i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.Interface.googleearth.adicionaKml("foo"); - } if (i3GEO.Interface.ATUAL === "openlayers") { i3GEO.Interface.openlayers.adicionaKml("foo"); } @@ -3025,714 +3022,5 @@ i3GEO.Interface = i3GEO.Interface.googlemaps.PARAMETROSLAYER += "&" + parametro + "=" + valor; i3GEO.Interface.googlemaps.redesenha(); } - }, - /** - * Section: i3GEO.Interface.GoogleEarth - * - * Interface com motor de navegação baseado na API Google Earth - * - * Namespace: - * - * i3GEO.Interface.googleearth - * - * Utilizado quando - * - * i3GEO.Interface.ATUAL = "googleearth" - * - * Cria o objeto i3GeoMap que pode receber os métodos da API. - */ - googleearth : { - /** - * Variable: PARAMETROSLAYER - * - * Parametros adicionais que são inseridos na URL que define cada layer - * - * Tipo: - * - * {string} - */ - PARAMETROSLAYER : "&TIPOIMAGEM=" + i3GEO.configura.tipoimagem, - /** - * String acrescentada a url de cada tile para garantir a remoção do cache local - * - * Tipo: - * - * {string} - */ - posfixo : "", - /** - * Propriedade: GADGETS - * - * Lista dos controles específicos da API do Google Earth que serão inseridos ou não no mapa - * - * Tipo: - * - * {object} - * - * Default: - * - * (start code) - * - * i3GEO.Interface.googleearth.GADGETS = { setMouseNavigationEnabled : true, setStatusBarVisibility : true, - * setOverviewMapVisibility : true, setScaleLegendVisibility : true, setAtmosphereVisibility : true, setGridVisibility : false, - * getSun : false, LAYER_BORDERS : true, LAYER_BUILDINGS : false, LAYER_ROADS : false, LAYER_TERRAIN : true } (end) - */ - GADGETS : { - setMouseNavigationEnabled : true, - setStatusBarVisibility : true, - setOverviewMapVisibility : true, - setScaleLegendVisibility : true, - setAtmosphereVisibility : true, - setGridVisibility : false, - getSun : false, - LAYER_BORDERS : true, - LAYER_BUILDINGS : false, - LAYER_ROADS : false, - LAYER_TERRAIN : true - }, - POSICAOTELA : [ - 0, 0 - ], - aguarde : "", - ligaDesliga : function(obj) { - var layer = i3GEO.Interface.googleearth.retornaObjetoLayer(obj.value), temp = function() { - i3GEO.mapa.legendaHTML.atualiza(); - }, desligar = "", ligar = ""; - if (obj.checked) { - i3GEO.arvoreDeCamadas.alteraPropCamadas("status", "2", obj.value); - ligar = obj.value; - } else { - i3GEO.arvoreDeCamadas.alteraPropCamadas("status", "0", obj.value); - desligar = obj.value; - } - layer.setVisibility(obj.checked); - if (desligar !== "" || ligar !== "") { - i3GEO.php.ligatemas(temp, desligar, ligar); - } - }, - atualizaTema : function(retorno, tema) { - var layer = i3GEO.Interface.googleearth.retornaObjetoLayer(tema), hr = layer.getLink().getHref(), objtemas; - // layer.getLink().setRefreshMode(2); - // layer.getLink().setRefreshInterval(1); - hr = hr.replace("&&&&&&&&&&&&&&&&&&&", ""); - layer.getLink().setHref(hr + "&"); - if (retorno === "") { - return; - } - objtemas = i3GEO.arvoreDeCamadas.converteChaveValor2normal(retorno.data.temas); - i3GEO.Interface.googleearth.recalcPar(); - try { - i3GEO.arvoreDeCamadas.atualiza(objtemas); - } catch (e) { - i3GEO.arvoreDeCamadas.atualiza(); - } - i3GEO.janela.fechaAguarde(); - }, - redesenha : function() { - i3GEO.Interface.googleearth.posfixo += "&"; - var nlayers = i3GEO.arvoreDeCamadas.CAMADAS.length, i, camada, indice; - for (i = 0; i < nlayers; i++) { - camada = i3GEO.arvoreDeCamadas.CAMADAS[i]; - indice = i3GEO.Interface.googleearth.retornaObjetoLayer(camada.name); - if (indice !== false) { - try { - i3GeoMap.getFeatures().removeChild(indice); - } catch (e) { - } - } - } - i3GEO.Interface.googleearth.criaLayers(); - }, - cria : function(w, h) { - var i, i3GeoMap3d, texto; - i3GEO.configura.listaDePropriedadesDoMapa = { - "propriedades" : [ - { - text : "p2", - url : "javascript:i3GEO.mapa.dialogo.tipoimagem()" - }, { - text : "p3", - url : "javascript:i3GEO.mapa.dialogo.opcoesLegenda()" - }, { - text : "p4", - url : "javascript:i3GEO.mapa.dialogo.opcoesEscala()" - }, { - text : "p8", - url : "javascript:i3GEO.mapa.dialogo.queryMap()" - }, { - text : "p9", - url : "javascript:i3GEO.mapa.dialogo.corFundo()" - }, { - text : "p10", - url : "javascript:i3GEO.mapa.dialogo.gradeCoord()" - } - ] - }; - texto = "" + $trad("p13") + "", "listaPropriedades", i3GEO.configura.listaDePropriedadesDoMapa); - - i3GEO.barraDeBotoes.INCLUIBOTAO.zoomli = false; - i3GEO.barraDeBotoes.INCLUIBOTAO.pan = false; - i3GEO.barraDeBotoes.INCLUIBOTAO.zoomtot = false; - i3GEO.barraDeBotoes.INCLUIBOTAO.zoomproximo = false; - i3GEO.barraDeBotoes.INCLUIBOTAO.zoomanterior = false; - i3GEO.Interface.IDMAPA = "i3GeoMap3d"; - if (i3GEO.arvoreDeCamadas.ATIVATEMA === "") { - i3GEO.arvoreDeCamadas.ATIVATEMA = "i3GEO.Interface.googleearth.ligaDesliga(this)"; - } - i = $i(i3GEO.Interface.IDCORPO); - if (i) { - i3GeoMap3d = document.createElement("div"); - i3GeoMap3d.style.width = w + "px"; - i3GeoMap3d.style.height = h + "px";// + 45; - i.style.height = h;// + 45; - i3GeoMap3d.id = "i3GeoMap3d"; - i3GeoMap3d.style.zIndex = 0; - i.appendChild(i3GeoMap3d); - } - google.load("earth", "1"); - }, - inicia : function() { - google.earth.createInstance("i3GeoMap3d", i3GEO.Interface.googleearth.iniciaGE, i3GEO.Interface.googleearth.falha); - }, - iniciaGE : function(object) { - var montaMapa = function(retorno) { - i3GeoMap = object; - i3GeoMap.getWindow().setVisibility(true); - i3GEO.Interface.googleearth.zoom2extent(i3GEO.parametros.mapexten); - i3GEO.Interface.googleearth.criaLayers(); - - var options = i3GeoMap.getOptions(), layerRoot = i3GeoMap.getLayerRoot(); - - options.setMouseNavigationEnabled(i3GEO.Interface.googleearth.GADGETS.setMouseNavigationEnabled); - options.setStatusBarVisibility(i3GEO.Interface.googleearth.GADGETS.setStatusBarVisibility); - options.setOverviewMapVisibility(i3GEO.Interface.googleearth.GADGETS.setOverviewMapVisibility); - options.setScaleLegendVisibility(i3GEO.Interface.googleearth.GADGETS.setScaleLegendVisibility); - options.setAtmosphereVisibility(i3GEO.Interface.googleearth.GADGETS.setAtmosphereVisibility); - options.setGridVisibility(i3GEO.Interface.googleearth.GADGETS.setGridVisibility); - - layerRoot.enableLayerById(i3GeoMap.LAYER_BORDERS, i3GEO.Interface.googleearth.GADGETS.LAYER_BORDERS); - layerRoot.enableLayerById(i3GeoMap.LAYER_BUILDINGS, i3GEO.Interface.googleearth.GADGETS.LAYER_BUILDINGS); - layerRoot.enableLayerById(i3GeoMap.LAYER_ROADS, i3GEO.Interface.googleearth.GADGETS.LAYER_ROADS); - layerRoot.enableLayerById(i3GeoMap.LAYER_TERRAIN, i3GEO.Interface.googleearth.GADGETS.LAYER_TERRAIN); - i3GeoMap.getSun().setVisibility(i3GEO.Interface.googleearth.GADGETS.getSun); - i3GeoMap.getNavigationControl().setVisibility(i3GeoMap.VISIBILITY_SHOW); - - i3GEO.Interface.googleearth.POSICAOTELA = YAHOO.util.Dom.getXY($i(i3GEO.Interface.IDCORPO)); - // - // i3GEO.arvoreDeCamadas.CAMADAS é definido na - // inicialização (classe_i3geo) - // - i3GEO.arvoreDeCamadas.cria("", i3GEO.arvoreDeCamadas.CAMADAS, i3GEO.configura.sid, i3GEO.configura.locaplic); - i3GEO.gadgets.mostraMenuSuspenso(); - i3GEO.gadgets.mostraMenuLista(); - i3GEO.Interface.googleearth.ativaBotoes(); - i3GEO.gadgets.mostraInserirKml("inserirKml"); - if (i3GEO.arvoreDeCamadas.MOSTRALISTAKML === true) { - i3GEO.Interface.googleearth.adicionaListaKml(); - } - i3GEO.Interface.googleearth.registraEventos(); - - if (i3GEO.parametros.kmlurl !== "") { - i3GEO.Interface.googleearth.adicionaKml(true, i3GEO.parametros.kmlurl, i3GEO.parametros.kmlurl, false); - } - // executa função de finalização, se - // houver - if (YAHOO.lang.isFunction(i3GEO.finalizaAPI)) { - i3GEO.finalizaAPI.call(); - } else { - if (i3GEO.finalizaAPI != "") { - eval(i3GEO.finalizaAPI); - } - } - i3GEO.configura.iniciaFerramentas.executa(); - }; - i3GEO.php.googleearth(montaMapa); - }, - criaLayers : function() { - var nlayers = i3GEO.arvoreDeCamadas.CAMADAS.length - 1, i, camada, indice, layer; - for (i = nlayers; i >= 0; i--) { - camada = i3GEO.arvoreDeCamadas.CAMADAS[i]; - indice = i3GEO.Interface.googleearth.retornaIndiceLayer(camada.name); - layer = i3GEO.Interface.googleearth.retornaObjetoLayer(camada.name); - // nao mude para === - if (indice == false) { - layer = i3GEO.Interface.googleearth.insereLayer(camada.name); - } - try { - if (camada.status != 0) { - layer.setVisibility(true); - } else { - layer.setVisibility(false); - } - } catch (e) { - } - } - }, - insereLayer : function(nomeLayer) { - var kmlUrl = - i3GEO.configura.locaplic + "/classesphp/mapa_googleearth.php?REQUEST=GetKml&g_sid=" - + i3GEO.configura.sid - + "&layer=" - + nomeLayer - + i3GEO.Interface.googleearth.PARAMETROSLAYER - + "&r=" - + Math.random(), linki3geo = i3GeoMap.createLink(''), nl = i3GeoMap.createNetworkLink(''); - linki3geo.setHref(kmlUrl + i3GEO.Interface.googleearth.posfixo); - nl.setLink(linki3geo); - nl.setFlyToView(false); - nl.setName(nomeLayer); - i3GeoMap.getFeatures().appendChild(nl); - return nl; - }, - retornaIndiceLayer : function(nomeLayer) { - var n = i3GeoMap.getFeatures().getChildNodes().getLength(), indice = 0, i = 0; - if (n > 0) { - for (i = 0; i < n; i++) { - if (i3GeoMap.getFeatures().getChildNodes().item(i).getName() === nomeLayer) { - indice = i; - } - } - return indice; - } else { - return false; - } - }, - aplicaOpacidade : function(opacidade) { - var n = i3GeoMap.getFeatures().getChildNodes().getLength(), i; - for (i = 0; i < n; i++) { - i3GeoMap.getFeatures().getChildNodes().item(i).setOpacity(opacidade); - } - }, - retornaObjetoLayer : function(nomeLayer) { - var n = i3GeoMap.getFeatures().getChildNodes().getLength(), indice = false, i; - for (i = 0; i < n; i++) { - if (i3GeoMap.getFeatures().getChildNodes().item(i).getName() === nomeLayer) { - indice = i3GeoMap.getFeatures().getChildNodes().item(i); - } - } - return indice; - }, - registraEventos : function() { - google.earth.addEventListener(i3GeoMap.getView(), "viewchangeend", function(e) { - i3GEO.Interface.googleearth.recalcPar(); - i3GEO.eventos.cliquePerm.status = false; - // guarda a extensao geografica atual - i3GEO.navega.registraExt(i3GEO.parametros.mapexten); - }); - google.earth.addEventListener(i3GeoMap.getGlobe(), 'mousemove', function(event) { - d = i3GEO.calculo.dd2dms(event.getLongitude(), event.getLatitude()); - objposicaocursor = { - ddx : event.getLongitude(), - ddy : event.getLatitude(), - dmsx : d[0], - dmsy : d[1], - imgx : event.getClientX(), - imgy : event.getClientY(), - telax : event.getClientX() + i3GEO.Interface.googleearth.POSICAOTELA[0], - telay : event.getClientY() + i3GEO.Interface.googleearth.POSICAOTELA[1] - }; - i3GEO.eventos.mousemoveMapa(); - }); - google.earth.addEventListener(i3GeoMap.getGlobe(), 'click', function(event) { - if (i3GEO.Interface.googleearth.aguarde.visibility === "hidden") { - i3GEO.eventos.mousecliqueMapa(); - } else { - i3GEO.Interface.googleearth.aguarde.visibility = "hidden"; - } - }); - }, - recalcPar : function() { - var bounds; - bounds = i3GeoMap.getView().getViewportGlobeBounds(); - i3GEO.parametros.mapexten = bounds.getWest() + " " + bounds.getSouth() + " " + bounds.getEast() + " " + bounds.getNorth(); - // i3GEO.parametros.mapscale = - // i3GEO.Interface.googlemaps.calcescala(); - }, - falha : function() { - alert("Falhou. Vc precisa do plugin instalado"); - }, - ativaBotoes : function() { - var cabecalho = function() { - i3GEO.barraDeBotoes.ativaIcone(""); - }, minimiza = function() { - i3GEO.janela.minimiza("i3GEOF.ferramentasGE"); - }, janela = - i3GEO.janela - .cria("230px", "110px", "", "", "", $trad("u15a"), "i3GEOF.ferramentasGE", false, "hd", cabecalho, minimiza); - $i("i3GEOF.ferramentasGE_c").style.zIndex = 100; - i3GEO.barraDeBotoes.TEMPLATEBOTAO = - '
 '; - i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2", "", false, "200", "200", janela[2].id); - i3GEO.barraDeBotoes.ativaBotoes(); - i3GEO.Interface.googleearth.aguarde = $i("i3GEOF.ferramentasGE_imagemCabecalho").style; - $i("i3GEOF.ferramentasGE_minimizaCabecalho").style.right = "0px"; - $i("i3GEOF.ferramentasGE").lastChild.style.display = "none"; - i3GEO.ajuda.abreJanela(); - }, - balao : function(texto, completo, ddx, ddy) { - var placemark = i3GeoMap.createPlacemark(''), point = i3GeoMap.createPoint(''), b; - point.setLatitude(ddy); - point.setLongitude(ddx); - placemark.setGeometry(point); - b = i3GeoMap.createHtmlStringBalloon(''); - b.setContentString("
" + texto + "
"); - b.setFeature(placemark); - i3GeoMap.setBalloon(b); - }, - /** - * Function: adicionaKml - * - * Insere no mapa uma camada KML com base na API do Google Earth - * - * As camadas adicionadas são crescentadas na árvore de camadas - * - * A lista de nomes dos objetos geoXml criados é mantida em i3GEO.mapas.GEOXML - * - * Parametros: - * - * {Boolean} - define se o mapa será deslocado para encaixar o KML - * - * {String} - URL do arquivo KML. Se não for definido, a URL será obtida do INPUT com id = i3geo_urlkml (veja - * i3GEO.gadgets.mostraInserirKml) - * - * {string} - titulo que aparecerá na árvore. Se não for definido, será calculado aleatoriamente. - * - * {boolean} - indica se a camada estará ativa ou não. Se não for definido, será considerado como - * true - */ - adicionaKml : function(pan, url, titulo, ativo) { - var ngeoxml, i; - if (!$i("arvoreCamadasKml")) { - i3GEO.Interface.googleearth.criaArvoreKML(); - } - ngeoxml = "geoXml_" + i3GEO.mapa.GEOXML.length; - if (arguments.length === 1) { - i = $i("i3geo_urlkml"); - if (i) { - url = i.value; - } else { - url = ""; - } - titulo = ngeoxml; - ativo = false; - } - if (arguments.length === 2) { - titulo = ngeoxml; - ativo = true; - } - if (arguments.length === 2) { - ativo = true; - } - if (url === "") { - return; - } - i3GEO.mapa.GEOXML.push(ngeoxml); - linki3geokml = i3GeoMap.createLink(''); - if (url.split("http").length === 1) { - url = i3GEO.util.protocolo() + "://" + window.location.host + url; - } - linki3geokml.setHref(url); - eval(ngeoxml + " = i3GeoMap.createNetworkLink('')"); - eval(ngeoxml + ".setLink(linki3geokml)"); - if (i3GEO.arvoreDeCamadas.MOSTRALISTAKML === false) { - i3GEO.arvoreDeCamadas.MOSTRALISTAKML = true; - i3GEO.Interface.googleearth.criaArvoreKML(); - } - i3GEO.Interface.googleearth.adicionaNoArvoreGoogle(url, titulo, ativo, ngeoxml); - }, - adicionaListaKml : function() { - var monta = function(retorno) { - var raiz, nraiz, i; - raiz = retorno.data.canais; - nraiz = raiz.length; - for (i = 0; i < nraiz; i++) { - i3GEO.Interface.googleearth.adicionaKml(false, raiz[i].link, raiz[i].title, false); - } - }; - i3GEO.php.listaRSSwsARRAY(monta, "KML"); - }, - /** - * - * Acrescenta na árvore de camadas um novo tema no nó que mostra os arquivos KML inseridos no mapa - * - * Os temas são incluídos em um nó chamado "Google Earth". - * - * Para obter esse nó utilize var node = i3GEO.arvoreDeCamadas.ARVORE.getNodeByProperty("idkml","raiz"); - * - * Parametros: - * - * url {string} - url do arquivo KML - * - * nomeOverlay {string} - título do tema - * - * ativo {boolean} - indica o estado do checkbox - * - * id {string} - nome do objeto GGeoXml - */ - adicionaNoArvoreGoogle : function(url, nomeOverlay, ativo, id) { - var node, d, nodekml; - if (!$i("arvoreCamadasKml")) { - i3GEO.Interface.googleearth.criaArvoreKML(); - } - if (arguments.length === 2) { - ativo = true; - id = nomeOverlay; - } - if (arguments.length === 2) { - id = nomeOverlay; - } - node = i3GEO.Interface.googleearth.ARVORE.getNodeByProperty("idkml", "raiz"); - html = - ""; - d = { - html : html - }; - nodekml = new YAHOO.widget.HTMLNode(d, node, true, true); - nodekml.enableHighlight = false; - nodekml.isleaf = true; - i3GEO.Interface.googleearth.ARVORE.draw(); - i3GEO.Interface.googleearth.ARVORE.collapseAll(); - node.expand(); - }, - criaArvoreKML : function() { - var arvore, a, root, titulo, d, node; - arvore = $i("arvoreCamadasKml"); - if (!arvore) { - d = document.createElement("div"); - d.id = "arvoreCamadasKml"; - d.style.top = "40px"; - a = $i(i3GEO.arvoreDeCamadas.IDHTML); - if (a) { - a.parentNode.appendChild(d); - } else { - return; - } - } - i3GEO.Interface.googleearth.ARVORE = new YAHOO.widget.TreeView("arvoreCamadasKml"); - root = i3GEO.Interface.googleearth.ARVORE.getRoot(); - titulo = "
Google Earth Kml
"; - d = { - html : titulo, - idkml : "raiz" - }; - node = new YAHOO.widget.HTMLNode(d, root, true, true); - node.enableHighlight = false; - if (i3GEO.parametros.editor === "sim") { - d = - new YAHOO.widget.HTMLNode( - { - html : "Editar cadastro", - idmenu : "", - enableHighlight : false, - expanded : false - }, - node); - } - }, - existeLink : function(url) { - var existe = false, features = i3GeoMap.getFeatures(), n = features.getChildNodes().getLength(), i; - for (i = 0; i < n; i++) { - try { - if (features.getChildNodes().item(i).getLink().getHref() === url) { - existe = true; - } - } catch (e) { - } - } - return (existe); - }, - ativaDesativaLink : function(url, valor) { - var features = i3GeoMap.getFeatures(), n = features.getChildNodes().getLength(), i; - for (i = 0; i < n; i++) { - try { - if (features.getChildNodes().item(i).getLink().getHref() === url) { - features.getChildNodes().item(i).setVisibility(valor); - } - } catch (e) { - } - } - }, - /** - * - * Ativa ou desativa uma camada do nó de layers KML - * - * Parametro: - * - * obj {object} - objeto do tipo checkbox que foi ativado/desativado - */ - ativaDesativaCamadaKml : function(obj) { - var url = eval(obj.value + ".getLink().getHref()"), existe = i3GEO.Interface.googleearth.existeLink(url); - if (!obj.checked) { - i3GEO.Interface.googleearth.ativaDesativaLink(url, false); - } else { - if (existe === false) { - eval("i3GeoMap.getFeatures().appendChild(" + obj.value + ")"); - } else { - i3GEO.Interface.googleearth.ativaDesativaLink(url, true); - } - } - }, - zoom2extent : function(mapexten) { - var r = 6378700, lng2, lng1, lat1, lat2, ret = mapexten.split(" "), fov = 32, camera = - i3GeoMap.getView().copyAsCamera(i3GeoMap.ALTITUDE_RELATIVE_TO_GROUND), dy, dx, d, dist, alt; - lng2 = (ret[0] * 1); - lng1 = (ret[2] * 1); - lat1 = (ret[1] * 1); - lat2 = (ret[3] * 1); - camera.setLatitude((lat1 + lat2) / 2.0); - camera.setLongitude((lng1 + lng2) / 2.0); - camera.setHeading(0.0); - camera.setTilt(0.0); - // determine if the rectangle is portrait or landscape - dy = Math.max(lat1, lat2) - Math.min(lat1, lat2); - dx = Math.max(lng1, lng2) - Math.min(lng1, lng2); - // find the longest side - d = Math.max(dy, dx); - // convert the longest side degrees to radians - d = d * Math.PI / 180.0; - // find half the chord length - dist = r * Math.tan(d / 2); - // get the altitude using the chord length - alt = dist / (Math.tan(fov * Math.PI / 180.0)); - if (alt < 0) { - alt = alt * -1; - } - camera.setAltitude(alt); - i3GeoMap.getView().setAbstractView(camera); - }, - alteraParametroLayers : function(parametro, valor) { - parametro = parametro.toUpperCase(); - var reg = new RegExp(parametro + "([=])+([a-zA-Z0-9_]*)"); - i3GEO.Interface.googleearth.PARAMETROSLAYER = i3GEO.Interface.googleearth.PARAMETROSLAYER.replace(reg, ""); - i3GEO.Interface.googleearth.PARAMETROSLAYER += "&" + parametro + "=" + valor; - i3GEO.Interface.googleearth.redesenha(); - } } }; diff --git a/js/janela.js b/js/janela.js index 184fbc7..f808b7e 100755 --- a/js/janela.js +++ b/js/janela.js @@ -310,10 +310,6 @@ i3GEO.janela = modal = false; } ifr = false; - if (i3GEO.Interface && i3GEO.Interface != undefined && i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.janela.TRANSICAOSUAVE = false; - ifr = true; - } fix = "contained"; if (nx === "" || nx === "center") { fix = true; @@ -454,13 +450,6 @@ i3GEO.janela = janela.render(); janela.bringToTop(); - // ajusta estilos e outras características da janela criada - if (navm && id !== "i3geo_janelaMensagens" - && i3GEO.Interface - && i3GEO.Interface != undefined - && i3GEO.Interface.ATUAL === "googleearth") { - janela.moveTo(0, 0); - } if (ifr === true) { janela.iframe.style.zIndex = 4; } @@ -771,11 +760,7 @@ i3GEO.janela = altura = 70; janela.body.style.padding = "5px"; janela.body.style.backgroundColor = "yellow"; - if (i3GEO.Interface && i3GEO.Interface.ATUAL != "googleearth") { - janela.body.style.height = "0px"; - } else { - janela.body.style.height = altura + "px"; - } + janela.body.style.height = "0px"; janela.body.style.overflow = "hidden"; janela.body.onclick = function() { var janela = YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg"); @@ -790,20 +775,18 @@ i3GEO.janela = janela.moveTo(pos[0], pos[1]); } janela.show(); - if (i3GEO.Interface && i3GEO.Interface.ATUAL != "googleearth") { - attributes = { - height : { - to : altura - } - }; - anim = new YAHOO.util.Anim(janela.body, attributes, .5, YAHOO.util.Easing.easeNone); - anim.onComplete.subscribe(function() { - janela.body.style.overflow = "auto"; - janela.body.style.display = "block"; - $i("i3geoTempoMsg_c").style.zIndex = 100000; - }); - anim.animate(); - } + attributes = { + height : { + to : altura + } + }; + anim = new YAHOO.util.Anim(janela.body, attributes, .5, YAHOO.util.Easing.easeNone); + anim.onComplete.subscribe(function() { + janela.body.style.overflow = "auto"; + janela.body.style.display = "block"; + $i("i3geoTempoMsg_c").style.zIndex = 100000; + }); + anim.animate(); // YAHOO.util.Dom.setStyle(temp,"opacity",i3GEO.janela.OPACIDADEAGUARDE // / 100); if (!tempo) { @@ -811,22 +794,18 @@ i3GEO.janela = } setTimeout(function() { var attributes, anim, janela = YAHOO.i3GEO.janela.managerAguarde.find("i3geoTempoMsg"); - if (i3GEO.Interface && i3GEO.Interface.ATUAL != "googleearth") { - if (janela) { - janela.body.style.overflow = "hidden"; - attributes = { - height : { - to : 0 - } - }; - anim = new YAHOO.util.Anim(janela.body, attributes, .5, YAHOO.util.Easing.easeNone); - anim.onComplete.subscribe(function() { - janela.destroy(); - }); - anim.animate(); - } - } else { - janela.destroy(); + if (janela) { + janela.body.style.overflow = "hidden"; + attributes = { + height : { + to : 0 + } + }; + anim = new YAHOO.util.Anim(janela.body, attributes, .5, YAHOO.util.Easing.easeNone); + anim.onComplete.subscribe(function() { + janela.destroy(); + }); + anim.animate(); } }, tempo); diff --git a/js/mapa.js b/js/mapa.js index 57a6641..5fab2e3 100644 --- a/js/mapa.js +++ b/js/mapa.js @@ -1343,11 +1343,6 @@ i3GEO.mapa = i3GEO.eventos.removeEventos("MOUSEPARADO", [ "verificaTip()" ]); - // na interface googleearth verifica se existe mais eventos no - // mouseclick - if (i3GEO.Interface.ATUAL === "googleearth" && i3GEO.eventos.MOUSECLIQUE.length > 1) { - return; - } // javascript nao foi carregado if (typeof (i3GEOF.identifica) === 'undefined') { // javascript que sera carregado @@ -1383,11 +1378,6 @@ i3GEO.mapa = } else { i3GEO.eventos.cliquePerm.status = false; } - // na interface googleearth verifica se existe mais eventos no - // mouseclick - if (i3GEO.Interface.ATUAL === "googleearth" && i3GEO.eventos.MOUSECLIQUE.length > 1) { - return; - } var ntemas, etiquetas, j, retorna, x = objposicaocursor.ddx, y = objposicaocursor.ddy; if(x === -1 || y === -1){ return; @@ -1405,9 +1395,6 @@ i3GEO.mapa = if (etiquetas === false) { return; } - if (i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.Interface.googleearth.aguarde.visibility = "visible"; - } retorna = function(retorno) { var textoCompleto = "", textoSimples = "", textoTempCompleto = "", textoTempSimples = "", classeCor, temp, n, mostra, res, temas, ntemas, titulo, tips, j, ntips, r, ds, nds, s, configura = diff --git a/js/php.js b/js/php.js index fd9ed53..5287fea 100644 --- a/js/php.js +++ b/js/php.js @@ -178,10 +178,6 @@ i3GEO.php = i3GeoMap.overlayMapTypes.removeAt(indice); } } - if (i3GEO.Interface.ATUAL === "googleearth") { - indice = i3GEO.Interface.googleearth.retornaObjetoLayer(temas[i]); - i3GeoMap.getFeatures().removeChild(indice); - } } funcao.call(funcao, retorno); }; @@ -622,11 +618,6 @@ i3GEO.php = i3GEO.Interface.googlemaps.zoom2extent(ext); } break; - case "googleearth": - if (atualiza === true) { - i3GEO.Interface.googleearth.zoom2extent(ext); - } - break; case "openlayers": i3GEO.Interface.openlayers.zoom2ext(ext); break; @@ -809,10 +800,6 @@ i3GEO.php = i3GEO.Interface.googlemaps.zoom2extent(retorno.data.variaveis.mapexten); i3GEO.atualizaParametros(retorno.data.variaveis); break; - case "googleearth": - i3GEO.Interface.googleearth.zoom2extent(retorno.data.variaveis.mapexten); - i3GEO.atualizaParametros(retorno.data.variaveis); - break; case "openlayers": i3GEO.Interface.openlayers.zoom2ext(retorno.data.variaveis.mapexten); i3GEO.atualizaParametros(retorno.data.variaveis); @@ -837,10 +824,6 @@ i3GEO.php = i3GEO.atualizaParametros(retorno.data.variaveis); i3GEO.Interface.googlemaps.zoom2extent(i3GEO.parametros.mapexten); break; - case "googleearth": - i3GEO.atualizaParametros(retorno.data.variaveis); - i3GEO.Interface.googleearth.zoom2extent(i3GEO.parametros.mapexten); - break; case "openlayers": i3GEO.atualizaParametros(retorno.data.variaveis); i3GEO.Interface.openlayers.zoom2ext(i3GEO.parametros.mapexten); @@ -1128,21 +1111,6 @@ i3GEO.php = cpJSON.call(p, "googlemaps", retorno, par); }, /** - * googleearth - * - * Ativa a interface googleearth - */ - googleearth : function(funcao) { - i3GEO.php.verifica(); - var p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php", par = "funcao=googleearth&g_sid=" + i3GEO.configura.sid, retorno = - function(retorno) { - i3GEO.janela.fechaAguarde("googleearth"); - funcao.call(funcao, retorno); - }; - i3GEO.janela.abreAguarde("googleearth", $trad("o1")); - cpJSON.call(p, "googleearth", retorno, par); - }, - /** * openlayers * * Ativa a interface openlayers @@ -1164,11 +1132,6 @@ i3GEO.php = i3GEO.php.verifica(); var p = i3GEO.configura.locaplic + "/classesphp/mapa_controle.php", par = "funcao=corpo&tipoimagem=" + tipoimagem + "&g_sid=" + i3GEO.configura.sid + "&interface=" + i3GEO.Interface.ATUAL; - // recalcula a extensão geográfica do parametro i3GEO.parametros.mapexten - if (i3GEO.Interface.ATUAL === "googleearth") { - i3GEO.Interface.googleearth.recalcPar(); - par += "&mapexten=" + i3GEO.parametros.mapexten; - } cpJSON.call(p, "corpo", funcao, par); }, /** diff --git a/js/plugini3geo.js b/js/plugini3geo.js index 7f2e254..6844e00 100644 --- a/js/plugini3geo.js +++ b/js/plugini3geo.js @@ -452,11 +452,6 @@ i3GEO.pluginI3geo = + "&nomevariavel=heatmap_dados&nomevariavelConfig=heatmap_config"; i3GEO.util.scriptTag(p, criaLayer, nomeScript); } - }, - googleearth : { - inicia : function() { - alert("Plugin nao disponivel"); - } } }, /** -- libgit2 0.21.2