Coordinates in jBox, compatible?
Lluís Garcia i Mestres
lluisgm at GMAIL.COM
Tue Apr 12 11:46:45 PDT 2005
Hi list,
I'm using jBox and it works fine. Also I've implemented the
mousemove_handler function. The problem appears when I zoom in the map
and I wait with the mouse inside, then mozilla sesion finish
suddently. If I zoom but I move the mouse out of the image, it work
ok. I assume the problems comes when I call the jBox.boxon function
and the mousemove_handler.
Anyone has solve this trouble?
My scripts lines:
<form method=GET action="/cgi-bin/mapserv" name="mapserv">
<script language="javascript" type="text/javascript">
function setbox_handler(name, minx, miny, maxx, maxy) {
document.mapserv.imgbox.value = minx + " " + miny + " " +
maxx + " " + maxy;
document.mapserv.imgxy.value = minx + " " + miny;
// Additional code can go here prior to the form submit, below.
// For example, form validation code.
document.mapserv.submit();
}
function seterror_handler(message) {
alert(message);
}
function mousemove_handler(name, x, y) {
document.mapserv.mapOverX.value = 363469 + x;
document.mapserv.mapOverY.value = 4609710 + y;
}
function goGlobal() {
document.mapserv.imgext.value = "363469 4.60971e+06 371839 4.61674e+06";
document.mapserv.imgxy.value = "250.5 200.5";
document.mapserv.zoom[1].checked="true";
document.mapserv.elements[3].checked="true";
document.mapserv.submit();
}
Lluís
More information about the MapServer-users
mailing list