TMap.OnBeforeMapChange

property OnBeforeMapChange Access mode: RW Event handler type: TOnBeforeMapChangeEvent Event handler declaration: procedure (Next: string);

Description
Event property called after the map is loaded, which means all and  are not yet there for the Next map.