I just checked your fix and it's really nice. Thanks
Is there a way to get the centering done at cockpit launch ?
From what I saw, it only centers the view when selection change but not when first creating map.
Also I edited the fit call to add animation and padding so it looks nicer on ponctuals:
currView.fit(source.getExtent(),{padding: [10,10,10,10],duration: 1000});