[mapserver-users] status bar in no appearing !

nida Khan nida@webstar.co.uk
Thu, 28 Nov 2002 10:12:54 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0211_01C296C6.B79547E0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you very much  everyone to help me out with this mystry problem...

Actually my <td> background was white, so was the imagecolor and text =
color, so after changing STATUS ON, I couldnt c that image...

All I did was change the colors of the statusbar!

U r a great List!
Good 2 b here!
Regards
Nida.

----- Original Message -----=20
  From: nida Khan=20
  To: mapserver-users@lists.gis.umn.edu=20
  Sent: Wednesday, November 27, 2002 2:37 PM
  Subject: [mapserver-users] status bar in no appearing !


  Hi List,

  I'm a new bie in GIS world, I'm trying small task before I jump into =
anything big.

  so far I managed to get the map,legend working. now when I tried to =
put the scalebar, nothing happens, its not printing the image...
  it seems like it get the image path but does not create one!

  I'm sure its something small that I'm missing, but what???

  here is code of my map and html file.

  NAME WALES
  EXTENT 127000.0 160000.0 380000.0 402000.0
  SIZE 400 400
  FONTSET "/var/www/html/wales/fonts/fonts.list"
  UNITS KILOMETERS

  WEB
    TEMPLATE wales2.html
    IMAGEPATH "/var/www/html/wales/tmp/"
    IMAGEURL "/wales/tmp/"
  END


  QUERYMAP
    SIZE 200 200
    STATUS ON
    STYLE HILITE
    COLOR 255 0 0
  END

  LEGEND
    STATUS ON
    LABEL
      COLOR 0 0 0
      SIZE MEDIUM
      ANTIALIAS TRUE
    END
  END


  SCALEBAR
    IMAGECOLOR 255 255 255
    LABEL
      COLOR 255 255 255
      SIZE small   =20
    END
    STYLE 1
    SIZE 160 2
    COLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 4
    TRANSPARENT ON
    STATUS TRUE
  END

  <some layers>

  html file


  <html>
    <head>
      <title>Wales</title>
    </head>

    <body>
  <h3>Wales from Postgis with Zoom</h3>

  <b>SEARCH WINDOW</b>: [imgext]<br>
  <b>QUERY POINT</b>: ([img.x], [img.y]) image coordinates or ([mapx], =
[mapy]) map coordinates<br>
  <b>QUERY METRICS</b>: number of layers with results=3D[nl], total =
number of results=3D[nr]<br><br>
  <p>
  <hr>
  <p>

      <form method=3D"GET" action=3D"/cgi-bin/mapserv">

      <input type=3D"hidden" name=3D"map" value=3D"[map]">
      <input type=3D"hidden" name=3D"imgext" value=3D"[mapext]">

      <table border=3D1 cellpadding=3D3>

      <tr>
      <td align=3Dcenter>
        <input type=3D"image" name=3D"img" src=3D"[img]" border=3D"0">
     </td>
      </tr>
      <tr>
          <td align=3D"left" colspan=3D"2">
          <img src=3D"[scalebar]">
          </td>
      </tr>
      </table>   =20
  </form>


  Regards
  Nida

------=_NextPart_000_0211_01C296C6.B79547E0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Thank you very much&nbsp; everyone to help me out =
with this=20
mystry problem...</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Actually my &lt;td&gt; background was white, so was =
the=20
imagecolor and text color, so after changing STATUS ON, I couldnt c that =

image...</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>All I&nbsp;did was&nbsp;change the colors of the=20
statusbar!</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>U r a great List!</FONT></DIV>
<DIV><FONT size=3D2>Good 2 b here!</FONT></DIV>
<DIV><FONT size=3D2>Regards</FONT></DIV>
<DIV><FONT size=3D2>Nida.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dnida@webstar.co.uk href=3D"mailto:nida@webstar.co.uk">nida =
Khan</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  title=3Dmapserver-users@lists.gis.umn.edu=20
  =
href=3D"mailto:mapserver-users@lists.gis.umn.edu">mapserver-users@lists.g=
is.umn.edu</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, November 27, =
2002 2:37=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [mapserver-users] =
status bar in=20
  no appearing !</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=3D2>Hi List,</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>I'm a new bie in GIS world, I'm trying small task =
before I=20
  jump into anything big.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>so far I managed to get the map,legend working. =
now when I=20
  tried to put the scalebar, nothing happens, its not printing the=20
  image...</FONT></DIV>
  <DIV><FONT size=3D2>it seems like it get the image path but does not =
create=20
  one!</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>I'm sure its something small that I'm missing, but =

  what???</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>here is code of my map and html file.</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>NAME WALES<BR>EXTENT 127000.0 160000.0 380000.0=20
  402000.0<BR>SIZE 400 400<BR>FONTSET=20
  "/var/www/html/wales/fonts/fonts.list"<BR>UNITS =
KILOMETERS</FONT></DIV>
  <DIV><FONT size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2>WEB<BR>&nbsp; TEMPLATE wales2.html<BR>&nbsp; =
IMAGEPATH=20
  "/var/www/html/wales/tmp/"<BR>&nbsp; IMAGEURL=20
"/wales/tmp/"<BR>END</FONT></DIV>
  <DIV>&nbsp;</DIV><FONT size=3D2>
  <DIV><BR>QUERYMAP<BR>&nbsp; SIZE 200 200<BR>&nbsp; STATUS ON<BR>&nbsp; =
STYLE=20
  HILITE<BR>&nbsp; COLOR 255 0 0<BR>END</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>LEGEND<BR>&nbsp; STATUS ON<BR>&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; =
COLOR 0=20
  0 0<BR>&nbsp;&nbsp;&nbsp; SIZE MEDIUM<BR>&nbsp;&nbsp;&nbsp; ANTIALIAS=20
  TRUE<BR>&nbsp; END<BR>END</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><BR>SCALEBAR<BR>&nbsp; IMAGECOLOR 255 255 255<BR>&nbsp;=20
  LABEL<BR>&nbsp;&nbsp;&nbsp; COLOR 255 255 255<BR>&nbsp;&nbsp;&nbsp; =
SIZE=20
  small&nbsp;&nbsp;&nbsp; <BR>&nbsp; END<BR>&nbsp; STYLE 1<BR>&nbsp; =
SIZE 160=20
  2<BR>&nbsp; COLOR 255 255 255<BR>&nbsp; UNITS KILOMETERS<BR>&nbsp; =
INTERVALS=20
  4<BR>&nbsp; TRANSPARENT ON<BR>&nbsp; STATUS TRUE<BR>END</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&lt;some layers&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>html file</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&lt;html&gt;<BR>&nbsp; &lt;head&gt;<BR>&nbsp;&nbsp;&nbsp;=20
  &lt;title&gt;Wales&lt;/title&gt;<BR>&nbsp; &lt;/head&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp; &lt;body&gt;<BR>&lt;h3&gt;Wales from Postgis with=20
  Zoom&lt;/h3&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&lt;b&gt;SEARCH WINDOW&lt;/b&gt;: =
[imgext]&lt;br&gt;<BR>&lt;b&gt;QUERY=20
  POINT&lt;/b&gt;: ([img.x], [img.y]) image coordinates or ([mapx], =
[mapy]) map=20
  coordinates&lt;br&gt;<BR>&lt;b&gt;QUERY METRICS&lt;/b&gt;: number of =
layers=20
  with results=3D[nl], total number of=20
  =
results=3D[nr]&lt;br&gt;&lt;br&gt;<BR>&lt;p&gt;<BR>&lt;hr&gt;<BR>&lt;p&gt=
;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &lt;form method=3D"GET"=20
  action=3D"/cgi-bin/mapserv"&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &lt;input type=3D"hidden" name=3D"map"=20
  value=3D"[map]"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;input type=3D"hidden" =
name=3D"imgext"=20
  value=3D"[mapext]"&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &lt;table border=3D1 cellpadding=3D3&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;&nbsp;&nbsp; &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;td=20
  align=3Dcenter&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input =
type=3D"image"=20
  name=3D"img" src=3D"[img]" border=3D"0"&gt;<BR>&nbsp;&nbsp;=20
  &lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<BR>&nbsp;&nbsp;&nbsp;=20
  &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td =
align=3D"left"=20
  colspan=3D"2"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&lt;img=20
  src=3D"[scalebar]"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<BR>&nbsp;&nbsp;&nbsp;=20
  &lt;/table&gt;&nbsp;&nbsp;&nbsp; <BR>&lt;/form&gt;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards</DIV>
  <DIV>Nida</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0211_01C296C6.B79547E0--