Skip to content

Commit 135300f

Browse files
author
bdcoder2
authored
Add files via upload
1 parent 0e2c251 commit 135300f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

v180/ex2/tester.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Source: D:\vscode\grid_clusterer\v180\js\ex2\tester.js
1+
// Source: D:\vscode\grid_clusterer\v190\js\ex2\tester.js
22
class tester {
33
/*
44
---------------------------------------------------------------------
@@ -321,6 +321,13 @@ class tester {
321321
this.clusterer.redraw();
322322
}
323323
}
324+
do_test() {
325+
let zoom_cur;
326+
let zoom_rnd;
327+
zoom_cur = this.map.getZoom();
328+
zoom_rnd = Math.floor(Math.random() * (22 - 0 + 1) + 0);
329+
this.map.setZoom(zoom_rnd);
330+
}
324331
/*
325332
---------------------------------------------------------------------
326333
Creates a set number of random data points, and creates a new

0 commit comments

Comments
 (0)