demo map

Pericles S. Nacionales naci0002 at UMN.EDU
Wed Jan 9 15:28:12 EST 2008


Sounds like you have an older version of demo.  Edit the index.html and 
replace the following lines:
      <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>

with these:
      <select name="map_web" size="1">
        <option value="template itasca_basic.html"> Basic Application
        <option value="template itasca_adds_scalebar.html"> 
&nbsp;&nbsp;-- Adds second scalebar
        <option value="template itasca_adds_pan.html"> &nbsp;&nbsp;-- 
Adds pan controls
        <option value="template itasca_adds_frames.html"> &nbsp;&nbsp;-- 
Adds frames
        <option value="template itasca_adds_dhtml.html"> &nbsp;&nbsp;-- 
Adds dhtml rubber-band box
      </select>

Also change these lines:
      <input type="hidden" name="map_web_imagepath" 
value="/ms4w/tmp/ms_tmp/">
      <input type="hidden" name="map_web_imageurl" value="/ms_tmp/">

to these:
      <input type="hidden" name="map_web" value="imagepath 
/ms4w/tmp/ms_tmp/">
      <input type="hidden" name="map_web" value="imageurl /ms_tmp/">

Look for RFC-31 for more info.

Cheers!
-Perry

MapServer wrote:
> Hello
>
> I have installed map server but while I am trying to test the demo map 
> I get following error :
> Content-type: text/html msReturnPage(): Unable to access file. set in 
> index.html
>
> and also I noticed that png files have been created in root of demo 
> with following names:
>
> [root at firstone workshop-5.0]# ls -la set*
> -rw-r--r-- 1 apache apache 25840 Jan  9 11:57 set in 
> index.htmlITASCA11998942593258.png
> -rw-r--r-- 1 apache apache   422 Jan  9 11:57 set in 
> index.htmlITASCAleg11998942593258.png
> -rw-r--r-- 1 apache apache   353 Jan  9 11:57 set in 
> index.htmlITASCAref11998942593258.png
> -rw-r--r-- 1 apache apache   163 Jan  9 11:57 set in 
> index.htmlITASCAsb11998942593258.png
>
>
> here is my changes to index.html located in workshop-5.0
>
>
>
>  // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP
>         var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'";
>         snippet += " IMAGEURL '/tmp/'";
>         snippet += " TEMPLATE " + template;
>
>         document.demo.map_web.value = snippet;
> <input type="hidden" name="map" 
> value="/var/www/html/workshop-5.0/itasca.map">
>       <input type="hidden" name="program" value="/cgi-bin/mapserv">
>       <input type="hidden" name="root" 
> value="/var/www/html/workshop-5.0/">
>
>
>
>
>
>
>



More information about the mapserver-users mailing list