Cesium-based highway stake number dynamic labeling and adaptive display method and system
By acquiring the endpoints of highway lines within the viewport, adaptively calculating the station display interval, and performing collision detection and filtering, the static limitations, uncontrollable density, low coordinate transformation accuracy, and lag in interactive feedback of station annotation on the Cesium 3D Earth platform are solved, achieving deep integration and smooth interaction between station numbers and business data.
Patent Information
- Application Number
- CN202611429811.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the annotation of highway station numbers on the Cesium 3D Earth platform has static limitations, uncontrollable annotation density, low coordinate transformation accuracy, and delayed interactive feedback, and lacks linkage with business data.
By acquiring the endpoints of the highway within the viewport, adaptively calculating the station display interval, performing collision detection and filtering, and dynamically rendering in the Cesium scene, combined with business data linkage, the associated display of station numbers and roadside facilities is realized.
It achieves dynamic updating of station markings with viewport, adaptive density control, high-precision coordinate transformation, smooth interactive experience, and deep integration with business data, solving the problems in existing technologies.
Smart Images

Figure CN123181761A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of three-dimensional geographic information system technology, specifically to a method and system for dynamic labeling and adaptive display of highway station numbers based on Cesium. Background Technology
[0002] In the surveying, design, construction, operation, and maintenance of highways, station numbers are important identifiers representing highway mileage, typically expressed in the format "KXX+XXX". In 3D geographic information systems, integrating station information with 3D terrain scenes has significant practical value for business scenarios such as route surveying, defect location, and maintenance decision-making.
[0003] In existing technologies, the main problems with station marking on the Cesium 3D Earth platform are as follows: Limitations of static annotation: Traditional methods typically use fixed locations to annotate station numbers. When the user zooms or pans the map, the station number annotations cannot be dynamically updated with the viewport range, resulting in a mismatch between the station number information and the current field of view.
[0004] Uncontrollable label density: When too many station numbers are displayed within the viewport, the labels overlap and obscure each other, severely affecting the visualization effect; when too few are displayed, sufficient mileage reference information cannot be provided.
[0005] Low coordinate transformation accuracy: Existing technology uses a simple ray intersection method, which does not take into account terrain undulations and line-of-sight obstruction, resulting in inaccurate stationing.
[0006] Delayed interactive feedback: There is a significant delay in updating station markers when users drag the map or switch perspectives.
[0007] Lack of linkage with business data: Station number information cannot be effectively linked with facilities along the route such as bridges, culverts, and tunnels.
[0008] In summary, a dynamic labeling and adaptive display method for highway stationing is needed to solve problems such as overlapping labels, slow response, and mismatch with viewport in traditional stationing labeling methods. Summary of the Invention
[0009] To address the shortcomings of existing technologies, this invention provides a method and system for dynamic labeling and adaptive display of highway stationings based on Cesium, aiming to solve technical problems such as dynamic updating of stationings with viewport, adaptive density control, high-precision coordinate transformation, and linkage with business data.
[0010] To achieve the above objectives, the present invention provides the following technical solution: a method for dynamic labeling and adaptive display of highway station numbers in Cesium, comprising: Get the two endpoints of the highway line within the current viewport; The station display interval is adaptively calculated based on the viewport range; Generate the station sequence within the viewport area; Perform collision detection and filtering on the station number sequence; The processed station sequence is dynamically rendered in the Cesium scene; The station number is linked with the business data of the facilities along the route.
[0011] Furthermore, obtaining the two endpoints of the highway line within the current viewport range includes: Obtain the current canvas width and height through the Cesium scene object, and also obtain the camera parameters; The geographic coordinates of the starting and ending points of the highway to be detected are converted into Cesium 3D Cartesian coordinates, and then the coordinate transformation method is called to map them to screen coordinates. Determine if the screen coordinates fall within the visible area of the canvas. If the start or end point is within the viewport, record it directly as the endpoint. If neither the starting point nor the ending point is within the viewport, or only one endpoint is within the viewport, then the intersection of the road line and the viewport boundary is calculated. Specifically, the three-dimensional spatial positions corresponding to the four corner points of the viewport (lower left, lower right, upper left, and upper right) are obtained. The top two corner points are obtained using a progressive sampling method, that is, trying to pick up points one by one from top to bottom until a valid position is obtained. Construct four boundary lines (left, right, top, and bottom) based on the three-dimensional coordinates of the four corner points. Use a geometric calculation library to find the intersection points of the highway line and each boundary line, and use the intersection points as candidate endpoints. Sort the candidate endpoints by longitude from smallest to largest to obtain the left and right endpoints within the current viewport range, and calculate their corresponding station values respectively.
[0012] Furthermore, the adaptive calculation of the station display interval based on the viewport range includes: Obtain the screen X coordinates of the two endpoints, namely the horizontal coordinates cx_left and cx_right, and the station values meter_left and meter_right. cx_left and cx_right are the horizontal coordinates of the two endpoints used to measure the horizontal width of the viewport, and meter_left and meter_right represent the actual mileage in meters at the location of the left and right endpoints. Calculate the total distance between station numbers within the viewport: distance = |meter_left - meter_right|; calculate the pixel width within the viewport: pixelWidth = |cx_right - cx_left|; Calculate the theoretical number of station numbers based on the preset minimum pixel width minWidth: count = pixelWidth / minWidth; calculate the theoretical interval: interval = distance / count; Select the most suitable actual interval step from the interval level set, and calculate the adaptive interval, i.e., the station number display interval.
[0013] Furthermore, the adaptive interval is calculated as follows: First, obtain the theoretical interval value, calculate its order of magnitude (power of 10), and then divide the theoretical interval by this order of magnitude to obtain the standardized value. Then, from the preset interval level set, select the first level that is greater than or equal to the standardized value as the multiplier, and multiply the multiplier by the order of magnitude to obtain the final actual display interval.
[0014] Furthermore, generating the station sequence within the viewport range includes: Starting from the initial station number, the station number values are generated sequentially with the calculated adaptive interval as the step size until they exceed the termination station number. For each station number value, its corresponding latitude and longitude coordinates are calculated by interpolating the geographic information of the highway line, and then converted into Cesium 3D coordinates and screen coordinates. Finally, it is verified whether the screen coordinates are within the viewport, and only the station numbers within the visible range are retained and formatted as standard station number strings.
[0015] Furthermore, collision detection and filtering of the station sequence includes: Sort all station markers in ascending order of their screen X coordinates. Set a fixed width for each station marker and iterate through the sorted list. For the current station, calculate its right boundary and check if the left boundary of the subsequent station is smaller than the right boundary. If it is smaller, it is considered an overlap, and the subsequent station is removed from the list. If it is not smaller, stop the detection of the current station and continue processing the next station. Repeat this process until all stations have been detected, resulting in a list of station markers without overlap. The right boundary is the screen X coordinate plus half the width, and the left boundary is the screen X coordinate minus half the width.
[0016] Furthermore, dynamic rendering in a Cesium scene includes: Based on the filtered station list, scale rendering data is generated. An HTML scale component is overlaid at the bottom of the Cesium scene. Scale lines and station text are dynamically drawn based on the filtered station list, and station markers are drawn on the corresponding geographical locations on the map. By listening to Cesium's camera change events, steps S1 to S5 are automatically re-executed whenever the camera state changes, achieving real-time updates of the station scale and ensuring that the station information is always synchronized with the current viewport. Camera change events include zoom, pan, and rotation.
[0017] Furthermore, the linkage between station numbers and operational data along the route includes: GeoJSON data of facilities along the route is preloaded, with each facility including its name, type, and geographic coordinates. The station value corresponding to each facility is calculated using the geographic coordinates, and a facility marker is drawn at the corresponding position on the scale. Different facility types are visually distinguished using different colors and icons. When a user clicks on a marker, an information window pops up displaying the facility's name, station location, and technical condition assessment data.
[0018] This invention also provides a Cesium-based dynamic labeling and adaptive display system for highway stationing, comprising the following modules: The endpoint calculation module is used to obtain Cesium scene parameters, highway data and roadside facility data, and calculate the two endpoints of the highway within the current viewport range; The interval calculation module is used to adaptively calculate the station display interval based on the viewport range; The stationing generation module is used to generate the stationing sequence within the viewport area; The collision detection module is used to perform collision detection and filtering on the station sequence; The rendering module is used to dynamically render station markers and facility markers in the Cesium scene; The interactive response module is used to listen for changes in the camera to trigger station number updates, process user interactions, and realize the linkage of station numbers with business data of facilities along the route.
[0019] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the Cesium-based dynamic labeling and adaptive display system for highway stationing as described in the above technical solution.
[0020] Compared with the prior art, the present invention has the following advantages: (1) Dynamic adaptive display: Real-time monitoring of camera changes, station markings are dynamically updated with the viewport, always matching the current field of view.
[0021] (2) Intelligent density control: Adaptive interval calculation + collision detection filtering ensures that the scale is clear and readable and avoids information overload.
[0022] (3) High-precision coordinate transformation: The progressive sampling method solves the problem of terrain occlusion and improves positioning accuracy.
[0023] (4) Smooth interactive experience: Anti-shake / throttling controls the update frequency, combined with caching strategy, to achieve smooth real-time interaction.
[0024] (5) Deep integration of business data: The station number is associated with facilities such as bridges and culverts, and is displayed on the scale. Click to view details. Attached Figure Description
[0025] Figure 1 This is a flowchart of an embodiment of the present invention.
[0026] Figure 2 This is a diagram showing the dynamic changes of the station number scale when the camera height remains constant and the viewing angle is rotated horizontally. It demonstrates that the starting and intermediate station numbers within the viewport are updated in real time as the viewing angle swings left and right.
[0027] Figure 3 This is a diagram showing the adaptive change of the station marker during zooming. It demonstrates that as the map is zoomed (by scrolling the wheel), the station display interval (step size) automatically adjusts, and the number of station markers changes dynamically accordingly. Detailed Implementation
[0028] The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0029] This invention provides a method for dynamic labeling and adaptive display of highway stationings based on Cesium, comprising the following steps: S1: Obtain the two endpoints of the highway line within the current viewport, including the following sub-steps: S1.1, obtain the current rendering canvas width and height (width cw, height ch) through the Cesium scene object, and at the same time obtain the camera parameters for subsequent ray casting calculations; S1.2, obtain the GeoJSON geographic coordinate sequence of the highway line, convert the geographic coordinates (latitude and longitude) of the starting point and ending point of the highway line to be detected into Cesium three-dimensional Cartesian coordinates respectively, and then call the coordinate transformation method to map them to screen coordinates; Step 1.3: Determine if the screen coordinates fall within the visible area of the canvas (i.e., the x-coordinate is between 0 and the canvas width, and the y-coordinate is between 0 and the canvas height). If the start or end point is within the viewport, record it directly as the endpoint.
[0030] Step 1.4: If neither the starting point nor the ending point is within the viewport, or only one endpoint is within the viewport, then the intersection of the road line and the viewport boundary needs to be calculated. Specifically, the three-dimensional spatial positions corresponding to the four corner points of the viewport (bottom left, bottom right, top left, and top right) are obtained. The top two corner points are obtained using a progressive sampling method, i.e., attempting to pick up points one by one from top to bottom until a valid position is obtained.
[0031] Progressive sampling starts from the top and moves downwards point by point. Even if the top is pointing towards the sky, the downward scan will eventually hit the ground, thus obtaining a valid coordinate. In addition, the first point hit when scanning from the top down is the ground point closest to the top within the viewport. This point is closest to the actual top corner and has the smallest error when used to construct boundary lines, making it more accurate than scanning from the bottom up.
[0032] Step 1.5: Construct four boundary lines (left, right, top, and bottom) based on the three-dimensional coordinates of the four corner points. Use a geometric calculation library to find the intersection points of the highway line and each boundary line, and use the intersection points as candidate endpoints.
[0033] Step 1.6: Sort the candidate endpoints by longitude from smallest to largest to obtain the left and right endpoints P_left and P_right within the current viewport range, and calculate their corresponding station values meter_left and meter_right respectively.
[0034] S2: Adaptively calculate the station display interval based on the viewport range, specifically including the following sub-steps: S2.1 Obtain the screen X coordinates (x-coordinates cx_left and cx_right) and station values meter_left and meter_right of the two endpoints. cx_left and cx_right are the x-coordinates of the two endpoints used to measure the horizontal width of the viewport. For example, cx_left = 150 means that the left endpoint is 150 pixels away from the left side of the screen, and cx_right = 1770 means that the right endpoint is 1770 pixels away from the left side of the screen. meter_left and meter_right represent the actual distance in meters at the locations of the left and right endpoints. S2.2, Calculate the total distance between station numbers within the viewport: distance = |meter_left - meter_right|; S2.3, Calculate the pixel width within the viewport: pixelWidth = |cx_right - cx_left|; S2.4 Calculate the theoretical number of station numbers count = pixelWidth / minWidth based on the preset minimum pixel width minWidth (80-100px); S2.5, calculate the theoretical interval: interval = distance / count; S2.6 Select the most suitable actual interval step from the interval level set {1,2,5,10,20,50,100,200,500,1000}.
[0035] S2.7, Calculate the adaptive interval; the core logic of the calculation is as follows: First, the theoretical interval is obtained, and its order of magnitude (i.e., a power of 10) is calculated. Then, the theoretical interval is divided by this order of magnitude to obtain a standardized value. Next, from a preset set of interval levels, the first level greater than or equal to this standardized value is selected as a multiplier. Multiplying this multiplier by the order of magnitude yields the final actual display interval. This algorithm ensures that the station interval remains within a range that is both visually comfortable and informationally complete at different scaling levels.
[0036] S3: Generate the station sequence within the viewport range, specifically including the following sub-steps: S3.1, Determine the station display range [minMeter, maxMeter]. The minimum mileage in meters minMeter and the maximum mileage in meters maxMeter are determined by the calculated station values of the two endpoints meter_left and meter_right. S3.2, generate a station number sequence with an adaptive interval as the step size; S3.3 Calculates the geographic coordinates, 3D coordinates, and screen coordinates for each station value; S3.4, Filter out station numbers that are not within the viewport range; S3.5, formatted as a station number string (e.g., "K66+000").
[0037] Station number sequence generation process: Starting from the initial station number, station numbers are generated incrementally using the calculated adaptive interval as the step size, until the terminal station number is exceeded. For each station number, its corresponding latitude and longitude coordinates are calculated through interpolation of the highway's geographic information, and then converted into Cesium 3D coordinates and screen coordinates. Finally, the screen coordinates are verified to ensure they are within the viewport, retaining only the station numbers within the visible range and formatting them as standard station number strings.
[0038] S4: Perform collision detection and filtering on the station sequence, which includes the following sub-steps: S4.1 Sort the station numbers by the X coordinate on the screen; S4.2, Traverse the list and calculate whether the boundaries of adjacent station numbers overlap; S4.3 If there is overlap, remove the subsequent station number to ensure that the scale does not overlap.
[0039] The steps to implement collision detection: The first step is to sort all the station number marking objects according to their screen X coordinates from smallest to largest.
[0040] The second step is to set a fixed width for each station number label (default is 90 pixels) and then iterate through the sorted list.
[0041] The third step is to calculate the right boundary (screen X coordinate + half the width) for the current station number, and then check the left boundary (screen X coordinate) of subsequent station numbers. If the width of the current station is less than half of the right boundary, it is considered an overlap, and the subsequent station number is removed from the list; if it is not less than half, the detection of the current station number is stopped, and the next station number is processed.
[0042] Fourth, repeat the above process until all station numbers have been checked, and finally obtain a list of station numbers without overlap.
[0043] S5: Dynamically render the processed station sequence in the Cesium scene, which includes the following sub-steps: S5.1, Generate scale rendering data based on the filtered station number list; S5.2, render a horizontal ruler (scale lines + station number text) at the bottom of the scene. S5.3, render station number indicator markers in the geographic location; S5.4 listens for camera change events and repeats S1 to S5 when a change occurs.
[0044] Dynamic rendering and event listening mechanism: The system overlays an HTML ruler component at the bottom of the Cesium scene, dynamically drawing scale lines and station text based on the filtered station list. Simultaneously, it draws station markers on the corresponding geographical locations on the map. By listening to Cesium's camera change events (including zoom, pan, and rotation), steps S1 to S5 are automatically re-executed whenever the camera state changes, achieving real-time updates to the station ruler and ensuring that the station information is always synchronized with the current viewport.
[0045] S6: Linking station numbers with operational data for facilities along the route, specifically including the following sub-steps: S6.1, acquire data on roadside facilities such as bridges, culverts, tunnels, and interchanges; S6.2, calculate the corresponding station value for each facility; S6.3 Draw facility markers on the scale according to the station number (different colors / icons distinguish the types); S6.4 Click the marker to display detailed facility information (name, station number, technical condition assessment, etc.).
[0046] Facility linkage implementation methods: The system pre-loads GeoJSON data of facilities along the route, with each facility including attributes such as name, type, and geographic coordinates. The system calculates the station number for each facility using its geographic coordinates and marks the facility at the corresponding position on the scale. Different facility types are visually distinguished using different colors and icons. When a user clicks on a marker, an information window pops up displaying detailed data such as the facility's name, station number, and technical condition assessment.
[0047] Figure 2 This is a diagram showing the dynamic changes of the station number scale when the camera height remains constant and the viewing angle is rotated horizontally. It demonstrates that the starting and intermediate station numbers within the viewport are updated in real time as the viewing angle swings left and right. Figure 3 This is a diagram showing the adaptive change of the station marker during zooming. It demonstrates that as the map is zoomed (by scrolling the wheel), the station display interval (step size) automatically adjusts, and the number of station markers changes dynamically accordingly.
[0048] This embodiment provides a method for dynamic labeling and adaptive display of highway stationings based on Cesium. Taking a highway reconstruction and expansion project as an example, the highway is approximately 109 kilometers long and is managed visually using the Cesium 3D globe platform. When the user zooms or pans the map, the system listens for camera changes, calls an endpoint detection algorithm to obtain the two endpoints of the viewport, and then generates a clear stationing scale through adaptive interval calculation and collision detection. Simultaneously, bridges, culverts, and other facilities are marked on the scale and displayed in conjunction with it. This invention, through real-time monitoring of camera changes, adaptive interval calculation, and collision detection, achieves dynamic updating of stationings with the viewport, a clear and non-overlapping scale, and supports linked display with roadside facilities, making it suitable for practical engineering scenarios such as reconstruction and expansion projects.
[0049] Secondly, this embodiment also provides a Cesium-based dynamic labeling and adaptive display system for highway stationing, including the following modules: The endpoint calculation module is used to obtain Cesium scene parameters, highway data and roadside facility data, and calculate the two endpoints of the highway within the current viewport range; The interval calculation module is used to adaptively calculate the station display interval based on the viewport range; The stationing generation module is used to generate the stationing sequence within the viewport area; The collision detection module is used to perform collision detection and filtering on the station sequence; The rendering module is used to dynamically render station markers and facility markers in the Cesium scene; The interactive response module is used to listen for changes in the camera to trigger station number updates, process user interactions, and realize the linkage of station numbers with business data of facilities along the route.
[0050] The specific implementation methods of each module are the same as those of each step, and will not be described in the embodiments of this invention.
[0051] Thirdly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the Cesium-based dynamic labeling and adaptive display system for highway stationing as described in the above technical solution.
[0052] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications, equivalent substitutions, and improvements made by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the invention.
Claims
1. A method for dynamic labeling and adaptive display of highway stationings based on Cesium, characterized in that, include: Get the two endpoints of the highway line within the current viewport; The station display interval is adaptively calculated based on the viewport range; Generate the station sequence within the viewport area; Perform collision detection and filtering on the station number sequence; The processed station sequence is dynamically rendered in the Cesium scene; The station number is linked with the business data of the facilities along the route.
2. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: Retrieving the two endpoints of the highway line within the current viewport includes: Obtain the current canvas width and height through the Cesium scene object, and also obtain the camera parameters; The geographic coordinates of the starting and ending points of the highway to be detected are converted into Cesium 3D Cartesian coordinates, and then the coordinate transformation method is called to map them to screen coordinates. Determine if the screen coordinates fall within the visible area of the canvas. If the start or end point is within the viewport, record it directly as the endpoint. If neither the starting point nor the ending point is within the viewport, or only one endpoint is within the viewport, then the intersection of the road line and the viewport boundary is calculated. Specifically, the three-dimensional spatial positions corresponding to the four corner points of the viewport (lower left, lower right, upper left, and upper right) are obtained. The top two corner points are obtained using a progressive sampling method, that is, trying to pick up points one by one from top to bottom until a valid position is obtained. Construct four boundary lines (left, right, top, and bottom) based on the three-dimensional coordinates of the four corner points. Use a geometric calculation library to find the intersection points of the highway line and each boundary line, and use the intersection points as candidate endpoints. Sort the candidate endpoints by longitude from smallest to largest to obtain the left and right endpoints within the current viewport range, and calculate their corresponding station values respectively.
3. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: The station display interval is adaptively calculated based on the viewport range, including: Obtain the screen X coordinates of the two endpoints, namely the horizontal coordinates cx_left and cx_right, and the station values meter_left and meter_right. cx_left and cx_right are the horizontal coordinates of the two endpoints used to measure the horizontal width of the viewport, and meter_left and meter_right represent the actual mileage in meters at the location of the left and right endpoints. Calculate the total distance between station numbers within the viewport: distance = |meter_left - meter_right|; calculate the pixel width within the viewport: pixelWidth = |cx_right - cx_left|; Calculate the theoretical number of station numbers based on the preset minimum pixel width minWidth: count = pixelWidth / minWidth; calculate the theoretical interval: interval = distance / count; Select the most suitable actual interval step from the interval level set, and calculate the adaptive interval, i.e., the station number display interval.
4. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 3, characterized in that: The adaptive interval is calculated as follows: First, obtain the theoretical interval value, calculate its order of magnitude (power of 10), and then divide the theoretical interval by this order of magnitude to obtain the standardized value. Then, from the preset interval level set, select the first level that is greater than or equal to the standardized value as the multiplier, and multiply the multiplier by the order of magnitude to obtain the final actual display interval.
5. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: Generating the station sequence within the viewport includes: Starting from the initial station number, the station number values are generated sequentially with the calculated adaptive interval as the step size until they exceed the termination station number. For each station number value, its corresponding latitude and longitude coordinates are calculated by interpolating the geographic information of the highway line, and then converted into Cesium 3D coordinates and screen coordinates. Finally, it is verified whether the screen coordinates are within the viewport, and only the station numbers within the visible range are retained and formatted as standard station number strings.
6. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: Collision detection and filtering of station sequence includes: Sort all station labels according to their screen X coordinates from smallest to largest. Set a fixed width for each station label and iterate through the sorted list. For the current station, calculate its right boundary and then check if the left boundary of the subsequent station is smaller than the right boundary. If it is smaller, it is considered an overlap, and the subsequent station is removed from the list. If it is not smaller, stop the detection of the current station and continue to process the next station. Repeat until all stations have been detected, and finally obtain a list of station labels without overlap. The right boundary is the screen X coordinate plus half the width, and the left boundary is the screen X coordinate minus half the width.
7. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: Dynamic rendering in a Cesium scene includes: Based on the filtered station list, scale rendering data is generated. An HTML scale component is overlaid at the bottom of the Cesium scene. Scale lines and station text are dynamically drawn based on the filtered station list, and station markers are drawn on the corresponding geographical locations on the map. By listening to Cesium's camera change events, steps S1 to S5 are automatically re-executed whenever the camera state changes, achieving real-time updates of the station scale and ensuring that the station information is always synchronized with the current viewport. Camera change events include zoom, pan, and rotation.
8. The method for dynamic labeling and adaptive display of highway stationings based on Cesium as described in claim 1, characterized in that: The linkage of business data between station numbers and roadside facilities includes: GeoJSON data of facilities along the route is preloaded, with each facility including its name, type, and geographic coordinates. The station value corresponding to each facility is calculated using the geographic coordinates, and a facility marker is drawn at the corresponding position on the scale. Different facility types are visually distinguished using different colors and icons. When a user clicks on a marker, an information window pops up displaying the facility's name, station location, and technical condition assessment data.
9. A dynamic highway stationing and adaptive display system based on Cesium, characterized in that, Includes the following modules: The endpoint calculation module is used to obtain Cesium scene parameters, highway data and roadside facility data, and calculate the two endpoints of the highway within the current viewport range; The interval calculation module is used to adaptively calculate the station display interval based on the viewport range; The stationing generation module is used to generate the stationing sequence within the viewport area; The collision detection module is used to perform collision detection and filtering on the station sequence; The rendering module is used to dynamically render station markers and facility markers in the Cesium scene; The interactive response module is used to listen for changes in the camera to trigger station number updates, process user interactions, and realize the linkage of station numbers with business data of facilities along the route.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that, when executed by a processor, implements the Cesium-based dynamic labeling and adaptive display system for highway stationing as described in any one of claims 1-8.
