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: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

Reply via email to