I'm trying to figure out if this can be done.
Some background: our application has the ability to change map styles on-the-fly, which includes switching to a style with layers not in the current style. In this case they are added to the overlay. This works fine but a customer has just realized if the map is already rotated when a style with new layers is loaded this does not work. After doing some debugging I have found that layers in the map before the rotation is performed have a private variable, pivotVertex, set to a vertex appropriate for the extent in their RotationProjections. When I create a new RotationProjection I can supply the angle and the unit, but since this value is private it cannot be accessed. With pivotVertex stuck at 0,0 the new layers are not visible, presumably because that layer is being rotated around 0,0, which is probably on another continent somewhere.
This application originally used MapSuite 4.5. Back then we had to supply each layer has its own RotationProjection because of all sorts of errors and the advice to NOT share a single RotationProjection among multiple layers. I really don't want to venture back into that area.
Is there a way around this?
Thanks,
Allen