Open layer select zone


Starting using Open Layer v2 recently, it was awesome as it’s more flexible than other vendors.
In fact i decide to write this post to give me the exact and simple solution for enabling select zone drag box for zones selecting features. What i have found until now is this link in the official weebsite :

      [<img src=""/>](

 so how can i, display the select box area using OLv2 Javascript API.


Why are you using the outdated OL v2 instead of the modernized current version? uses Leaflet, which is supposed to be more lightweight and simple: