Commit f78ca135a6623b1a06954426d406c072c709b340
1 parent
e93889d6
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
20 additions
and
1 deletions
Show diff stats
ferramentas/selecao/index.js
| @@ -489,7 +489,7 @@ i3GEOF.selecao = { | @@ -489,7 +489,7 @@ i3GEOF.selecao = { | ||
| 489 | callbacks:{ | 489 | callbacks:{ |
| 490 | done: function(feature){ | 490 | done: function(feature){ |
| 491 | i3GEOF.selecao.box.openlayers.removeControle(); | 491 | i3GEOF.selecao.box.openlayers.removeControle(); |
| 492 | - var xminymin = i3geoOL.getLonLatFromPixel({ | 492 | + var g,estilo = i3GEO.desenho.estilos[i3GEO.desenho.estiloPadrao],f,xminymin = i3geoOL.getLonLatFromPixel({ |
| 493 | x: feature.left, | 493 | x: feature.left, |
| 494 | y: feature.bottom | 494 | y: feature.bottom |
| 495 | }), | 495 | }), |
| @@ -502,6 +502,25 @@ i3GEOF.selecao = { | @@ -502,6 +502,25 @@ i3GEOF.selecao = { | ||
| 502 | $i("i3GEOselecaotipoOperacao").value, | 502 | $i("i3GEOselecaotipoOperacao").value, |
| 503 | xminymin.lon+" "+xminymin.lat+" "+xmaxymax.lon+" "+xmaxymax.lat | 503 | xminymin.lon+" "+xminymin.lat+" "+xmaxymax.lon+" "+xmaxymax.lat |
| 504 | ); | 504 | ); |
| 505 | + //TODO | ||
| 506 | + /* | ||
| 507 | + g = new OpenLayers.Bounds(xminymin.lon,xminymin.lat,xmaxymax.lon,xmaxymax.lat); | ||
| 508 | + f = new OpenLayers.Feature.Vector(g.toGeometry(), { | ||
| 509 | + origem : "selecao" | ||
| 510 | + }, { | ||
| 511 | + graphicName : "square", | ||
| 512 | + pointRadius : 10, | ||
| 513 | + graphicOpacity : 1, | ||
| 514 | + strokeWidth : 1, | ||
| 515 | + strokeColor : estilo.linecolor, | ||
| 516 | + fillColor : estilo.fillcolor, | ||
| 517 | + fillOpacity : 0.3 | ||
| 518 | + }); | ||
| 519 | + i3GEO.desenho.layergrafico.addFeatures([f]); | ||
| 520 | + if (i3GEO.Interface) { | ||
| 521 | + i3GEO.Interface.openlayers.sobeLayersGraficos(); | ||
| 522 | + } | ||
| 523 | + */ | ||
| 505 | } | 524 | } |
| 506 | } | 525 | } |
| 507 | }); | 526 | }); |