Skip to content

Commit 25beae6

Browse files
committed
Update Large GeoJSON Files.html
Fix bug - Missing popup.
1 parent a28e9cb commit 25beae6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Samples/Demos/Large GeoJSON Files/Large GeoJSON Files.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
1818

1919
<script>
20-
var map, datasource, infopane, completed = 0, featureCnt = 0, totalFileSize = 0;
20+
var map, datasource, popup, infopane, completed = 0, featureCnt = 0, totalFileSize = 0;
2121
var geoJsonData = [
2222
{ name: 'Parcel Boundaries', url: '/data/geojson/parcels.json', fileSizeMB: 80, geomType: 'polygons' },
2323
{ name: 'Streets', url: '/data/geojson/streets.json', fileSizeMB: 16, geomType: 'lines' },
@@ -53,6 +53,9 @@
5353

5454
//Wait until the map resources are ready.
5555
map.events.add('ready', function () {
56+
//Create a popup.
57+
popup = new atlas.Popup();
58+
5659
//Create a data source to store the data in.
5760
datasource = new atlas.source.DataSource();
5861
map.sources.add(datasource);

0 commit comments

Comments
 (0)