From 097f2b4f94007e14d6ddfd4052fa96921369e103 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 17 Oct 2014 15:08:30 +0000 Subject: [PATCH] --- classesjs/classe_mapa.js | 1 + classesjs/classe_util.js | 37 +++++++++++++++++++++---------------- css/geral.css | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 16 deletions(-) diff --git a/classesjs/classe_mapa.js b/classesjs/classe_mapa.js index eec7d99..324ea75 100644 --- a/classesjs/classe_mapa.js +++ b/classesjs/classe_mapa.js @@ -1110,6 +1110,7 @@ i3GEO.mapa = i3GEO.janela.TIPS.push('marcaIdentifica'); pos = i3GEO.util.posicionaImagemNoMapa("marcaIdentifica"); + balloon = new Balloon(); BalloonConfig(balloon, 'GBox'); balloon.delayTime = 0; diff --git a/classesjs/classe_util.js b/classesjs/classe_util.js index 70249f7..dc491af 100644 --- a/classesjs/classe_util.js +++ b/classesjs/classe_util.js @@ -628,25 +628,28 @@ i3GEO.util = { h {String} - (opcional) altura da imagem mouseover - funcao que sera executada no evento mouseover - + Retorno: - + array [boolean,obj] - indica se foi criado ou se ja existia | objeto criado */ - criaPin: function(id,imagem,w,h,mouseover){ + criaPin: function(id,imagem,w,h,mouseover,onde){ if(typeof(console) !== 'undefined'){console.info("i3GEO.util.criaPin()");} - if(arguments.length < 1 || id === ""){ + if(!id || id === ""){ id = "boxpin"; } - if(arguments.length < 2 || imagem === ""){ + if(!imagem || imagem === ""){ imagem = i3GEO.configura.locaplic+'/imagens/marker.png'; } - if(arguments.length < 3 || w === ""){ + if(!w || w === ""){ w = 21; } - if(arguments.length < 4 || h === ""){ + if(!h || h === ""){ h = 25; } + if(!onde || onde === ""){ + onde = document.body; + } var p = $i(id); if (!p){ var novoel = document.createElement("img"); @@ -667,7 +670,7 @@ i3GEO.util = { else if(mouseover){ novoel.onmouseover = mouseover; } - document.body.appendChild(novoel); + onde.appendChild(novoel); i3GEO.util.PINS.push(id); return [true,novoel]; } @@ -693,18 +696,19 @@ i3GEO.util = { */ posicionaImagemNoMapa: function(id,x,y){ //TODO permitir posicionar imagem usando lat long - if(typeof(console) !== 'undefined'){console.warn("i3GEO.util.posicionaImagemNoMapa()");} var i,mx,my; - if(x && x != "") - {objposicaocursor.telax = x;} - if(y && y != "") - {objposicaocursor.telay = y;} + if(!x){ + x = objposicaocursor.telax; + } + if(!y){ + y = objposicaocursor.telay; + } i = $i(id); mx = parseInt(i.style.width,10) / 2; my = parseInt(i.style.height,10) / 2; - i.style.top = objposicaocursor.telay - my + "px"; - i.style.left = objposicaocursor.telax - mx + "px"; - return [objposicaocursor.telay - my,objposicaocursor.telax - mx]; + i.style.top = y - my + "px"; + i.style.left = x - mx + "px"; + return [y - my,x - mx]; }, /* Function: escondePin @@ -2794,6 +2798,7 @@ i3GEO.util = { '-//W3C//DTD XHTML 1.0 Transitional//EN', 'http://www.w3.org/TR/html4/loose.dtd' ); + //var newDoctype = document.implementation.createDocumentType('HTML'); if (document.doctype) { document.doctype.parentNode.replaceChild(newDoctype, document.doctype); } diff --git a/css/geral.css b/css/geral.css index 7a03fd8..2239467 100644 --- a/css/geral.css +++ b/css/geral.css @@ -1082,6 +1082,42 @@ h1 { } } +.i3geoForm, .i3geoForm150 { + width: 252px; + overflow: hidden; + background: #F8F8F8; + border: 1px solid #DDDDDD; + height: 22px; + border-radius: 2px; +} + +.i3geoForm150 { + width: 150px; +} + +.i3geoFormIconeEdita { + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; + @media (-webkit-min-device-pixel-ratio: 2), + (min-resolution: 192dpi) { + background: transparent url("../imagens/gisicons/edit2.png") no-repeat scroll 100% 5px; + background-size: 16px 144px; + } +} + +.i3geoForm input, .i3geoForm150 input { + width: 90%; + height: 22px; + border: 0; + box-shadow: none; + line-height: 1.5; + -webkit-appearance: none; + -moz-appearance: none; + text-indent: 0.01px; + text-overflow: ''; + font-size: 12px; + appearance: none; +} + /*hack opera */ @media all and (-webkit-min-device-pixel-ratio:10000) , not all and (-webkit-min-device-pixel-ratio:0) { -- libgit2 0.21.2