landview application and AJAX
Ken.Boss at DNR.STATE.MN.US
Tue Apr 18 11:04:56 EDT 2006
There is no distribution package as yet, but the effort is underway...
>>> John Cole <john.cole at UAI.COM> 4/18/2006 9:09:16 AM >>>
Is the experimental landview page available for download?
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Steve Lime
Sent: Monday, April 17, 2006 5:05 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] landview application and AJAX
The order is predraw callback, then the object draw method and finally the
The newer landview code
uses a single draw callback so you can do whatever you want.
>>> Dylan Beaudette <dylan.beaudette at GMAIL.COM> 4/17/2006 3:47:34 PM >>>
Thanks for the pointers Steve,
In particular I was curious about the execution order, or a general concept
how the Landview application works.
On Monday 17 April 2006 12:57 pm, Steve Lime wrote:
> There is a member in the Mapserv object called 'options' that allows you
> add arbitrary parameters to the URL passed to mapserver. You might try
> something like:
> myMap.options = "&foo=" + foovar;
> Where 'foo' is the variable you're passing to MapServer and foovar is the
> Make sense?
> >>> Dylan Beaudette <dylan.beaudette at GMAIL.COM> 4/17/2006 1:19:27 PM >>>
> I have been working with the Landview DHTML interface to mapserver, and
> would like to include support for some additional asynchronous interaction
> with a database.
> Currently our application works like this:
> select a region --> generate URL based on selection --> mapserver
> application with arguments in URL --> interaction with mapserver
> query on a PostGIS database:
> mapserver application --> calculate extent center coordinates with JS -->
> AJAX style request to PHP function page --> data is returned to mapserver
> page and displayed
> this is being done in the postdraw() function found in the landview
> I am having trouble figuring out how to pass the results from the above
> function to the creation of the mapserver object such that this value is
> also passed to the mapfile.
> In particular, I am curious about when the following line from the
> application is executed:
> var ms = new Mapserv("main", the_mapfile, ... );
> Any ideas on how to do this?
Soils and Biogeochemistry Graduate Group
University of California at Davis
<DIV><FONT size=1 face="Verdana">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. </FONT></DIV>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mapserver-users