I'm trying to place a map in a dialog box. I've got this mostly working
but none of the tools will work with the map (pan, zoom etc).
I've tracked this down to the fact that because the map is placed in a
dialog box and not an IWorkbenchPart it is never added to the
ActiveMapTrackers set of maps. When the tools fire a viewport changed
event the render manager never refreshes. In the RenderManagerAdapters
class this code exists:
case RenderPackage.VIEWPORT_MODEL__BOUNDS: {
if (ApplicationGIS.getActiveMap() != null
&& ApplicationGIS.getVisibleMaps().contains(
ApplicationGIS.getActiveMap())) {
refreshDirtyArea(msg);
}
break;
}
My map is not the active map therefore it is never refreshed.
I've worked around this for now by creating my own tools and calling
map.getRenderManager().refresh(null) manually on the tool mouseup events.
I'm wondering if I can manually set the ActiveMap somehow, or if there
is better way to resolve this issue.
Thanks,
Emily
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel