A little help please
Richard Orth - osmoGIS Incorporated
rco at OSMOGIS.COM
Thu Nov 17 11:14:05 PST 2005
It may be fouling because of the full path. Try using
map=mapdocs\tester.map
or the same path used for the template in your .map file.
I don't think its an IIS specific problem because I tested both on IIS
Hope this helps.
Richard C Orth
Gary Watry wrote:
>I tried both the Javascript and Html only solution. The javascript works
>better and it does open a image of the site but when I click on any of the
>buttons I get
>-----------------------------------------------------
>The page cannot be found
>The page you are looking for might have been removed, had its name changed,
>or is temporarily unavailable.
>
>Please try the following:
>
> * Make sure that the Web site address displayed in the address bar of
>your browser is spelled and formatted correctly.
> * If you reached this page by clicking a link, contact the Web site
>administrator to alert them that the link is incorrectly formatted.
> * Click the Back button to try another link.
>
>HTTP Error 404 - File or directory not found.
>Internet Information Services (IIS)
>----------------------------------------
>
>I assume this is an IIS problem, any suggests?
>
>On Mon, 7 Nov 2005 23:29:50 -0500, Richard Orth - osmoGIS Incorporated
><rco at OSMOGIS.COM> wrote:
>
>
>
>>An initialization string must come from somewhere. It tells the service
>>where to start, which map file to use, layers to start with, etc. For
>>auto-starting your map service you have at least two options.
>>1. A javascript redirector. just place the following code in its own file:
>><pre>
>><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
>><html>
>><head>
>><title>Welcome to ...</title>
>><script type="text/javascript" language="JavaScript">
>>function DoMe() {
>>document.location = "/cgi-bin/mapserv.exe?" +
>>"zoomsize=2&layer=tidestations&layer=countries&layer=states&map=c:\inetpub\wwwroot\mapdocs\tester.map";
>>}
>></script>
>></head>
>><body onload="DoMe()">
>><h1>One moment please...<br>Page Loading</h1>
>></body>
>></html>
>></pre>
>>
>>2. An HTML only solution. Just change the width and height values to fit
>>your service.
>><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
>><html>
>><head>
>><title>Welcome to ...</title>
>></head>
>><iframe width=600 height=400
>>src="/cgi-bin/mapserv.exe?zoomsize=2&layer=tidestations&layer=countries&layer=states&map=c:\inetpub\wwwroot\mapdocs\tester.map"></iframe>
>></body>
>></html>
>></pre>
>>Hope this helps
>>
>>Richard C Orth
>>
>>Gary Watry wrote:
>>
>>
>>
>>>Here is a development site I am working on,
>>>
>>>I have borrows button icons from Canada, and most of the borrowed code
>>>comes from the tutorials, or is noted in the source code.
>>>
>>>http://indianocean.coaps.fsu.edu/httpdocs/tester.html
>>>
>>>The two issues are sort of related.
>>>
>>>1. I would like to have just one page, so I don’t have the
>>>initialization page like I currently do. What is this done in and
>>>where does the initialization code from tester.html go? Does it get
>>>put into the tester1.html file?
>>>
>>>2. I want to put the little clip or animation that tells people to
>>>wait while the program maps are loading. For example like on the
>>>Canadian site
>>>
>>>
>>>
>>>
>http://atlas.gc.ca/site/english/maps/environment/naturalhazards/majorforestfires
>
>
>>>Any thoughts would be appreciated?
>>>
>>>I am a GIS user/administrator getting into Open Source programming and
>>>can use any help I can get
>>>
>>>Thanks
>>>
>>>______________________________________________________________
>>>
>>>Gary L. Watry
>>>
>>>
>>>GIS Coordinator
>>>Center for Ocean-Atmospheric Prediction Studies
>>>FSU / COAPS
>>>Johnson Building, RM 215
>>>2035 East Paul Dirac Drive
>>>Tallahassee, Florida 32306-2840
>>>
>>>E-Mail: watry at coaps.fsu.edu <mailto:watry at coaps.fsu.edu>
>>>
>>>
>>>
>
>
>
More information about the MapServer-users
mailing list