Hi,
The aCodes is an array of the region codes you want to zoom into, each code is the same as the one you defined in the JSON of the map.
If you download this example and insert the following code instead of onRegionClick function, you'll get what codes are and how to zoom (once you'll click a region you'll get 150% zoom into it)
onRegionClick: function(e) { var aCodes = []; aCodes.push(e.getParameter("code")); var oCorr = 1.5; //A factor this.byId("vbi").zoomToRegions(aCodes, oCorr); },
Add comment