PP.ScaleEffect(settings)
settings. JSON object that contains properties of class instance.
The ScaleEffect constructor creates an instance of the ScaleEffect class.
To execute the example the HTML page must contain the MapChart component named map (see Placing of Map on a HTML Page). To create this map, use the World.svg topobase and the MapData_World.xml file that contains JSON map settings. Add a handler for the MapChart.Loaded event - function used to set effect of zooming a separate map area:
map.Loaded.add(function () { map.getShape("AU").setEffect(new PP.ScaleEffect({ "Scale": "2" })) });
After executing the example on hovering over the map area with the identifier AU (Australia) this area is zoomed to 200 %.
See also: