<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Buenas, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin-bottom:0cm;line-height:100%;background:transparent">Tengo un script que hace una búsqueda y después centra la viste en ella, con esta instrucción:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">view.getMap().getViewPort().setEnvelope(geom.getEnvelope())</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">que en la versión 2.4 me funciona y en la 2.5.1 me da este error:</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">AttributeError: “NoneType” object has no attribute “getEnvelope”</p>
<p style="margin-bottom:0cm;line-height:100%;background:transparent">¿que problema puede haber?</p>
Salud, suerte y saludos</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Ovidio</div>
</body>
</html>