Skip to content

Commit cbcd2a1

Browse files
committed
fix mbgl误提交高性能图层
1 parent 1132350 commit cbcd2a1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/mapboxgl/graphicLayer.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ <h6 data-i18n="resources.text_graphicLayer_subTitle"></h6>
8080
});
8181
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
8282

83-
// widgets.loader.showLoader("data loading...");
83+
widgets.loader.showLoader("data loading...");
8484

85-
// $.get('../data/nyc-taxi.csv', function (csvstr) {
86-
// widgets.loader.removeLoader();
87-
// var result = Papa.parse(csvstr, {skipEmptyLines: true, header: true});
88-
// addLayer(result.data);
89-
// });
85+
$.get('../data/nyc-taxi.csv', function (csvstr) {
86+
widgets.loader.removeLoader();
87+
var result = Papa.parse(csvstr, {skipEmptyLines: true, header: true});
88+
addLayer(result.data);
89+
});
9090

9191

9292
function addLayer(points) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy