Thanks for the fast answer again. Now it works. ben -------- Original-Nachricht -------- Datum: Wed, 30 Aug 2006 11:32:31 -0700 Von: Jesse Eichar <[EMAIL PROTECTED]> An: User-friendly Desktop Internet GIS <[email protected]> Betreff: Re: [udig-devel] where to add a listener for a map
> There is an extension point called > net.refractions.udig.project.mapInterceptor. One of the interceptors > that you can extend is an interceptor that is called as soon as the > map has been created but before anything has been done with it. You > could use that to add your listener. > > Jesse > > On 30-Aug-06, at 11:23 AM, Benedikt Malecki wrote: > > > Thank you for the fast answer, > > > > your idea sounds good, but I want to add a listener before a map > > exists. the listener should fire, if after a map is loaded. then i > > can add the listener to the viewportmodell of the active map. > > is there any way to get the viewportmodell without an active map? > > > > ben > > -------- Original-Nachricht -------- > > Datum: Wed, 30 Aug 2006 10:48:25 -0700 > > Von: Jesse Eichar <[EMAIL PROTECTED]> > > An: User-friendly Desktop Internet GIS <udig- > > [EMAIL PROTECTED]> > > Betreff: Re: [udig-devel] where to add a listener for a map > > > >> Hi there are a number of listeners that you can add. But it sounds > >> like you need to add a ViewportModelListener to the viewport model. > >> Here's an example: > >> > >> ApplicationGIS.getActiveMap().getViewportModel > >> ().addViewportModelListener( yourListener ); > >> > >> Jesse > >> > >> On 30-Aug-06, at 10:39 AM, [EMAIL PROTECTED] wrote: > >> > >>> Hi, > >>> > >>> I´m ben, student from cologne. I´m working with udig in a project at > >>> university. So there are a lot of questions about udig, one of > >>> them is > >>> the following: > >>> Where can I add a listener which will be fired if the main view > >>> of the > >>> map is updated or changed (as example zooming in and out). > >>> > >>> Many thanks and greetings > >>> > >>> ben > >>> > >>> _______________________________________________ > >>> 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 > > > > -- > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer > > _______________________________________________ > > 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 -- Echte DSL-Flatrate dauerhaft für 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
