Multithreading display mechanism of two-dimensional map tiles

2012 
The invention provides a multithreading display mechanism of two-dimensional map tiles. The multithreading display mechanism particularly utilizes a state machine to organize and express a geographical range and representative fraction of a display window, and utilizes the multithreading technology to separate an interface main thread, a tile request thread and a tile display thread to reduce response time of human-computer interaction of a client side and improve user experience. The flow of the multithreading display mechanism comprises (1) when the human-computer interaction changes states of a display view, encoding the tiles in a window range, and recording the tiles into a view state pool and a display task pool; (2) enabling a task sending thread to poll the display task pool, gradually taking out display task requests, checking a tile map cache memory and requiring a tile map server for corresponding tile data; (3) enabling the tile map server to respond to the task requests to send the map tiles to the client side, and writing the task requests into tile map cache memory; and (4) enabling the tile display thread to poll the view state pool to loop up non-displayed tile blocks, taking out corresponding map tiles from the tile map cache memory according to tile codes, and displaying the map tiles on the display view.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []