Steve, Is the experimental landview page available for download? Thanks,
John Cole -----Original Message----- From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Steve Lime Sent: Monday, April 17, 2006 5:05 PM To: [email protected] Subject: Re: [UMN_MAPSERVER-USERS] landview application and AJAX The order is predraw callback, then the object draw method and finally the postdraw callback. The newer landview code (http://maps.dnr.state.mn.us/landview/experimental/landview.html) uses a single draw callback so you can do whatever you want. Steve >>> Dylan Beaudette <[EMAIL PROTECTED]> 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 of how the Landview application works. Thanks, Dylan On Monday 17 April 2006 12:57 pm, Steve Lime wrote: > There is a member in the Mapserv object called 'options' that allows you to > 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 > javascript variable you filled via ajax/xmlhttp... > > Make sense? > > Steve > > >>> Dylan Beaudette <[EMAIL PROTECTED]> 4/17/2006 1:19:27 PM >>> > > Greetings, > > 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 > application > > I have written some functions in javascript and PHP to perform a spatial > 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 > application. > > > 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 landview > application is executed: > > var ms = new Mapserv("main", the_mapfile, ... ); > > Any ideas on how to do this? > > Thanks! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 <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>
