[Mapserver-west] osx and web mapping

Richard Greenwood richard.greenwood at gmail.com
Wed Oct 25 21:23:28 EDT 2006


On 10/25/06, massimodisasha <massimodisasha at yahoo.it> wrote:
> i'v reed more about mapserver and now thanks to the mapserver-irc
> channel, i've done the first step to work with mapserver .... this is
> wht i done :
>
> i uncompressed the workshop.zip in the /~home/sites  "folder"
> then i modify the index.html to point to the maserv :
>
>      <!-- EDIT THE FORM ACTION -->
>      <form name="demo" method="GET" action="/cgi-bin/mapserv"
> onSubmit="submit_form()">
>
>        <input type="hidden" name="layer" value="lakespy2">
>        <input type="hidden" name="layer" value="dlgstln2">
>        <input type="hidden" name="zoomsize" value=2>
>
>        <!-- EDIT THESE HIDDEN VARIABLES -->
>        <input type="hidden" name="map" value="/Users/epifanio/Sites/
> workshop/itasca.map">
>        <input type="hidden" name="program" value="/cgi-bin/mapserv">
>        <input type="hidden" name="root" value="/workshop">
>        <input type="hidden" name="map_web_imagepath" value="/Users/
> epifanio/Sites/workshop/tmp/">
>        <input type="hidden" name="map_web_imageurl" value="/tmp/">
>
>        <select name="map_web_template" size="1">
>          <option value="itasca_basic.html"> Basic Application
>          <option value="itasca_adds_scalebar.html"> &nbsp;&nbsp;--
> Adds second scalebar
>          <option value="itasca_adds_pan.html"> &nbsp;&nbsp;-- Adds
> pan controls
>          <option value="itasca_adds_frames.html"> &nbsp;&nbsp;-- Adds
> frames
>          <option value="itasca_adds_dhtml.html"> &nbsp;&nbsp;-- Adds
> dhtml rubber-band box
>        </select>
>        <input type="submit" value="Initialize"></center>
>
> now when i point my browser to the workshop i've the 5 options :
>
> basic application
> adds second scalebar
> adds pan controls
> adds frames
> adds dhtml rubber-band box
>
> this is the result if i check : "adds dhtml rubber-band box"
> http://img91.imageshack.us/img91/7984/immagine3bo9.png
>
> the other 4 option do not work!
> if i check one of the other option, the map was not loaded....
>
> http://img242.imageshack.us/img242/2662/immagine2rc1.png
>
> thanks for any suggestion !
> great thanks.
> Massimo

I am not familiar with the workshop.zip package, so I am guessing. But
check that /Users/epifanio/Sites/workshop/tmp/ has write permissions.
Mapserver has various modes, some need to write to the tmp directory,
some do not. mode=map does not write to tmp, most other modes do. I am
guessing that you are getting a map only in "rubber band box" is
because it uses mode=map.

You might also want to join the mapserver-users list, which has more
members, and may be better able to answer your question.

R

-- 
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com


More information about the Mapserver-west mailing list