The reason it turns off the GPS off again, even though it not in an
exit task, is explained here :
http://tasker.dinglisch.net/userguide/userguide_settings.html.
Your profile has a context of Maps in the foreground that turns on the
GPS, so when Maps is not in the foreground the setting of GPS on is
restored to off.
One solution with two user defined variables:
Profile 1
Context - Application Google Maps
Entry Task - set %MAPSRUNNING to ON
set %MAPSGONE to OFF
Exit Task - set %MAPSGONE to ON
Profile 2
Context - State Variable Value %MAPSRUNNING = ON
Entry Task - turn GPS On
Profile 3
Context - State Variable Value %MAPSGONE = ON
Entry Task - Wait 120 seconds
set %MAPSRUNNING = OFF
I haven't tried this but I think it should allow up to 120 seconds
with maps not being the foreground app before shutting off the GPS