if (map.getRenderManager() == null) {
if( viewport instanceof ViewportPaneTiledSWT) {
map.setRenderManagerInternal(new TiledRenderManagerDynamic());
}
else {
map.setRenderManagerInternal(new RenderManagerDynamic());
}
}
renderManager = map.getRenderManagerInternal();
viewport.setRenderManager(renderManager);
renderManager.setMapDisplay(viewport);