[mapserver-users] Two Mapplet Problems...

Mike Smith nospam at cnrit.tamu.edu
Tue Aug 27 07:19:15 PDT 2002


Hello,

    I'm using version 3.6.1 of MapServer and I have two problems with 
the Mapplet java applet.  The first one is that the applet won't display 
any colors except white and red.  My legend shows all the colors of my 
layers accurately, but they all come out either white or red in the map 
image.  Anybody know how to fix this?

My second problem is that I can't ZOOM TO FULL EXTENT.  I've tried all 
the Javascript functions that others have mentioned in the mailing list 
archive, but they don't work.  I've tried this function and button:

function goGlobal() {
   // I set this to my full extent values
  document.mapserv.imgext.value = "388107.634400379 5203120.88405952 
500896.339019834 5310243.30613897";
  document.mapserv.imgbox.value = "-1 -1 -1 -1";
  // My image is 600 x 600, so this is the centerpoint
  document.mapserv.imgxy.value = "300.0 300.0";
  document.mapserv.old_zoom.value = document.mapserv.zoomdir.value;
  document.mapserv.zoomdir.value = 0;
  document.mapserv.submit();

}

function update_form{
  document.mapserv.zoomdir.value = document.mapserv.old_zoom.value;
}

<body bgcolor=#FFFFFF onload="update_form();">

<input type="button" name="fullextent" value="Full Extent" 
onClick="goGlobal()">


and I've tried just a simple URL-based link behind an image...neither 
does ANYTHING!  Any ideas?




More information about the MapServer-users mailing list