CN105069058A - Quick response method of network map request for high-frequency interaction environment - Google Patents

Quick response method of network map request for high-frequency interaction environment Download PDF

Info

Publication number
CN105069058A
CN105069058A CN201510445959.0A CN201510445959A CN105069058A CN 105069058 A CN105069058 A CN 105069058A CN 201510445959 A CN201510445959 A CN 201510445959A CN 105069058 A CN105069058 A CN 105069058A
Authority
CN
China
Prior art keywords
network map
network
map
request
request queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510445959.0A
Other languages
Chinese (zh)
Other versions
CN105069058B (en
Inventor
郭明强
谢忠
关庆锋
吴亮
罗显刚
黄颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Zhongdi University Ecological Environment Research Institute Co ltd
Original Assignee
China University of Geosciences
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China University of Geosciences filed Critical China University of Geosciences
Priority to CN201510445959.0A priority Critical patent/CN105069058B/en
Publication of CN105069058A publication Critical patent/CN105069058A/en
Application granted granted Critical
Publication of CN105069058B publication Critical patent/CN105069058B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a quick response method of a network map request for a high-frequency interaction environment. The quick response method comprises the following steps: initializing a browser map display window; obtaining a maximum network connection number c of a browser; creating and starting c network map request queue processing threads; calculating the number t of map images which need to be rendered in a network map window; adding the network map request into the end of the network map request queue; selecting one unloaded network map request from the network map request queue; sending a network map image request; and setting a network map image state into a loaded state, and displaying the map images. The quick response method can control the number of network map concurrent requests according to the restriction on the network connection number by the browser, can automatically reject invalid network map requests, adapts to the quick browsing of the network map under the high-frequency interaction environment and can realize the quick response of the network map requests under the high-frequency interaction environment especially under a low-bandwidth network environment.

Description

For the network map request fast response method of high frequency interactive environment
Technical field
The present invention relates to hiperspace computing technique, particularly relate to a kind of network map request fast response method for high frequency interactive environment.
Background technology
The quick response of high frequency interactive environment lower network such map requests is one of difficult problem needing in WebGIS to solve, and especially under low broadband network environment, the response speed of network map request directly affects the Consumer's Experience carrying out map view operation in a browser.Current major browsers is all restricted to the map image concurrent request number under same domain name, in order to improve map image concurrent request number, reduce network map request response time, Google, Baidu, the mapping service provider such as it map all employ 8 domain names to increase the concurrent request number of browser, but under high frequency interactive environment, a large amount of network map image request still can not be responded fast, especially in low-bandwidth network environment, the page response time can be longer, be difficult to the demand meeting user, network map request invalid is in a large number sent to server end, waste valuable bandwidth resources, on the other hand, increase the complexity that domain name not only can increase the realization of network map client, and cost is high, difficult in maintenance, accesses the time overhead that multiple domain name also additionally can increase domain name mapping.
Summary of the invention
The technical problem to be solved in the present invention is for defect of the prior art, provides a kind of network map request fast response method for high frequency interactive environment.
The technical solution adopted for the present invention to solve the technical problems is: a kind of network map request fast response method for high frequency interactive environment, comprises the following steps:
Step 1) initialization browser map display window, pixels tall and the pixel wide of network map window are set;
Step 2) obtain the maximum network linking number c of browser;
Step 3) create and start c network map request queue processing threads;
Step 4) according to the pixels tall of network map window and pixel wide, in computational grid map window, need the map image number t played up;
Step 5) create network map request queue;
Step 6) circulation establishment network map Image control, use blank image to play up;
Step 7) the status attribute that arranges network map image is non-stress state;
Step 8) judge whether the length of network map request queue is less than t, if so, then network map request is joined the end of network map request queue; If not, delete the Section 1 in network map request queue, then network map request is joined the end of network map request queue;
Step 9) be in the network map number of request u of stress state in the request queue of network map request queue processing threads cycle calculations network map, judge whether u is less than c, if so, then enter step 10); If not, then step 9 is repeated) recalculate u;
Step 10) from network map request queue, select a network map request do not loaded;
Step 11) state that arranges the network map request of selection is stress state;
Step 12) send network map image request;
Step 13) ask, network map image state is set for stress state, and displayed map image.
By such scheme, in described network map window, need the map image number t played up, t=(w/pw+1) (h/ph+1);
Wherein, h is the pixels tall of network map window, and w is the pixel wide of network map window, and ph is the pixels tall of single map image, and pw is the pixel wide of single map image.
By such scheme, described step 10) in selection mode be that the network map request that do not load is for select in order.
The beneficial effect that the present invention produces is: the inventive method can the quantity of net control such map requests, the network map request that automatic rejecting is invalid, realize the quick response of high frequency interactive environment lower network such map requests, save valuable bandwidth resources, for supporting that high concurrent Map Service of Network performance boost provides technical support, especially contribute to the capability of fast response promoting low-bandwidth network environment lower network Map Services.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the method flow diagram of the embodiment of the present invention;
Fig. 2 is the method flow diagram that the present invention responds fast for network map request in Chrome browser.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, a kind of high frequency interactive environment lower network such map requests fast response method, comprises the following steps:
Step 1) initialization browser map display window, pixels tall h and the pixel wide w of network map visualization window are set;
Step 2) obtain the maximum network linking number c of browser;
Step 3) call the setInterval function creation in javascript and start c network map request queue processing threads;
Step 4) calculate according to the pixels tall ph of w, h and single map image and pixel wide pw map image number (t) needing in map window to play up, wherein t=(w/pw+1) (h/ph+1);
Step 5) utilize Array class new Array, create network map request queue;
Step 6) circulation establishment network map Image control, use blank image to play up it;
Step 7) the status attribute of network map image is set for not load (unload) state;
Step 8) judge whether the length of network map request queue is less than t, if so, then network map request is joined in network map request queue; If not, then step 9 is entered);
Step 9) delete Section 1 in network map request queue, then network map request is joined the end in network map request queue;
Step 10) be in network map number of request (u) of stress state (namely status attribute is loading) in the request queue of network map request queue processing threads cycle calculations network map, judge whether u is less than c, if so, then step 11 is entered); If not, then step 10 is repeated) recalculate u;
Step 11) from network map request queue, selection status attribute is the network map request of unload;
Step 12) the status attribute of the network map request of selection is set for loading (loading) state;
Step 13) send network map image request;
Step 14) ask, the status attribute of network map image is set for load (loaded) state, and displayed map image, when the status attribute of all-network map image is loaded, network map request process terminates.
The most obvious advantage of the present invention is by step 8 to step 11, the quantity of high frequency interactive environment lower network such map requests can be controlled, the network map request that automatic rejection is invalid when high frequency is mutual, realize the quick response of high frequency interactive environment lower network such map requests, and contribute under low-bandwidth network environment, save valuable bandwidth resources.
Embodiment one:
In order to thought of the present invention is more clearly described, below in conjunction with accompanying drawing 2 with the quick response of network map request in Chrome browser for embodiment is further detailed, in this embodiment, network map display window width is set to 1280 pixels, highly be set to 1024 pixels, single network map image width and be highly 256 pixels, uses the embodiment step by step map being used as network map high frequency interaction scenarios in a browser fast from the operation that 3rd level is amplified to the 16th grade.The concrete steps of its network map request fast response method are as follows:
Step 200), initialization Chrome browser map display window, arranging width 1280 pixel of network map visualization window, is highly 1024 pixels;
Step 201), obtain browser type, it is Chrome browser, and its maximum network linking number is 6, therefore maximum network such map requests number is set to 6;
Step 202), setInterval function in recursive call javascript 6 times, create and start 6 network map request queue processing threads;
Step 203), according to the map image number t needing in map window under each map denotation rank of the wide calculating of height height that is wide and single map image of the map visualization window arranged in step 200 to play up, t=(1280/256+1) (1024/256+1)=30;
Step 204), utilize Array class new Array, create network map request queue;
Step 205), user carries out map interactive operation in a browser by mouse or keyboard, when map denotation scope changes, circulation creates the network map Image control of new needs display, generate the img object in html, in order to stop it to send network request immediately, blank image is first used to play up it;
Step 206), the status attribute of each network map image is set for not load (unload) state;
Step 207), judge whether the length of network map request queue is less than 30, if so, then network map request is joined in network map request queue; If not, then step 208 is entered);
Step 208), the Section 1 of deleting in network map request queue, then network map request is joined the end of network map request queue;
Step 209), 6 network map request queue processing threads are in network map number of request (u) of stress state (namely status attribute is loading) respectively in the request queue of cycle calculations network map, judge whether u is less than 6, if so, then step 210 is entered); If not, then step 209 is repeated) recalculate u;
Step 210), the network map request of selecting status attribute to be unload from network map request queue;
Step 211), arrange selection network map request status attribute for load (loading) state;
Step 212), send network map image request;
Step 213), asked, the status attribute of network map image is set for load (loaded) state, and displayed map image, when the status attribute of all-network map image is loaded, network map request process terminates.
Under user's high frequency interactive environment, this embodiment understands the quantity of first net control such map requests queue in step 207 and step 208, when high-frequency operation map, old invalid network map request by automatic rejection, can ensure that the number of request in network map request queue is consistent with the current network map amount of images needing to show.On the other hand, this embodiment can control the number of concurrent of network map request in step 209 and step 210, controlled within the maximum network linking number of browser, to avoid sending too much invalid network map image request to server, thus under high frequency interactive environment, save valuable bandwidth resources.In the high frequency interactive application scene of the present embodiment, if use traditional network map requesting method, one meets transmission (16-3+1) * 30=420 network map image request together, and adopt the inventive method, only can send 30 network map image request, thus realize the quick response of the network map request under high frequency interactive environment, especially under low-bandwidth network environment, method provided by the invention has great importance for saving valuable bandwidth resources.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection domain that all should belong to claims of the present invention.

Claims (3)

1., for the network map request fast response method of high frequency interactive environment, it is characterized in that, comprise the following steps:
1) initialization browser map display window, arranges pixels tall and the pixel wide of network map window;
2) the maximum network linking number c of browser is obtained;
3) create and start c network map request queue processing threads;
4) according to pixels tall and the pixel wide of network map window, the map image number t played up in computational grid map window, is needed;
5) network map request queue is created;
6) circulation creates network map Image control, uses blank image to play up;
7) the status attribute arranging network map image is non-stress state;
8) judge whether the length of network map request queue is less than t, if so, then network map request is joined the end of network map request queue; If not, delete the Section 1 in network map request queue, then network map request is joined the end of network map request queue;
9) be in the network map number of request u of stress state in the request queue of network map request queue processing threads cycle calculations network map, judge whether u is less than c, if so, then enter step 10); If not, then step 9 is repeated) recalculate u;
10) from network map request queue, a state is selected to be the network map request do not loaded;
11) state arranging the network map request of selection is stress state;
12) network map image request is sent;
13) asked, network map image state has been set for stress state, and displayed map image.
2. fast response method according to claim 1, is characterized in that, described step 4) in need the map image number t that plays up, t=(w/pw+1) (h/ph+1) in network map window;
Wherein, h is the pixels tall of network map window, and w is the pixel wide of network map window, and ph is the pixels tall of single map image, and pw is the pixel wide of single map image.
3. fast response method according to claim 1, is characterized in that, described step 10) in selection mode be that the network map request that do not load is for select in order.
CN201510445959.0A 2015-07-24 2015-07-24 Network map for high frequency interactive environment requests fast response method Expired - Fee Related CN105069058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510445959.0A CN105069058B (en) 2015-07-24 2015-07-24 Network map for high frequency interactive environment requests fast response method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510445959.0A CN105069058B (en) 2015-07-24 2015-07-24 Network map for high frequency interactive environment requests fast response method

Publications (2)

Publication Number Publication Date
CN105069058A true CN105069058A (en) 2015-11-18
CN105069058B CN105069058B (en) 2018-11-27

Family

ID=54498428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510445959.0A Expired - Fee Related CN105069058B (en) 2015-07-24 2015-07-24 Network map for high frequency interactive environment requests fast response method

Country Status (1)

Country Link
CN (1) CN105069058B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928944A (en) * 2018-08-30 2020-03-27 阿里巴巴集团控股有限公司 Data processing method and device
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828586A (en) * 2005-12-21 2006-09-06 泰为信息科技(上海)有限公司 Computer electronic map formation and display method based on Flash technology
CN103685309A (en) * 2013-12-26 2014-03-26 中国科学院遥感与数字地球研究所 Asynchronous request queue model oriented to map visualization tile service
CN103699670A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Processing device and method for E-map tile request queues
CN103700125A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Electronic map controller and electronic map control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828586A (en) * 2005-12-21 2006-09-06 泰为信息科技(上海)有限公司 Computer electronic map formation and display method based on Flash technology
CN103685309A (en) * 2013-12-26 2014-03-26 中国科学院遥感与数字地球研究所 Asynchronous request queue model oriented to map visualization tile service
CN103699670A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Processing device and method for E-map tile request queues
CN103700125A (en) * 2013-12-30 2014-04-02 北京奇虎科技有限公司 Electronic map controller and electronic map control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928944A (en) * 2018-08-30 2020-03-27 阿里巴巴集团控股有限公司 Data processing method and device
CN110928944B (en) * 2018-08-30 2024-04-02 阿里巴巴集团控股有限公司 Data processing method and device
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium
CN113590410B (en) * 2021-06-20 2023-12-22 济南浪潮数据技术有限公司 Resource request method, system, equipment and medium

Also Published As

Publication number Publication date
CN105069058B (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN107608993B (en) Webpage animation generation method and device
CN102915375B (en) A kind of webpage loading method based on layout subregion
US8799412B2 (en) Remote browsing session management
CN103139292B (en) Method for processing pictures in hyper text transmission protocol (HTTP) proxy and proxy server and system
US8577963B2 (en) Remote browsing session between client browser and network based browser
CN103780679B (en) Long delay remote invocation method based on http protocol
CN112541878B (en) Method and device for establishing image enhancement model and image enhancement
CN102684986B (en) Method and system for displaying pictures at terminal
US10521485B1 (en) Measuring page value
CN103051684A (en) Method, system and device for converting website into Web App for displaying
CN101996206A (en) Method, device and system for displaying web page
CN103269362A (en) Method, system and device for sharing localized content of picture in webpage
CN105871590A (en) Client data updating method, client and server
CN105976420A (en) Online rendering method and system
CN104468830A (en) Web service method based on internet of things and internet of things system
CN105069058A (en) Quick response method of network map request for high-frequency interaction environment
US20160255174A1 (en) Data file and rule driven synchronous or asynchronous document generation
CN103677930B (en) Based on GIS data loading method and the device of spelling wall system
EP2727024A1 (en) Remote browsing session management
CN101923564A (en) Method for improving performance of webpage of representing three-dimensional object based on image cache
CN103164409A (en) Network advertisement show type post test method and network advertisement show type post test system
CN105404672A (en) Webpage data storage and operation system and method
CN105160006A (en) Page content transmission method
CN104580392B (en) It is a kind of to be used to maintain the long method, apparatus and equipment connected
CN109255089B (en) Node data processing method and system based on Html

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200723

Address after: 430074 Wuhan Road, Hongshan, Shandong Province, Lu Lu Road, No. 388, No.

Patentee after: Wuhan in the big asset management Co.,Ltd.

Address before: 430074 Wuhan Road, Hongshan, Shandong Province, Lu Lu Road, No. 388, No.

Patentee before: CHINA University OF GEOSCIENCES (WUHAN CITY)

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210423

Address after: 274000, 500m north of East Sunan expressway, Liumin Road, industrial park, Helou office, Mudan District, Heze City, Shandong Province

Patentee after: Shandong Zhongdi University Ecological Environment Research Institute Co.,Ltd.

Address before: 430074 Wuhan Road, Hongshan, Shandong Province, Lu Lu Road, No. 388, No.

Patentee before: Wuhan in the big asset management Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181127

Termination date: 20210724