dBox main.dragOn persistence
Lawrence Hartpence
hartpence_gis at CO.JASPER.IA.US
Fri Feb 1 14:34:25 PST 2008
Hello,
I am using dBox with CGI MapServer 4.8 in a MS4W configuration. The URL for
my site is http://71.7.3.212/JasperMaps/Parcels/goParcels.html
I have a pick list selections to zoom out, zoom in or pan. I am trying to the
dragOn() method for the pan tool. This works the first time I select PAN from
the pick list, but if I want to drag another pan, I need to select it from teh
pick list again. Does anyone know what I am missing? The following is the
part of my code where I am trying to set this up.
Thanks!
Lawrence
function main_setbox(minx, miny, maxx, maxy) {
var MSMode = document.the_form.mode.value
var zoomVal = document.the_form.zoomdir.options
[document.the_form.zoomdir.selectedIndex].value;
//document.the_form.zoomdir.value = zoomVal;
alert(zoomVal)
if(MSMode == 'browse') {
if (zoomVal == 1 && minx != maxx && miny != maxy){
document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " "
+ maxy;
document.the_form.submit();
}
else if (zoomVal == 1 && minx == maxx && miny == maxy){
document.the_form.imgxy.value = minx + " " + miny;
document.the_form.submit();
}
if (zoomVal == 0 && minx != maxx && miny != maxy){
document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " "
+ maxy;
document.the_form.submit();
}
else if (zoomVal == 0 && minx == maxx && miny == maxy){
document.the_form.imgxy.value = minx + " " + miny;
document.the_form.submit();
}
if (zoomVal == -1){
document.the_form.imgxy.value = minx + " " + miny;
document.the_form.submit();
}
}
else if(MSMode != 'browse') {
if(minx != maxx && miny != maxy){
document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " "
+ maxy;
document.the_form.submit();
}
else {
document.the_form.imgxy.value = minx + " " + miny;
document.the_form.submit();
}
}
}
More information about the MapServer-users
mailing list