Hello,
in our project we are using maps that have a very common base layer structure, meaning there is always the same background layer and there are always the same basic foreground layers which are then supplemented by the layers required for the indivdual use case.
In MapSuite 9 I’ve achieved this by inheriting your map object and initializing all the standard layers in the constructor. Afterwards I only had to add the inidividual layers for the use case and saved a lot of time.
When I try this inheritance model in V12 I’m - for instance - greeted by an NullReference exception when I try to add an overlay in the constructor. It seems that the Overlays collection is not initialized at this time.
The only way I could achieve a similar behaviour was by subscribing to the Loaded event in my own child object and setting up all the standard stuff there. But as the control ist already rendered at this time this means that there is a new rendering process required which I would like to avoid.
Is there any way around this?
Thank you.
Peter