Visual-inertial navigation system (VINS) and Global Navigation Satellite System (GNSS) are key technologies in urban navigation, commonly used in drones and self-driving cars. VINS, however, suffers from drift errors over time, while GNSS often experiences signal blockage effects in complex urban environments, leading to unreliable positioning. To address this, we propose a GNSS-visual-inertial integrated navigation system for drift-free and robust positioning in such environments. This system integrates GNSS real-time kinematic, inertial measurement unit (IMU) pre-integration, and visual features within a factor graph optimization framework. To address the instability of GNSS signals, a dual-layer identification algorithm based on a dynamic Weibull distribution velocity threshold and a terrain-constrained elevation abrupt change confidence model is proposed for robust GNSS screening. Furthermore, a dynamic multi-source weight balancing mechanism leveraging visual residuals is introduced, which quantifies visual measurement quality via a segmented covariance adjustment function and adaptively adjusts the measurement weights of GNSS, visual, and IMU, thereby enhancing the system’s robustness. The effectiveness of our system is validated through real-world vehicle experiments in multiple urban scenarios. Results show that the proposed system outperforms VINS-Fusion, with a positioning root mean square error (RMSE) of 0.32 m and 1.03 m in two campus scenes, representing improvements of 69.23 and 69.97 , respectively. In complex urban environments, the system achieves 98.5 positioning availability (RMSE m), compared to 76.2 for VINS-fusion.