It's not the cheapest, but the Garmin 'constant power cable' can be configured to provide power for a period after the ignition is off: 10 minutes, 24 hours or always on. The last one of course will steadily drain the battery, but the Garmin shuts off if the voltage drops to 12v.

Garmin