dBox CGI point query
Lawrence Hartpence
hartpence_gis at CO.JASPER.IA.US
Tue Feb 5 07:15:45 PST 2008
Hello,
I recently posted an issue I was having with dragging a pan using dBox. I now
have that isue resolved, but now I have lost teh ability to query by a single
mouse click. Selecting by box works fine, but not by point. When I click a
point, I get the error: mapserv(): Web application error. No way to generate
a valid map extent from selected shapes.
Any help would be greatly appreciated!!
Lawrence
Here is the URL for my website:
http://71.7.3.212/JasperMaps/Parcels/goParcels.html
Once you initiate the map by clicking the "County View" button, zoom a small
box, click the "i" next to teh parcels layer and click on a parcel.
Here is the portion of my HTML that sets up the set box parameters:
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){
ZoomMode();
}
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();
}
}
if (MSMode != 'browse' && minx != maxx && miny != maxy) {
document.the_form.imgbox.value = minx + " " + miny + " " + maxx + " "
+ maxy;
document.the_form.submit();
}
if (MSMode != 'browse' && minx == maxx && miny == maxy) {
document.the_form.imgxy.value = minx + " " + miny;
document.the_form.submit();
}
}
More information about the MapServer-users
mailing list