<DIV>Thanks. It is what I need to know!</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">Hi Charley,<BR><BR>Sorry about that. I realized after my post that I wasn't very clear on <BR>that point. The generated applications use mapscript to set up the <BR>query results in the file <BR>maplab/htdocs/gmapfactory/templates/app_query.phtml so you would have <BR>to modify the php code there to treat an attribute field containing a <BR>reference to the jpeg differently (format it as an img tag or a url, <BR>for instance). If you have already generated your gmapfactory <BR>application, you can modify the query.phtml file in the project - it is <BR>just copied from the gmapfactory app_query.phtml file when you start a <BR>project.<BR><BR>GMapfactory doesn't support this kind of customization so you are going <BR>to have to do some digging in the mapscript and php documentation to <BR>figure this out.<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 30, 2004, at 11:07 AM, charley cheng wrote:<BR><BR>> Hi Good morning! Zak,<BR>><BR>> Could you give a little more detatiled explaination of how to place <BR>> special query template in maplab?<BR>> I tried it, however, maplab does not read the query template as query <BR>> template works in mapserver. Whatever template value ( ttt, <BR>> ttt_query.html or file path and myquery.html with image tag inside) I <BR>> put in the template of layer in maplab, query button i give the all <BR>> attributes in the shapefile attribute table for the point I queried, <BR>> which is generated by query.phtml in Gmapfactory.<BR>><BR>> Thank you very much again!<BR>><BR>> Charlie<BR>><BR>> MGIS Canadiate<BR>> Department of Geography<BR>> University of Calgary<BR>> E-mail: chengcharlie2003@yahoo.ca or lcheng@ucalgary.ca<BR>><BR>><BR>> Zak James
<ZAK-MS@HOPPSAN.ORG>wrote:<BR>> Kenneth,<BR>><BR>> You will need to add some symbols to the generated symbol file that<BR>> reference gif or png thumbnails of the jpeg images (make them type<BR>> PIXMAP). Then they can be used as point symbols. If you make up a<BR>> special html query template for your application that has an image tag<BR>> for the corresponding full jpeg file, it can be displayed when you<BR>> query the point. Your query template would have to be set in the layers<BR>> that had used the pixmap symbols and placed relative to the map file in<BR>> the generated gmapfactory application.<BR>><BR>> This has definitely been done before; maybe some other users can<BR>> provide detailed information. You could also look through the archives<BR>> for the mapserver-users list as this is not maplab 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 30, 2004, at 7:28 AM, Kenneth Slot wrote:<BR>><BR>>> I have a problem with my mapserver using maplab.<BR>>><BR>>> I have a layer called pics.shp containing hyperlink to some jpg files.<BR>>> and<BR>>> the coordinates from where the picture was taken.<BR>>><BR>>> I would like the points to be listet in my map with a special icon, <BR>>> not<BR>>> the standard listed in maplab, but with the typical jpg icon so you<BR>>> can se<BR>>> its a picture, is this possible, and how?<BR>>> Next i would like it to be possible to click on the icon in the map <BR>>> and<BR>>> get the choosen picture downloadet in a new window. Has any one done<BR>>> these two things?<BR>>><BR>>><BR>>><BR>>><BR>>><BR>>> Thanks!<BR>>><BR>>> Kenneth
Slot_______________________________________________<BR>>> Maplab-users mailing list<BR>>> Maplab-users@lists.maptools.org<BR>>> http://lists.maptools.org/mailman/listinfo/maplab-users<BR>><BR>> _______________________________________________<BR>> Maplab-users mailing list<BR>> Maplab-users@lists.maptools.org<BR>> http://lists.maptools.org/mailman/listinfo/maplab-users<BR>><BR>><BR>><BR>> ---------------------------------<BR>> Post your free ad now! Yahoo! Canada Personals<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>