dBox: box drag not stopping
Bart van den Eijnden
BEN at SYNCERA-ITSOLUTIONS.NL
Thu Apr 7 08:07:19 PDT 2005
Hi list,
I am trying to implement dBox in a website, but I am having a problem: the box won't stop dragging. Does this sound familiar to anybody? What am I doing wrong?
I added the following javascript (also the necessary includes ofcourse):
var main = new dBox("img");
function setbox_handler(name, minx, miny, maxx, maxy) {
document.MapForm.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy;
document.MapForm.imgxy.value = minx + " " + miny;
document.MapForm.submit();
}
function seterror_handler(message) {
alert(message);
}
function reset_handler(name, minx, miny, maxx, maxy) { }
function startup() {
// Step 4: Initialize the dBox object
main.initialize();
}
And the following inputs:
<input type="hidden" name="imgbox" value="-1 -1 -1 -1">
<input type="hidden" name="imgxy" value="299.5 299.5">
I call main.boxon() and main.boxoff() at the respective map buttons.
Thanks in advance.
Best regards,
Bart
Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
More information about the MapServer-users
mailing list