Zoom Box Tool

S├ębastien Janaud - June 4, 2015 - updated june 2017 / Samples

Zoom Box Tool

Zoom Box Plugin allows to zoom a part of projection.

Resource : sample source code

Learn : javascript zoom box plugin sources

Part : Part 1 - Part 2 - Part 3 - Part 4

Zoom Box



//create zoom box and register instance in projection.
var zoombox = new JenScript.ZoomBoxPlugin({
	speed : 'fast', //slow, default, fast
	zoomBoxDrawColor : 'cyan',
	zoomBoxFillColor : 'pink'
});
proj.registerPlugin(zoombox);

//zoom box requires a lock 
zoombox.select();