Skip to content

Commit 1d326fe

Browse files
author
Luis Cabrera
committed
2 parents 4410898 + cab2f01 commit 1d326fe

File tree

1 file changed

+12
-0
lines changed
  • 02 - Web UI Template/CognitiveSearch.UI/wwwroot/js

1 file changed

+12
-0
lines changed

02 - Web UI Template/CognitiveSearch.UI/wwwroot/js/results.js

+12
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ function AuthenticateResultsMap(results) {
6161
}
6262
});
6363

64+
//Wait until the map resources are ready.
65+
resultsMap.events.add('ready', function () {
66+
67+
/* Construct a zoom control*/
68+
var zoomControl = new atlas.control.ZoomControl();
69+
70+
/* Add the zoom control to the map*/
71+
resultsMap.controls.add(zoomControl, {
72+
position: "bottom-right"
73+
});
74+
});
75+
6476
AddMapPoints(results);
6577

6678
return;

0 commit comments

Comments
 (0)