Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] how to get the visible map reference?

ApplicationGIS.getActiveMap() will return the visible map. But for listening for changed map you have to register a part listener with the workbench.

From your view:
getSite().getPage().addPartListener( new IPartListener2() { ... } );

something like that.

Jesse

On 16-Feb-07, at 7:24 AM, Andrea Antonello wrote:

Hi, I'm trying to get the reference to the visible map.

I am creating a view that should listen to the map that gets visibility
focus. So the shown properties change when the visible map changes.

I remember I read something about listening to that kind of changes, but
I can't find it again. Can someone please link me back to the proper
docu page?

I'm not able to get the visible map from within a view extention.
I'm at the point:

ApplicationGIS.getActiveProject()

, but how to get further?

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



Back to the top