Creating a Box Control over an area of the map with OpenLayers
- by Bernie Perez
I am using OpenLayers to create a box of interest with my program. I am using this code:
var control = new OpenLayers.Control();
OpenLayers.Util.extend(control, {
draw: function () {
this.box = new OpenLayers.Handler.Box( control,
{"done": this.notice},
{keyMask: OpenLayers.Handler.MOD_SHIFT});
…