View script function – zoom

Zoom to Area #

Programmatically zoom to a given area. Area is defined by x, y and width and height parameters. All parameters are in pixels.

myscada.zoomToArea(x,y,width,height);

Get Zoom Level #

To get a zoom level use function

var zoomlevel=myscada.getZoom();

Disable Scrolling #

To disable or enable back scrolling use function

myscada.setScrollEnabled(false);