Thanks fixing this now.
On 9-Sep-08, at 4:12 PM, Ugo Taddei wrote:

Hello,

I have a listener interested in viewport bounds events. It doesn't work
as I expect and I think the problem is in line 942 (in trunk)

private void fireNotification( Envelope oldBounds ) {
       if (eNotificationRequired()) {
           eNotify(new ENotificationImpl(this, Notification.SET,
                   RenderPackage.VIEWPORT_MODEL__BOUNDS, oldBounds,
bounds));
//*****bad event type should read EventType.BOUNDS
           notifyListeners(new ViewportModelEvent(this, EventType.CRS,
bounds, oldBounds));
       }
   }

The event should be
new ViewportModelEvent(this, EventType.BOUNDS, bounds, oldBounds)

Cheers,

Ugo

--
Ugo Taddei

Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone  (+49)2241-14-2184    fax    (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to