Your phone has a built-in GPS that is still visible and can be tracked when in Airplane mode for emergency purposes because it is based on satellites. Any other location-sharing apps you might have are generally disabled and won't work during airplane mode.