[mapserver-users] Zoom to extents - NOT
Murray, Ross
rmurray@NRCan.gc.ca
Mon, 21 Oct 2002 10:05:19 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_000_01C2790A.E3692D70
Content-Type: text/plain;
charset="ISO-8859-1"
I am very new to MapServer and would appreciate any words of encouragement
you may provide before I am prematurely old.
I have a button on my HTML form called "zoomtoextents". There are seperate
buttons allowing the user to zoom in or zoom out to explore the image. The
theory was that at some point they may wish to see the entire map again, so
they should be able to do so by a single click of a button. The code I wrote
was:
function zoomall() {
document.forms[0].imgext.value = "[allext]" ;
document.forms[0].submit();
}
where "[allext]" is a constant that holds the bounding latitude/longitude
values of the map area (the value comes from a database and is set before
the mapserv.exe is called).
Problem:
No matter how much (or little) the image is zoomed, clicking
"zoomtoextents" returns an image at exactly half the maximum scale. For
example, when one of my sample maps loads for the first time, its extents
([allext]) are the bounding lat/long as described above and the scale is 1
to 500000. If I zoom in by any amount then click "zoomtoextents" I get a map
at 1 to 250000.
Go Figure?
<<Murray, Ross.vcf>>
------_=_NextPart_000_01C2790A.E3692D70
Content-Type: application/octet-stream;
name="Murray, Ross.vcf"
Content-Disposition: attachment;
filename="Murray, Ross.vcf"
BEGIN:VCARD
VERSION:2.1
N:Murray;Ross
FN:Murray, Ross
ORG:NRCAN.RNCAN;ESS.SST
TITLE:Information Management and GIS Technician
TEL;WORK;VOICE:947-1411 (613)
TEL;CELL;VOICE:
ADR;WORK:;2 - 255;601 Booth Street;Ottawa;ON;K1A 0E8;CA
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:2 - 255=0D=0A601 Booth Street=0D=0AOttawa, ON K1A 0E8=0D=0ACA
EMAIL;PREF;INTERNET:rmurray@NRCan.gc.ca
REV:20020717T171556Z
END:VCARD
------_=_NextPart_000_01C2790A.E3692D70--