HI,
A simple ask:
in pmapper 1.2 this function works good:
//////////////////////CODE/////////////////////////////////////////////////////////////////////////////////////////////
function openFramesZoom(sizevals, gLanguage, config, startParameters){
var sizearray = sizevals.split('#');
var winwidth = parseInt(sizearray[0]);
var winheight = parseInt(sizearray[1]);
var winsize = sizearray[2];
var re_emptyall = new RegExp("^[ ]*$");
var re_not_number = new RegExp("[^0-9]");
var X = document.zoom2point.X;
var Y = document.zoom2point.Y;
var e = document.zoom2point.extent;
if (re_emptyall.test(X.value)) {
alert("La coordinata X e\' obbligatoria");
X.focus();
return false;
}
if (re_not_number.test(X.value)) {
alert("Accetto solo Numeri!");
X.focus();
return false;
}
if (re_emptyall.test(Y.value)) {
alert("La coordinata Y e\' obbligatoria");
Y.focus();
return false;
}
if (re_not_number.test(Y.value)) {
alert("Accetto solo Numeri!");
Y.focus();
return false;
}
if ((e.value != "")&&(e.value=="0" ||
re_not_number.test(e.value))&&document.zoom2point.C1.checked) {
alert("Accetto solo Numeri diversi da 0 e positivi!");
e.focus();
return false;
}
if (re_emptyall.test(e.value)&&document.zoom2point.C1.checked) {
alert("Devi inserire un numero!");
e.focus();
return false;
}
if (document.zoom2point.C1.checked){
a = Number(document.zoom2point.extent.value)/(7.3*1.862385);
}
else{
a = 150000/(7.3*1.862385);
}
Xmin = Number(document.zoom2point.X.value)-a;
Ymin = Number(document.zoom2point.Y.value)-a;
Xmax = Number(document.zoom2point.X.value)+a;
Ymax = Number(document.zoom2point.Y.value)+a;
myw=window.open("frameview.phtml?zoomExtent="+Xmin+"+"+Ymin+"+"+Xmax+"+"+Ymax+"
&winsize=" + winsize + "&language=" + gLanguage + "&config=" + config +
startParameters, "MapServerTestSuite", "width=" + winwidth + ",height=" +
winheight +
",menubar=no,scrollbar=auto,resizable=no,top=0,left=0,status=yes");
}
////////////////////////////CODE/////////////////////////////////////////////////////////////////////////
Now in pmapper 3.0 not works!
I must replace "frameview.phtml?zoomExtent=" in
"map.phtml?me="+Xmin+"+"+Ymin+"+"+Xmax+"+"+Ymax+" ?????
Can somebody help me?
Thanks
--
View this message in context:
http://www.nabble.com/ManualExtent%21-tf3510901.html#a9806994
Sent from the pmapper users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users