Commit a2209496e6581a3c5568fa8ac15f1b532eaee058

Authored by Edmar Moretti
1 parent f91f1e86

Corrige a opção de zoom por box na interface googlemaps

classesjs/classe_interface.js
... ... @@ -227,7 +227,7 @@ i3GEO.Interface = {
227 227 {i3GEO.Interface.atual2gm.initemp();}
228 228 }
229 229 catch(e){
230   - i3GEO.util.scriptTag("http://www.google.com/jsapi?callback=i3GEO.Interface.atual2gm.loadMaps","","",true);
  230 + i3GEO.util.scriptTag("http://www.google.com/jsapi?callback=i3GEO.Interface.atual2gm.loadMaps","","",false);
231 231 }
232 232 },
233 233 loadMaps: function(){
... ... @@ -263,7 +263,7 @@ i3GEO.Interface = {
263 263 {i3GEO.Interface.atual2ol.initemp();}
264 264 }
265 265 catch(e){
266   - i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/pacotes/openlayers/OpenLayers211.js.php","i3GEO.Interface.atual2ol.initemp()","",true);
  266 + i3GEO.util.scriptTag(i3GEO.configura.locaplic+"/pacotes/openlayers/OpenLayers211.js.php","i3GEO.Interface.atual2ol.initemp()","",false);
267 267 }
268 268 },
269 269 initemp: function(){
... ...
css/geral.css
... ... @@ -202,6 +202,19 @@ h1 {padding:.25em .5em;background-color:#ccc;}
202 202 background: url(../pacotes/yui270/build/container/img/corner_resize.gif) left bottom no-repeat;
203 203 cursor: se-resize;
204 204 }
  205 +#googlemapsdiv {
  206 + -moz-user-select: -moz-none;
  207 + -khtml-user-select: none;
  208 + -webkit-user-select: none;
  209 + /*
  210 + Introduced in IE 10.
  211 + See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  212 + */
  213 + -ms-user-select: none;
  214 + user-select: none;
  215 +}
  216 +
  217 +
205 218 /*hack opera */
206 219 @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
207 220 { .inputsb {border:1px solid black} }
... ...
css/i3geo46.css
... ... @@ -193,6 +193,17 @@ z-index: 3000;
193 193 background: url(../pacotes/yui270/build/container/img/corner_resize.gif) left bottom no-repeat;
194 194 cursor: se-resize;
195 195 }
  196 +#googlemapsdiv {
  197 +-moz-user-select: -moz-none;
  198 +-khtml-user-select: none;
  199 +-webkit-user-select: none;
  200 +/*
  201 +Introduced in IE 10.
  202 +See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  203 +*/
  204 +-ms-user-select: none;
  205 +user-select: none;
  206 +}
196 207 /*hack opera */
197 208 @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
198 209 { .inputsb {border:1px solid black} }
... ...
css/i3geo46.css.php
... ... @@ -193,6 +193,17 @@ z-index: 3000;
193 193 background: url(../pacotes/yui270/build/container/img/corner_resize.gif) left bottom no-repeat;
194 194 cursor: se-resize;
195 195 }
  196 +#googlemapsdiv {
  197 +-moz-user-select: -moz-none;
  198 +-khtml-user-select: none;
  199 +-webkit-user-select: none;
  200 +/*
  201 +Introduced in IE 10.
  202 +See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  203 +*/
  204 +-ms-user-select: none;
  205 +user-select: none;
  206 +}
196 207 /*hack opera */
197 208 @media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)
198 209 { .inputsb {border:1px solid black} }
... ...
pacotes/google/keydragzoom.js.php
... ... @@ -66,19 +66,19 @@
66 66 computedStyle = h.ownerDocument.defaultView.getComputedStyle(h, "");
67 67 if (computedStyle) {
68 68 // The computed styles are always in pixel units (good!)
69   - bw.top = parseInt(computedStyle.borderTopWidth, 10) + "px" || 0 + "px";
70   - bw.bottom = parseInt(computedStyle.borderBottomWidth, 10) + "px" || 0 + "px";
71   - bw.left = parseInt(computedStyle.borderLeftWidth, 10) + "px" || 0 + "px";
72   - bw.right = parseInt(computedStyle.borderRightWidth, 10) + "px" || 0 + "px";
  69 + bw.top = parseInt(computedStyle.borderTopWidth, 10) || 0;
  70 + bw.bottom = parseInt(computedStyle.borderBottomWidth, 10) || 0;
  71 + bw.left = parseInt(computedStyle.borderLeftWidth, 10) || 0;
  72 + bw.right = parseInt(computedStyle.borderRightWidth, 10) || 0;
73 73 return bw;
74 74 }
75 75 } else if (document.documentElement.currentStyle) { // MSIE
76 76 if (h.currentStyle) {
77 77 // The current styles may not be in pixel units so try to convert (bad!)
78   - bw.top = parseInt(toPixels(h.currentStyle.borderTopWidth), 10) + "px" || 0 + "px";
79   - bw.bottom = parseInt(toPixels(h.currentStyle.borderBottomWidth), 10) + "px" || 0 + "px";
80   - bw.left = parseInt(toPixels(h.currentStyle.borderLeftWidth), 10) + "px" || 0 + "px";
81   - bw.right = parseInt(toPixels(h.currentStyle.borderRightWidth), 10) + "px" || 0 + "px";
  78 + bw.top = parseInt(toPixels(h.currentStyle.borderTopWidth), 10) || 0;
  79 + bw.bottom = parseInt(toPixels(h.currentStyle.borderBottomWidth), 10) || 0;
  80 + bw.left = parseInt(toPixels(h.currentStyle.borderLeftWidth), 10) || 0;
  81 + bw.right = parseInt(toPixels(h.currentStyle.borderRightWidth), 10) || 0;
82 82 return bw;
83 83 }
84 84 }
... ...