auto load mapserver information into html document

Luis Treviño ltrevinoh at GMAIL.COM
Thu Jul 6 15:24:53 PDT 2006


Albert:

You load the mapserver information into your html template, using a set of
hidden variables that mapserver CGI uses and returns. (this is a very simple
manner to say). you can take a look at the mapserver CGI reference
documentation
http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages and
the Mapserver Tutorial http://hypnos.cbs.umn.edu/tutorial/.
if you want to use just mapserver CGI for your application, you'll probably
need some javascript code to manage your app.

Hope this helps
Regards,
Luis


2006/7/6, Frank Warmerdam <warmerdam at pobox.com>:
>
> Albert Anderson wrote:
> > Hi,
> >
> >  I am using a book for exmaples for creating map files and html
> > documents.  In the book it shows you how to create a html templates and
> > get the information from the mapserver to load in the html document.  So
> > basically you have a blank html with a submit button that you click.  It
> > then loads the html template with the mapserver information.
> >  The question I have is how do you load the mapserver information in the
> > html automacitly without using a template and click a button? It loads
> > the information up when you click on web link to that web page.
> >  Would that be something like javascript calling for the map server?
> > Where do I start? Can anyone help me?
>
> Albert,
>
> I'm not a great web developer, but I think the example "initialize" form
> is
> just pushing a bunch of hidden form variables into the url.  For instance,
> when I click on the initialize button for a simple example, I get an url
> like:
>
>
> http://gdal/cgi-bin/mapserv?map=%2Fu%2Fwww%2Frot_ortho%2Fdemo.map&zoomsize=2
>
> The map, and zoomsize variables are being set from forms variables.  You
> can just do the same thing in a direct link to the mapserv cgi url.
>
> Best regards,
> --
>
> ---------------------------------------+--------------------------------------
> I set the clouds in motion - turn up   | Frank Warmerdam,
> warmerdam at pobox.com
> light and sound - activate the windows | http://pobox.com/~warmerdam
> and watch the world go round - Rush    | President OSGF, http://osgeo.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060706/a50ac25b/attachment.htm>


More information about the MapServer-users mailing list