[mapserver-users] status bar in no appearing !

nida Khan nida at webstar.co.uk
Wed Nov 27 09:37:04 EST 2002


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    
  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=[nl], total number of results=[nr]<br><br>
<p>
<hr>
<p>

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

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

    <table border=1 cellpadding=3>

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


Regards
Nida
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021127/2a954b6f/attachment.html


More information about the mapserver-users mailing list