From bdd788dcee8677487571102a268e1af3bf2812de Mon Sep 17 00:00:00 2001 From: Scott Kang Date: Tue, 4 Mar 2025 17:35:38 +0800 Subject: [PATCH] fix csv sample by limiting the number of features to show --- .../Add a delimited file (CSV) to the map.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Samples/Spatial IO Module/Add a delimited file (CSV) to the map/Add a delimited file (CSV) to the map.html b/Samples/Spatial IO Module/Add a delimited file (CSV) to the map/Add a delimited file (CSV) to the map.html index edee872f..6b65a173 100644 --- a/Samples/Spatial IO Module/Add a delimited file (CSV) to the map/Add a delimited file (CSV) to the map.html +++ b/Samples/Spatial IO Module/Add a delimited file (CSV) to the map/Add a delimited file (CSV) to the map.html @@ -61,6 +61,8 @@ //Read a CSV file from a URL or pass in a raw string. atlas.io.read(delimitedFileUrl).then(r => { if (r) { + //Limit the number of features to be shown. + r.features = r.features.slice(0, 1000); //Add the feature data to the data source. datasource.add(r);