Features like Zoom in, zoomout & pan

AMAL OMAR amal_osaad2003 at YAHOO.COM
Wed May 9 00:10:32 PDT 2007


hi all,
  is there any one have idea about features(tools), I hv used it with world shp file no problem but when I tried used it with my map file,I got error "HTTP 404 not found" ???  Please help  realy I hv   I have three files which are
   
  1st HTML file
   
   <html>
<head> <title>MapServer cadstaral Map</title></head>
<body>
   <form method=POST action="/cgi-bin/mapserv.exe" id=form1 name=form1>
      <input type="submit" value="Click to initialize" id=submit1 name=submit1>
      <input type="hidden" name="map" value="/ms4w/home/mapdata/cis/cis3.map">
      <input type="hidden" name="mapext" value="217500.00 3639400.03 217800.00 3639700.75">
      <input type="hidden" name=zoomsize size=2 value=2>
      <input type="hidden" name="layers" value="build build1 pbuild pbuildig roads mosque hospital garden barrack">
   </form>
   </body>
</html>
   
  2nd  HTML file
   
  <html>
<head><title>Cadstaral  Map</title></head>
<body bgcolor="#E6E6E6">
 <form name="the_form" method=GET action="[program]">  
  <table width="80%" border="1">
   <tr><td width="50%" rowspan="6">
       <input name="img" type="image" src="[img]" 
               width=400 height=300 border=2>
       </td>
       <td width="30%" align="center" colspan="3">
       <img SRC="[ref]" width=150 height=150 border=1>
       </td>
   </tr>
   <tr><td align="left" colspan="3"><font size="-1">
       Map scale:&nbsp &nbsp &nbsp 1:[scale]</font></td></tr>
   <tr><td align="left" colspan="3"><font size="-1">
       Click x,y:&nbsp &nbsp &nbsp &nbsp [mapx], [mapy]</font></td></tr>
   <tr><td align="left" colspan="3"><font size="-1">
       Map Extent:&nbsp [mapext]</font></td></tr>
   <tr><td><B><center>Legend</center></B></td>
       <td><B><center>Navigation</center></B></td>
       <td><B><center>Layers</center></B></td></tr>
   <tr><td rowspan="2"><img src="[legend]"></td>
       <td align="left"><font size="-1">
       <input type=radio name=zoomdir value=0 [zoomdir_0_check]>
          Pan<BR>
       <input type=radio name=zoomdir value=1 [zoomdir_1_check]>
          Zoom In<BR>
       <input type=radio name=zoomdir value=-1 [zoomdir_-1_check]>
          Zoom Out<BR>
       <input type=text name=zoomsize size=1 value=[zoomsize]>
          Size<BR>
       <center><input type="submit" value="Refresh"></center>
       </td>
       <td align="top">
       <input type="checkbox" name="layer" value="pbuildig" 
          [pbuildig_check]>
          pbuildig<BR>
       <input type="checkbox" name="layer" value="garden" [garden_check]>
          garden<BR>
       <input type="checkbox" name="layer" value="barrack" [barrack_check]>
          barrack<BR>
       <input type="checkbox" name="layer" value="roads" [roads_check]>
          Roads<BR></font>
       </td>
   </tr>
  </table>
   <input type="hidden" name="imgxy" value="200 150">
   <input type="hidden" name="imgext" value="[mapext]">
   <input type="hidden" name="map" value="[map]">
   <input type="hidden" name="program" value="[program]">
 </form>
</body>
</html>
  map file:
  # This is my CIS map file
  NAME "cis3"
  UNITS METERS
  EXTENT 217500.00 3639400.03 217800.00 3639700.75
  SIZE 400 300
  IMAGECOLOR 189 202 222
  IMAGETYPE gif
  SHAPEPATH "/ms4w/home/mapdata/cis/"
  FONTSET "/ms4w/var/www/htdocs/fontset.txt"
  #####################################
  PROJECTION 
  proj=longlat 
  ellps=WGS84 
  datum=WGS84 
  no_defs 
  END 
  ##################################### 
  # Symbol for drawing fat lines
  #
  SYMBOL
  NAME "BigLine"
  TYPE ELLIPSE
  POINTS 1 1 END
  END
  ##################################### 
  # Symbol for drawing dashed lines
  #
  SYMBOL
  NAME "DashedLine"
  TYPE ELLIPSE
  POINTS 1 1 END
  STYLE 10 10 END 
  END
  ##################################### 
  # Web object
  #
  WEB
  TEMPLATE "/ms4w/var/www/htdocs/cis3.html"
  IMAGEPATH "/ms4w/var/www/htdocs/tmp/"
  IMAGEURL "/tmp/"
  END
  ##################################### 
  # Reference map
  #
  REFERENCE
  IMAGE "/ms4w/home/mapdata/cis/ref2.png"
  SIZE 150 150
  EXTENT 217500.00 3639400.03 217800.00 3639700.75
  STATUS ON
  COLOR -1 -1 -1
  OUTLINECOLOR 255 0 0
  END
  ##################################### 
  # Scalebar
  #
  SCALEBAR
  LABEL
  COLOR 0 0 0 
  ANTIALIAS true
  SIZE small
  END
  POSITION lr
  INTERVALS 5
  STATUS embed
  SIZE 144 5
  STYLE 0
  UNITS meters
  BACKGROUNDCOLOR 255 0 0
  IMAGECOLOR 255 255 255
  COLOR 128 128 128 
  OUTLINECOLOR 0 0 255
  TRANSPARENT off
  END
  ##################################### 
  # Legend
  #
  LEGEND
  STATUS on
  IMAGECOLOR 230 230 230
  LABEL
  TYPE truetype
  FONT "arial"
  COLOR 0 0 0
  SIZE 10
  ANTIALIAS true
  END
  END
  ##################################### 
  LAYER
  PROJECTION 
  proj=longlat 
  ellps=WGS84 
  datum=WGS84 
  no_defs 
  END # end projection
  NAME "build" 
  STATUS default
  TYPE line
  DATA "build"
  CLASS
  STYLE
  COLOR 0 0 0
  END # end style
  END # class
  END #Layer
  ######################################################
  LAYER
  PROJECTION 
  proj=longlat 
  ellps=WGS84 
  datum=WGS84 
  no_defs 
  END # end projection
  NAME "build1" 
  STATUS default
  TYPE line
  DATA "build1"
  CLASS
  STYLE
  COLOR 0 0 0
  END # end style
  END # class
  END #Layer
  ######################################################
  LAYER
  PROJECTION 
  proj=longlat 
  ellps=WGS84 
  datum=WGS84 
  no_defs 
  END # end projection
  NAME "pbuild" 
  STATUS on
  TYPE line
  DATA "pbuild"
  CLASS
  STYLE
  COLOR 0 255 0
  END # end style
  END # class
  END #Layer
  ######################################################
  LAYER
  PROJECTION 
  proj=longlat 
  ellps=WGS84 
  datum=WGS84 
  no_defs 
  END # end projection
  NAME "pbuilding" 
  STATUS on
  TYPE line
  DATA "pbuilding"
  CLASS
  STYLE
  COLOR 255 0 0
  END # end style
  END # class
  END #Layer
  END # end map file

 
---------------------------------
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070509/5046a462/attachment.htm>


More information about the MapServer-users mailing list