<DIV>Hi! Zak,</DIV>
<DIV> </DIV>
<DIV>I final get the query work, the problem is that I select the standard html tools under map tools option of GMapfactory. The i button can not draw the rectengle around my point. I guess that the query function need the coordinate of piont, it is hard to get the correct coodinate by click only, it is necessary to draw the rectangle to include the point.</DIV>
<DIV> </DIV>
<DIV>Thank you very much for your help</DIV>
<DIV> </DIV>
<DIV>Charlie<BR><BR><B><I>Zak James <zak-ms@hoppsan.org></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Charlie,<BR><BR>Are you getting any error messages in your browser window or webserver <BR>error log? Did you try turning the logging for gmapfactory on? It's <BR>hard to make suggestions because the information you're giving isn't <BR>very specific.<BR><BR>zak<BR>--<BR>Zak James<BR>Applications and Software Development<BR>DM Solutions Group Inc.<BR>http://www.dmsolutions.ca<BR><BR><BR>On Jul 27, 2004, at 3:49 PM, charley cheng wrote:<BR><BR>> Hi! Dear list,<BR>><BR>> I have to post my question again. I still could not find the easy way <BR>> to made query function work in maplab.<BR>><BR>> I checked the turtorial example with maplab, for the popplace layer, <BR>> it put ttt_query.html as template value. However, the i button does <BR>> not work in the tutorial example either.<BR>><BR>> Sorry for keeping ask the same question!<BR>><BR>> Thank
you!<BR>><BR>> Charlie<BR>><BR>> Note: forwarded message attached.<BR>><BR>><BR>><BR>> ---------------------------------<BR>> Post your free ad now! Yahoo! Canada Personals<BR>><BR>> From: charley cheng <CHENGCHARLIE2003@YAHOO.CA><BR>> Date: July 22, 2004 1:38:10 PM EDT<BR>> To: maplab help <MAPLAB-USERS@LISTS.MAPTOOLS.ORG><BR>> Subject: how to make the i button work<BR>><BR>><BR>> Hi! Dear lists,<BR>><BR>> The maplab i button (query) does not work. According to the previous <BR>> forum from Jeff Mckenna (see below), I put the template html with path <BR>> or attribute value in DBF or ttt only in the template seting in <BR>> mapedit. The return html is same, " the following layers did not <BR>> return any results:---- plus all name of layer---".<BR>><BR>> If I want to query dbf information in maplab, how I made the i button <BR>> work? In other word, how to set template parameter in
mapedit?<BR>><BR>> Some previous forum mentioned the query template does not work in <BR>> maplab and the only way is to modify query.phtml in GMf_apps. Is it <BR>> true?<BR>><BR>> Thank you very much!!<BR>><BR>> Charlie<BR>><BR>><BR>><BR>><BR>><BR>> Just a note: you can put the value for TEMPLATE in either the CLASS or<BR>> LAYER object. If you only have one class there will be no difference. <BR>> If<BR>> you have more than one class and you want all classes to return <BR>> results,<BR>> put the TEMPLATE value in the LAYER object. If you have more than one<BR>> class you will need to put a value for TEMPLATE in each class you want<BR>> queried. That way you can prevent certain classes from being queried if<BR>> you want.<BR>><BR>> Jeff McKenna wrote:<BR>><BR>>> Hi Paul,<BR>>><BR>>> Yes it is possible to query the dbf files of shapefiles using MapLab.<BR>>> Simply add a TEMPLATE in
the CLASS object of the layer that you want<BR>>> to query. MapLab looks for the word "TEMPLATE" in the class object.<BR>>> The template value can be anything, the file does not exist so just<BR>>> make up something. e.g.:<BR>>><BR>>> LAYER<BR>>> NAME "oceans"<BR>>> STATUS ON<BR>>> DATA "ocean75m"<BR>>> TYPE POLYGON<BR>>> UNITS METERS<BR>>> CLASS<BR>>> COLOR 0 0 200<BR>>> TEMPLATE "ttt"<BR>>> END<BR>>> END<BR>>><BR>>> obviously "ttt" is not a valid file, but MapLab just looks for the<BR>>> presence of TEMPLATE in the CLASS object. Hope this helps.<BR>>><BR>>> By the way, any further MapLab questions should be sent to the MapLab<BR>>> user list (http://lists.dmsolutions.ca/mailman/listinfo/maplab-users)<BR>>> so that developers and other MapLab users can help you. Thanks.<BR>>><BR>>><BR>>>
Jeff<BR>>><BR>>><BR>><BR>><BR>><BR>><BR>> ---------------------------------<BR>> Post your free ad now! Yahoo! Canada Personals<BR>><BR>><BR>> _______________________________________________<BR>> Maplab-users mailing list<BR>> Maplab-users@lists.maptools.org<BR>> http://lists.maptools.org/mailman/listinfo/maplab-users<BR><BR></BLOCKQUOTE><p><br><hr size=1>Post your free ad now! <a href="http://ca.personals.yahoo.com/"><b>Yahoo! Canada Personals</b></a><br>