This article is a mirror article of machine translation, please click here to jump to the original article.

View: 209420|Reply: 73

[Other] Baidu Map: Solve the point aggregation marker lag solution

  [Copy link]
Posted on 7/19/2018 3:15:38 PM | | | |
The general problem is that because Baidu map point aggregation will lag slightly when it exceeds 1000 points, and after more than 5000, it is obvious that it is stuck or even the browser crashes, so it is necessary to modify the MarkerClusterer_min.js file introduced by Baidu Map external link.

JS source file of Baidu map aggregation:The hyperlink login is visible.


Modify three places to solve the lag, the modified js file, perfectly solves the phenomenon of lag, as shown in the figure below, more than 7,000 cars, the interface is not stuck, and the response speed has become very fast.


First: On line 198, MarkerClusterer.createClusters adds the following code at the end



Second: The following code is commented on line 494

Third: On line 511, a new method is added



Finally, attach the modified js file:

Tourists, if you want to see the hidden content of this post, pleaseReply





Previous:JetBrains 2017/2018 full range of product activation tools
Next:User and role authentication based on FormsAuthentication
Posted on 7/26/2018 6:00:19 PM |
Prompt:Authors are banned or removed content is automatically blocked
Posted on 11/14/2019 3:21:33 PM |
Wow, I still have to collect money...   Ahhh
Posted on 7/28/2021 4:49:01 PM |
Find the js file of the modification number Baidu map point aggregation lag
Posted on 1/8/2019 4:45:11 PM |
Big guy, big guy, look at JS
Posted on 3/6/2019 6:55:57 PM |
It feels very strong, try it, thank you boss
Posted on 3/11/2019 2:11:38 PM |
hello......................
Posted on 3/23/2019 10:54:16 AM |
Marker worships the big brother
Posted on 3/26/2019 5:10:48 PM |
js files
Posted on 3/27/2019 3:04:33 PM |
Amazing, my boss
Posted on 4/10/2019 1:45:07 PM |
Faye Wong's additional style is GV waste
Posted on 4/11/2019 5:14:54 PM |
0000000000000
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com